Continue Shopping - Set to go back 1 or 2 pages

  • Posts: 96
  • Thank you received: 4
  • Hikashop Business
13 years 11 months ago #2368

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.

  • Posts: 135
  • Thank you received: 0
13 years 11 months ago #2370

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #2371

Yes. You can edit the file step of the view checkout and change the 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
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.

  • Posts: 96
  • Thank you received: 4
  • Hikashop Business
13 years 11 months ago #2431

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.

  • Posts: 96
  • Thank you received: 4
  • Hikashop Business
13 years 11 months ago #3136

Works well to step back one page.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum