1 / 5
Nov 2009

I followed the instruction in your tutorial, http://www.e-junkie.com/ej/tips.variants.button-tutorial.htm, but every when I do it, the Product Name shows up in the cart, but not the variation name.



Here is the exact link tag I created using your tutorial instructions (except w/ids replaced with "11111"):



<a

href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=11111&cl=11111&ejc=2&os0=Test"

target="ej_ejc"

class="ec_ejc_thkbx"

onClick="javascript:return EJEJC_lc(this);">



The name of the product is "Adult Ticket". What I expect to see in the cart is "Adult Ticket (Event: Test)" but what I actually see in the cart using this code is just "Adult Ticket". I verified that the original button code works, so I'm not sure what I'm doing wrong... suggestions?

  • created

    Nov '09
  • last reply

    Jun '11
  • 4

    replies

  • 1.0k

    views

  • 4

    users

  • 2

    links

Do you still have the code up on a live site and if so can you send us the URL?

Thanks to E-junkieNinja for the offline suggestions today. I finally figured out why it wasn't working for me: The process described in the tutorial doesn't work for VARIATIONS, it only works for VARIANTS.



I just want to point out that this is an extremely confusing choice of terminology on E-junkie's part.



Also, while the tutorial content talks exclusively about VARIANTS, the title is misleadingly called, "How to convert Variants/Variations menus into a series of Add to Cart buttons". I don't see any content in it that shows it working with Variations, though, and my experience today is that it actually doesn't...



Anyhow, thanks again, everything is sorted.

1 year later

I have the same issue ... was this resolved?



What is the difference between a variant and a variation?

Variations represent the simpler option and is best when you don't need to track stock according to the options or if you need text input from the buyer (for things such as personalized messages). A product can have up to three variations that are presented either as a drop down menu or a text field. We simply pass on the choice the buyer made with the product and nothing more.



Variants are more in-depth and can only work with drop down menus. Variants are for products that may have different price, weight or stock values depending on what options are selected. T-shirts and other clothing items are a good example of this, since you would need to track the stock on a Large Red shirt separately from a Small Blue shirt in the same product line. When using Variants it is important to define the values of every possible combination of items, and we cannot take an order for a product with Variants if the options selected during the order do not match the values entered into your account.





Can you give us more details about the error you are experiencing and a link to the site where you are testing the code? Are you trying to split your option choices into separate buttons or are you just having trouble with your product options in general?