Skip to main content

Empty cart return page

15 years 5 months ago #17893 by gerard_pp
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.

15 years 5 months ago #17894 by nicolas
Replied by nicolas on topic Re: Empty cart return page
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.

15 years 5 months ago #17896 by gerard_pp
hahahaha, could it be more obvious...
Thanks a lot.

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

15 years 2 weeks ago #27576 by k8fisher
Replied by k8fisher on topic Re: Empty cart return page
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.

15 years 2 weeks ago #27591 by nicolas
Replied by nicolas on topic Re: Empty cart return page
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.

11 years 11 months ago #182461 by gammapartners
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.

11 years 10 months ago #182470 by lousyfool
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.

11 years 10 months ago #182697 by gammapartners
Nice! thanks!

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

Time to create page: 0.138 seconds
Powered by Kunena Forum