Redirect to view cart after add to cart

  • Posts: 2
  • Thank you received: 0
8 years 2 months ago #228836

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

Hello! Can you please advise how I redirect to the view cart page after an item is added to cart? I don't want to use a popup, just redirect to view-cart after the user clicks "add to cart".

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

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #228848

Hello,
The best solution will probably to directly change the value of the option "After a product is added to the cart" via "Hikashop-System->Configuration->Main"

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

  • Posts: 2
  • Thank you received: 0
8 years 2 months ago #229334

See attached. I have no option to send the user to a custom URL, just the standard 3 options (stay on the same page, display pop-up, or go to checkout)

Attachments:

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

  • Posts: 4508
  • Thank you received: 610
  • MODERATOR
8 years 2 months ago #229362

Hello,

For be more precise the value "Always go to the checkout" will lead customer to checkout, and if in your first checkout page you only have a cart view, you have what you want!

Later you can add a second cart view to end for example your checkout.



Hope this will help,

Attachments:
Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 14
  • Thank you received: 0
6 years 3 months ago #284894

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.0
-- PHP version -- : 5.6.21

Hi!

Can you help me, I have separate menu Item "Cart" - which is " HikaShop » Cart Display" page. And I need to redirect the users always to this page after they click to the button "Add to cart" on the every product page.

The variant which you wrote in this issue with several steps for checkout page - not what I need.

There may be a way to change the button in the code to redirect to the page I need?

Thank you!

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 3 months ago #284903

Hi,

If you want to redirect elsewhere, you can add such javascript code on your pages:

window.localPage.cartRedirect = function(cid,pid,resp){window.location="URL_WHERE_TO_REDIRECT_AFTER_ADD_TO_CART";};

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

  • Posts: 14
  • Thank you received: 0
6 years 3 months ago #284947

Thank you, Nicolas!

Yes, it work! :)

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

Time to create page: 0.105 seconds
Powered by Kunena Forum