WordPress.org

Support

Support » Plugins and Hacks » wp ecommerce – add variation to checkout/cart and make them required?

wp ecommerce – add variation to checkout/cart and make them required?

  • Lindsey
    Member

    @lalindsey

    Hi,

    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?

    Thanks,
    Lindsey

Viewing 3 replies - 1 through 3 (of 3 total)
  • themeszone
    Member

    @wpcommerce

    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

    Amavai
    Member

    @amavai

    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!

    Amavai

    karmatiger
    Participant

    @karmatiger

    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 😀

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp ecommerce – add variation to checkout/cart and make them required?’ is closed to new replies.