How to creare an "Add to Cart" Button

  • Posts: 184
  • Thank you received: 4
12 years 4 months ago #56445

I am using Joomla 2.5.6 with hikashop starter 1.5.8

How could i add a "add to cart" button on a Joomla Article?

With Hikashop there is a button to create an "Add to Cart HTML link", but i haven't found the way to create a real button.

Is it possible?
Could you indicate me the syntax to use?

For example this is the generated code for the html link
<a class="hikashop_html_add_to_cart_link" href=" madeinvino.cloudaccess.net/index.php?opt...ckout=1&product_id=5 ">Add to cart</a>

Thank you!

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

  • Posts: 12953
  • Thank you received: 1778
12 years 4 months ago #56461

Hi,
Yes I think that it's possible, you'll just have to go to :

- Your product page
- use the "add to cart HTML link"
- and copy the HTML code into your article then it should maybe work :).

Hope this will help you a little.

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

  • Posts: 184
  • Thank you received: 4
12 years 4 months ago #56463

Hello mohamed

I need to add a button and not a text with a link.

is possible?

Last edit: 12 years 4 months ago by Teto.

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

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #56527

Just change the HTML and you will be able to do it. For example like that:

<input class="button" onclick="document.location.href='http://madeinvino.cloudaccess.net/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=5';return false;" value="Add to cart" name="Add to cart" />

Last edit: 12 years 4 months ago by nicolas.
The following user(s) said Thank You: Teto

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

  • Posts: 184
  • Thank you received: 4
12 years 4 months ago #56535

Thank you nicolas!!! this is perfect!

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

Time to create page: 0.069 seconds
Powered by Kunena Forum