wp ecommerce - add variation to checkout/cart and make them required? (4 posts)

  1. Lindsey
    Posted 4 years ago #


    I'm using the most recent version of WP Ecommerce, and I want to do two things

    1) Show the variation of the product when you view the cart or are checking out.

    2) Make the variation selection required before you add it to the cart...

    Can anyone help out?


  2. themeszone
    Posted 3 years ago #

    Hi, well the 2nd section is easy, the variations are required by default if not then there must be an error in your theme that you use along with WPEC

  3. Amavai
    Posted 3 years ago #

    Hi! I have the same issue.. Could you please let us know what is the code to include in our theme in order to work properly?

    Many thanks!


  4. karmatiger
    Posted 3 years ago #

    I was also looking for a solution to check if variations are selected. I had altered the products page and didn't notice I'd changed the class of the "add to cart" button.

    As Mikeagg (sp?) said in another thread:

    If anyone has this problem in the future, you need to make sure that you have your add to cart button and variation drop downs within a div tag with one of the follow classes - productcol, textcol, product_grid_item, wpsc-add-to-cart-button

    You also need to make sure that your add to cart button has the class wpsc_buy_button and that your variations are held within a div with the class wpsc_select_variation

    As soon as i had these classes, the validation wobbled back into life :D

    Incidentally, I haven't updated to the latest WP-eCommerce since I tried that and it crashed my whole site. I reverted back to as it works nicely.

Topic Closed

This topic has been closed to new replies.

About this Topic