If cart empty shows all products in all categories

  • Posts: 79
  • Thank you received: 5
10 years 9 months ago #182262

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Firefox 33.1

Hi,

I will explain briefly how my website works. It is a multilingual website and I am using Chameleon to provide a shop in one zone (IP-based) and another shop in a second zone (IP-based)

I use Chameleon to show one menu item, or a second one, depending on the geolocalization of the visitors. Each menu item is directing the visitors to one of the two categories (product category of hikashop) so they should only see the product category corresponding to the item menu.

But my problem occures when one customer choose a product and decide to empty his order during the order process. Then when there are no items in the order process (and in the cart too) the following page is a list of all products in all the categories.

So It shows products from one or the other category of products, and it is confusing for customer.

I thought that the option 'force a menu item' could help me but it is a global configuration and I have two menu items for the two shops.

You can visit and try my webshop with the hidden url I provided to best figure out what is causing my headache since several days. Thanks in advance. Best regards

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #182272

Hi,

In your case, as it's a specific case I think that a plugin will be the solution.
A plugin based on the function "onAfterCartUpdate()", and based on your data redirect to a specific menu in order to display only the desired products.

www.hikashop.com/support/support/documen...ml#onAfterCartUpdate

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

  • Posts: 2
  • Thank you received: 0
10 years 6 months ago #195881

Hello, im new to Hikashop.
I use translated hikashop so sory if i use non original names of sections etc.
my problem is when i proceed to order process with my cart empty, it shows whole catalog instead of order process. Im confused, i dont understand why. So i want to disable that catalog show and just show ordering proces, disabled to finish because of empty cart.
Thank you

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #195900

Hi,

Do you have an url filled for the option "URL where you will be redirected when the cart is empty" in Configuration > Main > Cart ?
If it is, please remove it or in this field you can set the checkout url. But this will redirect to the checkout every time the cart is empty..

The following user(s) said Thank You: Michal Brach

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

Time to create page: 0.080 seconds
Powered by Kunena Forum