Home Forums WC Vendors Free Support Doubling Quantity, add One, or Change Quantity from 1 to 2

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70815
    Adam
    Participant

    Hi there,

    I display a conditional notice in customer carts when any quantity is only one, to the effect of “Need a spare? It might pay to buy an extra while you’re here.”

    I want to change this now to a call-to-action button, where the quantity of that product is changed to two items. Once the page reloads the call-to-action/notice already disappears.

    I don’t want to have to make a different call-to-action button for every product in my store (as you can imagine!), but I’m not quite sure what the best way to do it would be:
    Find any/all items in the cart with quantity 1 and:
    -change quantity from 1 to 2,
    -add 1 more
    -double the quantity

    I’m also not quite sure how to do this, although there is the option to put a javascript onclick or a html link in the button settings.

    #70817
    Adam
    Participant

    Sorry, that should say,
    “Once the page reloads, the call-to-action/notice is already set to disappear, so I only need to work out how to change the quantity.”

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.