• Resolved Phil

    (@owendevelopment)


    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:

    View post on imgur.com

    …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:

    View post on imgur.com

    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.

    • This topic was modified 6 years ago by Phil.
    • This topic was modified 6 years ago by Phil.
Viewing 4 replies - 1 through 4 (of 4 total)
  • N-Media

    (@nmedia)

    Hi,

    Ok it looks good to me that you have used this for Tickets. Can you please create a little post that how you are using PPOM with Tickets? I will also make it compatible.

    Thread Starter Phil

    (@owendevelopment)

    So my setup is a little custom.

    Using tribe Events Tickets Plus plugin.

    This allows creation of tickets on any WP page or post (I’m using a custom post type).

    When you create tickets, they create separate Woocommerce products. I have added the PPOM fields onto those products.

    On the front-end, the page with tickets aggregates them onto one page, but they are still separate products to Woocommerce.

    I’m finding as seen in my first post, that the datepicker for the date field is only saving the last date used when multiple tickets with dofferent dates are selected. I assume it’s a javascript issue being saved to the input – rather than having different unique classes to save data against. Maybe product ID would be a good one for a unique ID perhaps?

    Thread Starter Phil

    (@owendevelopment)

    Did you manage to get this fixed at all?

    N-Media

    (@nmedia)

    Hi,

    well for this we have to make major chages in our PPOM Pluign and right now we are busy for other versions. We may consider this change future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Working fine except field only saves last value on multiple product listing’ is closed to new replies.