Skip to main content

Delete product from cart 404 error

More
12 years 6 months ago #148849 by Hristov
-- 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.

More
12 years 6 months ago #148906 by Mohamed Thelji
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.

More
12 years 6 months ago #148914 by Hristov
Hi Mohamed,

Here are the requested screenshots.

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

Kind regards,

Drago.

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

More
12 years 6 months ago #148937 by nicolas
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.

More
12 years 6 months ago #149407 by Hristov
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.

More
12 years 6 months ago #149526 by nicolas
Hi,

Change the line:
Code:
<a class="hikashop_small_cart_clean_link" href="<?php echo $delete.'return_url='. urlencode(base64_encode(hikashop_currentURL('url',false))); ?>" >
to:
Code:
<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.

More
12 years 6 months ago - 12 years 6 months ago #149729 by Hristov
Hello again,

Just to confirm that it works. Thanks a lot Nicolas.
Last edit: 12 years 6 months ago by Hristov.

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

Time to create page: 0.201 seconds
Powered by Kunena Forum