• Resolved df7729

    (@df7729)


    Hello,

    I have setup a new dropdown list on the cart.php and I need to get that value on a custom checkout page using a new shortcode. I can’t find the $_POST data anywhere. Can someone help out? Rather than put all the code here, there is also a stackoverflow.com question at add-dropdown-list-to-woocommerce-cart-and-retrieve-value-on-checkout

    In that example, one of the agents could be the normal checkout page.

    Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    I understand you would like to add a custom dropdown and then show its value on the cart, and checkout.

    Can you please check this example?

    I hope this helps.

    Thread Starter df7729

    (@df7729)

    Hello,

    Thanks, I’ve found all kinds of “per item” or “per product” or “checkout page” examples. What I haven’t found is one that is not per product, but just for the cart overall.

    I place a dropdown list on there via woocommerce_after_cart_totals and it shows under the Proceed to Checkout button. When that button is clicked, it goes to a form with my custom shortcode instead of the default shortcode. I can’t figure out how to get the value? Again it’s not per item or per product.

    • This reply was modified 3 years, 1 month ago by df7729.
    Mirko P.

    (@rainfallnixfig)

    Hi @df7729,

    Thanks for clarifying.

    This is a more development-oriented question. I’ll go ahead and leave this thread open for a while in case anyone else wants to chime in, but in the meantime, I can also recommend the following resources for help:

    Cheers.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pass dropdown list from cart to checkout page?’ is closed to new replies.