How to pass woocommerce product attributes in hidden fields?
Author | Posts |
---|---|
February 21, 2015 at 12:40 am 37258 | |
towhid | Hi, I have a form to create woocommerce products from the front-end. I want to pass the value of a custom product attribute as a hidden field (let's say the product attribute name is "sellable" and the product attribute I want to pass is "yes" ans has an id of 21). I created a hidden field, put meta key ="pa_sellable" and value ="21" (I also tried "yes" as a value and _product_attribute = pa_sellable as meta), but the attribute doesn't appear on the product in the woocommerce back-end. Any ideas? Thanks |
February 23, 2015 at 4:10 pm 37427 | |
towhid | Hello Malcolm, I will try to reproduce this issue and let you know the solution. Please allow me some times. Thank You 🙂 |
February 24, 2015 at 4:58 pm 37534 | |
towhid | Hello Malcolm, I have tried to reproduce this issue but can not makeup according the way you mentioned. Please provide your login details by using this form – http://wedevs.com/provide-login-details/. I need to checkout what you are actually going to do with the form. Thank you 🙂 |
February 25, 2015 at 11:29 pm 37675 | |
Malcolm | This reply has been marked as private. |
March 6, 2015 at 10:51 pm 38427 | |
Malcolm | Hi. Any chance of getting instructions on how to use hidden fields for custom woocommerce product attributes? Thanks. |
March 7, 2015 at 12:52 pm 38465 | |
towhid | Hello Malcolm, Sorry for my late reply. Hope tomorrow I will come-up with a right solutions. Thank You for you patience. 🙂 |
March 10, 2015 at 10:38 am 38712 | |
towhid | Hello Malcolm, I have talked with my developer team. They told me apparently this is not possible due to – hidden field does not has any provision to accumulate any attribute’s meta value. Thank You 🙂 |