WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
WooCommerce: How to create dynamic checkout field based on quantity ordered? (1 post)

  1. radam2k
    Member
    Posted 5 months ago #

    How can I create dynamic, required checkout fields in WooCommerce based on the quantity of a product that is in the shopping cart?

    I have a customer that would like me to track store numbers associated with each product purchased. For example, if there are 3 items in the cart, during checkout there will be 3 corresponding fields that require the customer to enter the applicable store number (numeric text input) for each item. There will never be a case where one item should be associated with more than one store, however there could be cases where more than one item should be associated with the same store. If the customer were to add or subtract to the number of items in the cart, then the number of required store number fields would respond accordingly to match.

    The required information (store numbers) should be posted to the order details once checkout is completed.

    I previously purchased and installed the Checkout Fields Extension for WooCommerce.

    running WooCommerce 2.1.5, Mystile theme

    https://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic