Submit Products to cart via ajax?

  • Posts: 75
  • Thank you received: 2
11 years 3 months ago #158386

-- url of the page with the problem -- : www.inkacollective.com/testing/consilium/
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
-- PHP version -- : 5.x

I have a menu item setup as HikaShop->Product Listing and then all the categories of products listed on the same page, with add to cart buttons and a ajax quantity element. Similarly, I have a lot of pages with Hikashop TAG Product Insert modules placed. Is it possible for either one, I want the user to be able to add the product to the shopping cart and stay on the products listing page in order to add more products if need be. Can Hikashop do this for either the Product Listing or TAG insert Modules? Can hikashop submit the product to the shopping cart via Ajax?

Thanks.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #158389

Hello,
The solution will just be to set the "After a product is added to the cart" option to "Always stay on the same page" through "Hikashop->System->Configuration->Main".

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

  • Posts: 112
  • Thank you received: 3
10 years 6 months ago #192265

A bit of a twist on this issue. We are using your html code to add items to cart. We do not want to go to the checkout or cart after the product is selected. We want the customer to stay on the same page. We have the "stay on same page" option selected in the configuration and we have Ajax turned off. How do we make this happen?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #192266

In that case, there are two possibilities.
You don't use the HTML link and use instead a content tag: www.hikashop.com/support/support/documen...-product-insert.html
That will display a normal HikaShop add to cart button which will have the same behavior as the normal add to cart buttons of the product pages.

Or you can add a "url" parameter to the add to cart links and urlencode as value of that parameter the URL where you want the customer to go back after the add to cart process.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum