Delete product from cart 404 error

  • Posts: 57
  • Thank you received: 5
10 years 8 months ago #148849

-- url of the page with the problem -- : paiter.nl
-- HikaShop version -- :2.3.0
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hello,

When a product is deleted from the mini cart the redirect results in a 404 error.

Joomla sef is turned on, issue not present when off.

Caching is turned off and all joomla and browser cache has been deleted.
Link when cart is empty is currently blank, however no effect with either absolute or relative url.
Force menu on checkout is set to "cart" (Site loads originally in NL language. Switching it to EN produces the same 404 error)
Live site variable in configuration.php = " ".
Issue not present when you add a product->checkout->remove product.

Kind regards,
Drago.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #148906

Hello Drago,
Can you show me some screenshots of how did you configured your Hikashop cart module ?

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

  • Posts: 57
  • Thank you received: 5
10 years 8 months ago #148914

Hi Mohamed,

Here are the requested screenshots.

Should I set up an admin and ftp account and pm you the details?

Kind regards,

Drago.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #148937

Hi,

Can you try to turn off the "Use AJAX when possible for add to cart buttons" option of the configuration ? That should fix the problem.

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

  • Posts: 57
  • Thank you received: 5
10 years 7 months ago #149407

Hi Nicolas,

Switching off "ajax when possible" indeed solved the 404 error.

However, my client does not like the page refresh, and wants it to work with ajax.

What are my options?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #149526

Hi,

Change the line:

<a class="hikashop_small_cart_clean_link" href="<?php echo $delete.'return_url='. urlencode(base64_encode(hikashop_currentURL('url',false))); ?>" >
to:
<a class="hikashop_small_cart_clean_link" href="<?php echo $delete.'return_url='; ?>" onclick="this.href+=window.btoa(window.location.href);">
in the file "cart" of the view "product" and that should help.

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

  • Posts: 57
  • Thank you received: 5
10 years 7 months ago #149729

Hello again,

Just to confirm that it works. Thanks a lot Nicolas.

Last edit: 10 years 7 months ago by Hristov.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum