How to add an item to the cart form my own web pag

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #148749

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I want to add an item to the cart when a user clicks the "add to cart" button on my own web page. How do I do this?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #148783

Hi,
Your product should automatically be added to your cart when you click on the "add to cart" button, can you give me more information about your issue ?
Thanks.

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

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #148862

thanks for getting back. I have created web pages with an "Add to Cart" button. When this button is pressed, I want to update the cart in Hikashop. My questions is how do add an item to the cart when the "Add to Cart button" is pressed on my web page. I just want to use the Cart and check out process in Hikashop. Hopefully this helps. Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #148880

Could you provide a link to the page you're talking about so that we can see what you're doing ?

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

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #149011

I am developing the site locally on my pc. Sorry. Any suggestions

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #149032

Well, I'm not exactly sure what you want to do since HikaShop already has add to cart buttons displayed automatically for products. That's why I was asking for a link.
How about using the "HTML add to cart buttons" button of your products in order to get the HTML to use in order to get an add to cart button ?

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

  • Posts: 5
  • Thank you received: 0
10 years 8 months ago #149044

I am not sure what you mean? I create an HTML "add to cart" button that will link to the link to the cart in Hikashop?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #149068

Hi,

In the backend, when you edit a product, in the toolbar you can see the button "Add to cart HTML link".
Just click on it, copy the url, and set this url in the button you previously create.

By this way, when clicking on your custom button, the desired product will be added into the HikaShop cart.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum