Image gallery and add to cart

  • Posts: 7
  • Thank you received: 0
8 years 1 month ago #250715

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #250730

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 7
  • Thank you received: 0
8 years 1 month ago #250890

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #250892

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.063 seconds
Powered by Kunena Forum