Jump to content

Add to cart link for each combination


remyessers
 Share

Recommended Posts

Hi,

 

On my product page I've listed all my available colors in a list like this:

  • Chair X - RED
  • Chair X - Blue
  • Chair X - Green

I would like to place an add to cart link after the color on the product page. I've found the follow code where 630 is my product ID:

<a class="exclusive_small ajax_add_to_cart_button" title="{l s='Add to cart'}" onclick="ajaxCart.add(630, null, true, null, 1, null)">Add Me</a>

 

How can I change the code so it adds the correct attribute to the cart? Now it adds the default color combination to my cart.

 

Anyone can point me in the right direction?

 

Best regards,

 

Remy

 

p.s. I'm using PS 1.5.4.1

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More