Working fine except field only saves last value on multiple product listing
-
Hi,
I have a client using Tribe’s Events Ticket Plus with Woocommerce.
Your plugin has been the only one on the market where I can add fields on pages other than product pages. For that, I’m calling the function:
ppom_woocommerce_show_fields();
and it works great! This creates a new field as a product add-on for every ticket and displays against each product in the list.
The only issue I’m seeing, is that when I have multiple tickets per page, such as here:
…when I add these to cart, it only saves the last date that was set on the product list. This then seems it overwrite the previous dates entered, so it uses the same value form the last for all.
So in the basked and checkout, all products with fields have the last entered date set for all previous fields:
My guessing is the value of the field is the same for all fields, rather than them being unique and on save or add to cart, saves the last value or all.
Is there anyway I can add a unique value or ID to each field input / save process, so that they get saved with their unique data?
Thanks – great plugin otherwise!
PS – I also found that when I enabled the jQuery UI datepicker, it only displayed on the first field only.
- The topic ‘Working fine except field only saves last value on multiple product listing’ is closed to new replies.