cweeks Posted November 1, 2011 Share Posted November 1, 2011 Hi, I am running V1.2.5.0, I know it's older but it works, well almost. On V1.3.7.0 if you view the cart page by clicking on the "Cart" button in the cart block, then remove a product using the delete icon in the cart block it forces the order.php to reload. This doesn't happen in V1.2.5.0 and you end up looking at a cart summary that is displaying items but a cart block that isn't. All I want to do is patch V1.2.5.0 to cure this but can I hell find where the changes are between V1.2.5.0 and V1.3.7.0 that do this. On V1.3.7.0 everytime you delete an item using the cart block while on the order page it redirects to a URL like http://www.someshop....order.php?ipa=1 Easy to find you would think ! Does anyone have a clue ? Link to comment Share on other sites More sharing options...
cweeks Posted November 1, 2011 Author Share Posted November 1, 2011 Got it ! In blockcart.php Make the hookRightColumn function look like this: function hookRightColumn($params) { global $smarty, $page_name; $smarty->assign('order_page', $page_name == 'order'); $this->smartyAssigns($smarty, $params); return $this->display(__FILE__, 'blockcart.tpl'); } In blockcart.tpl put an if around the call to load ajax-cart.js, so it looks like this: {if !$order_page} <script type="text/javascript" src="{$content_dir}modules/blockcart/ajax-cart.js"></script> {/if} Done ! Link to comment Share on other sites More sharing options...
Recommended Posts