Home › Forums › Backend Issues (wp-admin) › Checkboxes with same value › Reply To: Checkboxes with same value
Ok, so I have a problem.
I’m working on a front-end form that calculates prices, I have a lot of items with a price and everyone has a checkbox for add/remove.
For example:
100 : Lights
100 : Brakes
300 : Engine
Where the number is the price and the name is the product. Then if you have selected Lights and Engine I calculate via javascript the total of 400.
My problem, as you see, is that if I have two products with the same price only one will be stored.
You know any way to store the price and the product name? like saving the price into another attribute apart from the value?
Thank you.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.