Jump to content

Kevin.Dallas

Members
  • Content count

    27
  • Joined

  • Last visited

Everything posted by Kevin.Dallas

  1. Kevin.Dallas

    Discount Coupon Codes 3.34 for osc 2.3.1

    hello everyone, what comes to discount coupon: shopping_cart using paypal express don't have a place to input the coupon code, i am building a ajax so with paypal express from the shopping_cart will work also. 1. codes gets erased when i go thru the checkout again 2. code Discount Coupon ???? applied: doesn't show in shopping_cart.php ------------------------------------------------------------------ ------------------------------------------------------------------ if (!tep_session_unregister('coupon')) tep_session_register('coupon'); $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } if( tep_not_null( $coupon ) && is_object( $order->coupon ) ) { $order->coupon->verify_code(); if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG != 'true' ) { if( !$order->coupon->is_errors() ) { //if we have passed all tests (no error message), make sure we still meet free shipping requirements, if any if( $order->coupon->is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); } else { if( tep_session_unregister('coupon') ) tep_session_unregister('coupon'); tep_redirect( tep_href_link( FILENAME_SHOPPING_CART1, 'error_message=' . urlencode( implode( ' ', $order->coupon->get_messages() ) ), 'SSL' ) ); } } } else { if( tep_session_unregister('coupon') ) { tep_session_unregister('coupon'); require_once( DIR_WS_CLASSES.'discount_coupon.php' ); if( discount_coupon::is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_SHOPPING_CART1, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); } } ----------------------------------------------------------------- <?php if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'false' ) { ?> <div class="shippingcoupon container"> <div class="text-left shipsmday"><?php echo ENTRY_SHIPSAMEDAY;?></div> <div class="shipcouon"> <span><?php echo ENTRY_DISCOUNT_COUPON;?></span> <?php echo tep_draw_input_fieldclear('coupon', 'if(this.value == &#39;Enter Promo Code Here&#39;) { this.value = &#39;&#39;; }','if(this.value == &#39;Enter Promo Code Here&#39;) { this.value = &#39;&#39;; }', ''.ENTRY_COUPONS.'', $coupon); ?> <?php echo tep_draw_couponcode(IMAGE_BUTTON_APPLY, 'submit', null, 'primary', null, ''); ?> </div> <?php } ?> <br> <div class="container"> <div class="text-rights"> <?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUTS, 'triangle-1-e', null, 'primary'); ?> </div> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <div class="text-rights"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></div> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p class="text-right"><?php echo $value; ?></p> <?php } } ?> ----------------------------------------------------------------html------------------------------------------------------ //// // Output COUPON function tep_draw_couponcode($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('coupon', 'button', 'reset'); if ( !isset($params['type']) ) { $params['name'] = 'coupon'; } if ( !in_array($params['name'], $types) ) { $params['name'] = 'coupon'; } if ( ($params['name'] == 'coupon') && isset($link) ) { $params['name'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['name'] == 'button') && isset($link) ) { $button .= '<a href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ''; } } else { $button .= '<button'; $button .= ' name="' . tep_output_string($params['name']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= 'type="button" onclick="ajaxFunction()" id="couponapplyajax" class="couponapply"'; $button .= 'value="apply">'; $button .= $title; if ( ($params['name'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; } // Rewview Button function tep_draw_reviews($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('submit', 'button', 'reset'); if ( !isset($params['type']) ) { $params['type'] = 'submit'; } if ( !in_array($params['type'], $types) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '<a href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-default'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '"></span> '; } $button .= $title; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; }
  2. Mr.Raiwa I do apologize I didn't know you were traveling, have a wonderful time and we'll touch base when you come back.
  3. i am using edge 2.3.4 Discount Codes 4.2 BS
  4. Mr.Raiwa I know it doesn't have it, i am building a ajax if you would like i can send you the code so you can improve the coupon code, that is if you would like.
  5. Hello Raiwa, thank you for getting back to me, however paypal express only work you have to go thru the full checkout meaning discount coupon can only apply in the checkout_payment, if i am in the shopping cart upon clicking paypal the code hasn't been implemented, not only that if you add another product you have to type the code again.
  6. hello everyone, what comes to discount coupon: shopping_cart using paypal express don't have a place to input the coupon code, i am building a ajax so with paypal express from the shopping_cart will work also. 1. codes gets erased when i go thru the checkout again 2. code Discount Coupon ???? applied: doesn't show in shopping_cart.php ------------------------------------------------------------------ ------------------------------------------------------------------ if (!tep_session_unregister('coupon')) tep_session_register('coupon'); $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } if( tep_not_null( $coupon ) && is_object( $order->coupon ) ) { $order->coupon->verify_code(); if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG != 'true' ) { if( !$order->coupon->is_errors() ) { //if we have passed all tests (no error message), make sure we still meet free shipping requirements, if any if( $order->coupon->is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); } else { if( tep_session_unregister('coupon') ) tep_session_unregister('coupon'); tep_redirect( tep_href_link( FILENAME_SHOPPING_CART1, 'error_message=' . urlencode( implode( ' ', $order->coupon->get_messages() ) ), 'SSL' ) ); } } } else { if( tep_session_unregister('coupon') ) { tep_session_unregister('coupon'); require_once( DIR_WS_CLASSES.'discount_coupon.php' ); if( discount_coupon::is_recalc_shipping() ) tep_redirect( tep_href_link( FILENAME_SHOPPING_CART1, 'error_message=' . urlencode( ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR ), 'SSL' ) ); } } ----------------------------------------------------------------- <?php if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'false' ) { ?> <div class="shippingcoupon container"> <div class="text-left shipsmday"><?php echo ENTRY_SHIPSAMEDAY;?></div> <div class="shipcouon"> <span><?php echo ENTRY_DISCOUNT_COUPON;?></span> <?php echo tep_draw_input_fieldclear('coupon', 'if(this.value == &#39;Enter Promo Code Here&#39;) { this.value = &#39;&#39;; }','if(this.value == &#39;Enter Promo Code Here&#39;) { this.value = &#39;&#39;; }', ''.ENTRY_COUPONS.'', $coupon); ?> <?php echo tep_draw_couponcode(IMAGE_BUTTON_APPLY, 'submit', null, 'primary', null, ''); ?> </div> <?php } ?> <br> <div class="container"> <div class="text-rights"> <?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUTS, 'triangle-1-e', null, 'primary'); ?> </div> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <div class="text-rights"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></div> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p class="text-right"><?php echo $value; ?></p> <?php } } ?> ----------------------------------------------------------------html------------------------------------------------------ //// // Output COUPON function tep_draw_couponcode($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('coupon', 'button', 'reset'); if ( !isset($params['type']) ) { $params['name'] = 'coupon'; } if ( !in_array($params['name'], $types) ) { $params['name'] = 'coupon'; } if ( ($params['name'] == 'coupon') && isset($link) ) { $params['name'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['name'] == 'button') && isset($link) ) { $button .= '<a href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ''; } } else { $button .= '<button'; $button .= ' name="' . tep_output_string($params['name']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= 'type="button" onclick="ajaxFunction()" id="couponapplyajax" class="couponapply"'; $button .= 'value="apply">'; $button .= $title; if ( ($params['name'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; } // Rewview Button function tep_draw_reviews($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('submit', 'button', 'reset'); if ( !isset($params['type']) ) { $params['type'] = 'submit'; } if ( !in_array($params['type'], $types) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '<a href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-default'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '"></span> '; } $button .= $title; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; }
  7. Good day, Jack

    on the checkout_confirmation.php shows the discount coupon {Discount Coupon ???? applied:}

    in shopping_cart.php

     

    <div class="shipcouon">
    <?php echo tep_draw_input_fieldclear('coupon', 'this.value=', ''.ENTRY_COUPONS.'', $coupon); ?>

    <button type="submit" onclick="<?php $parameters['discount_amount_1'] =number_format($order->coupon->applied_discount['Unknown tax rate'],2);?>" title="Apply Coupon" class="couponapply" id="couponapply" value="apply">Apply</button>


    </div>

    upon clicking apply it doesn't show the Discount Coupon ???? applied:

     

    only way shows is when i go thru the process in checkout_confirmation.php then when i rehash the page it shows the Discount Coupon ???? applied: then i rehash it again it goes away. 

     

    1. codes gets erased when i go thru the checkout again

    2. code Discount Coupon ???? applied: doesn't show in shopping_cart.php

     

    anyways you can help me out?

     

    1. Jack_mcs

      Jack_mcs

      You need to post the question in the support thread for that addon.

    2. Kevin.Dallas

      Kevin.Dallas

      that's fine, thank you for getting back to me, have a great day buddy

  8. Kevin.Dallas

    Shopping Cart as Tooltip, pls help

    i found the issue, upon adding a item what it does is, add a link on the toolbar for example: ?products_id=1093&sort=10a now you adding another item in the shopping cart the id doesn't change is stays the same and add the same item in the shopping cart, i'll give you guys update once i fix it
  9. Kevin.Dallas

    Shopping Cart as Tooltip, pls help

    good day, I am having issues on popup add to cart, on click add to cart ads second item on click ads the same item qty 2 click on different items still ads same item advanced_search_result.php works fine case 'PRODUCT_ADD_CART': if ($listing['products_quantity']){ $a_cart = '' . tep_draw_button(IMAGE_BUTTON_ADD_CART, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now' . '', 'SSL'), NULL, NULL, 'btn-success btn-sm listbuy-sm') . ''; } else { $a_cart = '<span class="productSpecialPrice">'.out_a_stocks('','out a stocks','','','') . '</span>'; } break; ---------------------------------------------------------------- case 'PRODUCT_ADD_CART': if (($listing['products_quantity']<>0) and ($listing['products_quantity'] > 0)){ $a_cart = '' . tep_draw_button(IMAGE_BUTTON_ADD_CART, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'], '', 'SSL'), NULL, NULL, 'btn-success btn-sm listbuy-sm') . ''; } else { $a_cart = '<span class="productSpecialPrice">'.out_a_stocks('','out a stocks','','','') . '</span>'; } break;
  10. Kevin.Dallas

    Optional Related Products - how to modify?

    i build the addon so i was trying to see how i can get this show up on search thank you for your help i'll get it fixed
  11. Kevin.Dallas

    Optional Related Products - how to modify?

    did you see that the last post in this topic is from 2007?? Can you please tell us which exact version you refer to and which is your exact store version. I also do not understand what you would like the related products add-on to do with advanced search. Show related products of the products shown in search results?? it's customized i am using 2.3.4 osc addon doesn't have a version
  12. Kevin.Dallas

    Optional Related Products - how to modify?

    great addon however i try implementing on the advance_search due to id number not bing static i am having issues, has anyone implementing on advance_search ?
  13. Kevin.Dallas

    Header Tags SEO

    Hi Jack, i was getting Fatal error: Maximum execution time of 30 seconds exceeded in /includes/functions/general.php on line 188 the reason i was getting the error msg because my categories categories_description starts with 0.
  14. Kevin.Dallas

    Header Tags SEO

    to whom it may concern, who hasn't fix the issue, make sure your number on cat and cat des doesn't start with 0
  15. Kevin.Dallas

    ULTIMATE Seo Urls 5 - by FWR Media

    never mind, i got it, path_rewrite wasn't on
  16. Kevin.Dallas

    ULTIMATE Seo Urls 5 - by FWR Media

    upon installing the addon what it does is, index.php/dvd-man-dvd-man98-c-2_26_120 output should be, something... domain*com/aviator-piloten-sonnenbrille-transparent-p-725.html any ideas?
  17. i am having issues with a addon, XHR finished loading: GET "smartsuggest.php?keywords=w".(anonymous function) @ smartsuggest.js:74 smartsuggest.js:98 Uncaught TypeError: Cannot set property 'innerHTML' of null
  18. i am having issues with a addon, XHR finished loading: GET "smartsuggest.php?keywords=w".(anonymous function) @ smartsuggest.js:74 smartsuggest.js:98 Uncaught TypeError: Cannot set property 'innerHTML' of null
×