PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

GF + Woocommerce: extra add to cart (submit) button?

  1. Hi,

    I'm looking to add a second Submit ("add to cart") button to my form ( http://www.skinnylimits.com/shop/build-your-own ). One is fixed-position, floating on the right side of the page as you scroll down, along with the "Total", via CSS.

    I'd like to add another one at the bottom of the page. Try as I might, I have been unable to find any way of implementing this via WooCommerce or Gravity Forms at all. Perhaps it can be done with a hook or of some such kind of theme customization though.

    Any insights?

    Thanks,
    Marshall

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  2. David Peralty
    Administrator

    Out of curiosity, what happens if you paste the following into a HTML field at the bottom of your form?

    <button type="submit" class="single_add_to_cart_button button3 fr alt button gform_button" id="gform_submit_button_2">Add to cart</button>
    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  3. Hmm, well for one thing, it seems that either GF or WooCommerce is renaming the id back to gform_submit_button_1 ... so styling it could be tricky. But it does look like the HTML element exists, so this could work. Give me a minute and I'll get back to you. Thanks!

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  4. Yep, I had to change some stuff around in the stylesheet, and it works great! Thanks for the suggestion. I am utterly bewildered by the fact that the _2 ID attribute that we placed in there manually somehow got changed back to _1 automatically, though. Cheers!

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  5. David Peralty
    Administrator

    Glad you got it figured out. All my best!

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink

This topic has been resolved and has been closed to new replies.