Skip to main content

Continue Shopping - Set to go back 1 or 2 pages

More
15 years 10 months ago #2368 by chris711
Is it possible to set the "Continue Shopping" button to Go Back by 1 or 2 Pages rather than to a specific URL? This would allow users to return to the specific product category they were last shopping in.

Thanks

Chris

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #2370 by chaka
chris711 wrote:

Is it possible to set the "Continue Shopping" button to Go Back by 1 or 2 Pages rather than to a specific URL? This would allow users to return to the specific product category they were last shopping in.

Thanks

Chris


yeah me too

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #2371 by nicolas
Yes. You can edit the file step of the view checkout and change the code
Code:
echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'window.location=\''.JRoute::_($this->continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
by the code
Code:
echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'history.back();return false;','id="hikashop_checkout_shopping_button"');

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #2431 by chris711
Many thanks for that - I will give it a try on Monday and will let you know how it works out.

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #3136 by chris711
Works well to step back one page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.216 seconds
Powered by Kunena Forum