RusNN Posted July 25, 2010 Share Posted July 25, 2010 Hi Jack! I wondering to use your another great contrib! But I must admite unappropriate work of Daily Specials. The issue is we never see discounts before visiting shopping cart. Imagine the situation when a person having a cart, he satisfied of his cart and now he proceed directly to checkout never see into shopping cart. What will we have? As I can see we have no discounts, because all of them are applied only on shopping_cart.php page. I think it is better to move the part of code from modules\daily_specials_cart.php to application_top.php reducing the server load by checking of only several actions: $HTTP_GET_VARS['action'] equal to update_product, add_product, buy_now, cust_order, clear_cart actions. So, if we move the include_once(DIR_WS_MODULES. FILENAME_DAILY_SPECIALS_CART); from shopping_cart.php page to application before tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); of each action described above we will apply all our discounts on every cart action. What do you think about? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.