View empty cart with no redirect

  • Posts: 3
  • Thank you received: 0
9 years 7 months ago #228867

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6

Hi there,

I have an issue when clicking on empty my cart. I want to stay on that view and only display an empty cart with no products. What I get is a redirect to product listing. I know that I can modify the URL to be redirected, but the point is that I don't need to be redirected anywhere.

Thanks in advance

Last edit: 9 years 7 months ago by estirpatorio.

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

  • Posts: 84328
  • Thank you received: 13718
  • MODERATOR
9 years 7 months ago #228870

Hi,

The thing is that the view you're on is made to be displayed using the current cart. if you empty the cart, there is nothing in the cart and thus the view cannot display itself properly. Which is why it redirects you somewhere else.

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

  • Posts: 3
  • Thank you received: 0
9 years 7 months ago #228988

Thanks for your reply. Is there any way to show an empty cart on top of product listing view?

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
9 years 7 months ago #228999

Hello,

Maybe it's a strange answer to your needs, but why don't you create an "empty cart page" article that copy your HikaShop cart?
For this you can copy balises and so the css will be applied like a regular cart view.
And like before you can redirect to this page your customer.

Regards,

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

  • Posts: 3
  • Thank you received: 0
9 years 7 months ago #229216

Yes, I think that is the best choice. Thank you so much!

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

Time to create page: 0.061 seconds
Powered by Kunena Forum