Problem while updating the cart

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232603

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

Hello,

There is a problem with updating the cart. This is very similar to this older bug , but the solution I think is outdated.

Every time I change the cart quantity or press the delete button I get redirected to a 404 page. I have two languages, Greek (Default) and English.

Everything is OK for the English language.

Everything is OK for both languages if I am on a Hikashop page. If I am on a Joomla page (home page, login etc) it does not work for the Greek language.

Everything is OK for both languages if I turn off the Joomla SEF and URL rewriting, but I need these.

The following URL is in the delete button inside the cart module in Greek page and gives me 404:
/component/hikashop/product/updatecart/cart_type-cart/cart_product_id-180/quantity-0/return_url-aHR0cDovL3d3dy5nYXZyaWVsYS53d3dubHNzcjEuc3VwZXJjcC5jb20v

If I manually insert "index.php" at the beginning then it's working, otherwise it redirects to 404 page.

The following URL is in the delete button inside the cart module in English page and works fine:
/en/component/hikashop/product/updatecart/cart_type-cart/cart_product_id-180/quantity-0/return_url-aHR0cDovL3d3dy5nYXZyaWVsYS53d3dubHNzcjEuc3VwZXJjcC5jb20vZW4v



Thanks

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
8 years 8 months ago #232618

Hi,

From what I can see, the problem could come from the "force a menu on checkout" setting of the HikaShop configuration.
Can you make sure that the menu item selected there is of the type "HikaShop...".
Also, could you tell us the full version of the "advanced settings" section of your HikaShop configuration ?

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

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232695

The "force a menu on checkout" was set to "None". Now I changed it to Hikashop checkout menu, but the problem is still the same.

The full version is: HikaShop Business 2.6.1 [1602070724]

Thanks for your help

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

  • Posts: 13201
  • Thank you received: 2322
8 years 8 months ago #232722

Hi,

Please provide a backend and FTP access in order to debug that issue.

You can send these informations via our contact form (with a link to this topic in your message).
www.hikashop.com/support/contact-us.html

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

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232785

OK sent.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
8 years 8 months ago #232882

Hi,

Thank you for that.
The problem comes with the system which gets a random menu item to set the link of the form for the update of the cart.
It get the first menu item of the type HikaShop it can find.
The problem is that it doesn't check the language of the menu item and since you've restricted the menu items to languages, it works for one language and not the other and on HikaShop pages, it doesn't have to search for a HikaShop menu item so it always works.

The solution for you is simple:
Change the menu item "Men" that is used all the time on non HikaShop pages on your website so that it displays for all the languages and instead translate it with Falang.
On our end, we'll change the system to check the language of the menu item.

The following user(s) said Thank You: pegasus

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

  • Posts: 5
  • Thank you received: 0
8 years 8 months ago #232921

Thanks Nicolas, it works fine now.

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

Time to create page: 0.049 seconds
Powered by Kunena Forum