Skip to main content

Image gallery and add to cart

More
10 years 1 week ago #250715 by chchdc
Hi,
I'me develloping a shop for photos, and I use in the site an image gallery from Yootheme.
In this image gallery it is possible to add links.

My question is, there is a way to add a link "add to cart" without having to go to the checkout. just add the product to carte and continue shopping.

At this time I use the "make link add to cate" button in the product but it send me to the checkout and don't add product quatity in the quantity field.

There is a way to use this link with the JS script to add the product?

Thank you for help.

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

More
10 years 1 week ago #250730 by Jerome
Hi,

When you get the "add to cart HTML link" in a product edition page in the backend, there is one parameter named "checkout" which is set to "1" by default.
By changing the value to "0", the redirection to the checkout will not be done.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
10 years 1 week ago #250890 by chchdc
Hi,
Thank you for this reply, but I tried befor and not working, it send me to the checkout page. I also tried to login before add to cart and it don't work.

There is another way to update cart without going to the checkout point?

Thank you for help
regards

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

More
10 years 1 week ago #250892 by nicolas
Hi,

You also need to add a return_url parameter to tell the system which URL you want the system to redirect to.
hikashop.com/forum/checkout/884288-add-t...link-return-url.html

If you can add HTML, and not just a link, then you could directly add an add to cart button with the content tag system:
www.hikashop.com/support/documentation/1...-product-insert.html

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

Time to create page: 0.172 seconds
Powered by Kunena Forum