Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
add meta value while adding to cart in woocommerce using -'php,ajax,wordpress,shopping-cart,cart'
add meta value while adding to cart in woocommerce ¬†using -'php,ajax,wordpress,shopping-cart,cart'
I am using AJAX to add an item to a cart in woocommerce. Adding to the cart is working successfully but I am not able to add an extra variable or meta value to access on the cart page.
How can I add an extra meta value while adding to cart. I am using the code below for adding:
$productid = 123;
Product is adding successfully.
For example, I want to add custom value in the cart "Duration=2 hours". How can I do this?
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please