Empty cart return page

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #17893

Hi

I want that after an item is erased from the shopping cart the return address i want it to be the index of my site.
Actually hikashop is displaying a page showing products and a message: "The cart is empty".

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 5 months ago #17894

Hi,

You need to enter the URL in the option "URL where to redirect when the cart is empty" in the "checkout" tab of the configuration.

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #17896

hahahaha, could it be more obvious...
Thanks a lot.

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

  • Posts: 45
  • Thank you received: 0
13 years 1 month ago #27576

Hi Ive got a weird situation I need the "cart empty" behaviour to send the user to a different place depending on the route through the shop they took. How can I intercept the code which sends them to the place configure in the back end of the store? Id like to replace the behaviour with a history.go(-2) instead of using a set URL.

Would this be achievable by altering one of the views? Ive checked the checkout views (in display views) but cannot see the code to be replaced.

Could you give me an idea where this code exists please.

Many thanks

Kate

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27591

Unfortunately, that code is near the beginning of the function "step" of the file components/com_hikashop/controllers/checkout.php
That means that you won't be able to modify it with an override and will have to directly modify the code of that core file of HikaShop if you want to change its behavior.

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

  • Posts: 2
  • Thank you received: 0
9 years 11 months ago #182461

Hi !

I got the 2.3.3 comercial version of hikashop, and still can't find the "URL where to redirect when the cart is empty" in the "checkout" tab of the configuration. Is it changed? how can I make a redirection now?

thanks

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

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #182470

gammapartners,

It's not under the "Checkout", but under the "Main" tab -> "Cart".


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: nicolas

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

  • Posts: 2
  • Thank you received: 0
9 years 11 months ago #182697

Nice! thanks!

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

Time to create page: 0.096 seconds
Powered by Kunena Forum