Support » Plugins and Hacks » add-to-cart form validation, variable products, and add ons

add-to-cart form validation, variable products, and add ons

  • I’m having a difficult time creating some add-to-cart form validation with variable products.

    –I’ve disabled the add-to-cart button animation so that the button displays by default
    –I currently have the color/image swatch add-on as well as the gravity forms for woocommerce add-on on the product page
    –I don’t want to have an image swatch or the gravity form fields selected by default

    I can’t seem to find the code that will allow me to perform a very simple validation to check if either a swatch has been selected or a gravity radio button has been checked.

    Since the gravity forms add-on is installed, I’m assuming the modification would be in the gravity-forms-product-addons.php file, but I haven’t had success.

    Any assistance would be appreciated.

    Test url: http://wordypress.info/?product=Dreamer


Viewing 1 replies (of 1 total)
  • Not sure that it impacts your add to cart issue, but your theme is throwing off errors in console. Timestamp: 5/17/2013 8:28:22 AM
    Error: downloadable font: download failed (font-family: “SourceSansProRegular” style:normal weight:normal stretch:normal src index:1): status=2147746065
    source: http://wordypress.info/font/SourceSansPro-Regular-webfont.woff
    Source File: http://wordypress.info/wp-content/themes/rustik/custom.css
    Line: 0
    Source Code:
    @font-face { font-family: “SourceSansProRegular”; font-style: normal; font-weight: normal; src: url(“http://wordypress.info/font/SourceSansPro-Regular-webfont.eot?#iefix”) format(“embedded-opentype”), url(“http://wordypress.info/font/SourceSansPro-Regular-webfont.woff”) format(“woff”), url(“http://wordypress.info/font/SourceSansPro-Regular-webfont.ttf”) format(“truetype”), url(“http://wordypress.info/font/SourceSansPro-Regular-webfont.svg#SourceSansProRegular”) format(“svg”); }

Viewing 1 replies (of 1 total)
  • The topic ‘add-to-cart form validation, variable products, and add ons’ is closed to new replies.