Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter thesun1

    (@thesun1)

    Thinking a bit more about it.
    Would this solve it and work for you?

    Move down the event_id generation until after the $params array has been filled.
    Then
    $event_id = "atc_".md5(serialize($params));

    This way it is stable between requests but fully dynamic to be unique per product.

    Thread Starter thesun1

    (@thesun1)

    Thanks for the quick reply. Took some time to debug this.

    Turns out that
    $session->set_data( $value );
    crashed in the _pantheon_session_write method.

    Why?
    The session create method above it returned false and you can’t call set_data on false.
    At least that was my explanation.

    Root cause that I fixed now:
    I had a db query cache and wp_pantheon_sessions wasn’t added as an exception. So it did not load a session that had been stored in there milliseconds before in the create session method.

    Learning:
    Do not cache a sessions table

    Suggestion:
    Please log a warning or an error when session can’t be created and do not use this “fake” session.

    Thread Starter thesun1

    (@thesun1)

    Sorry,
    any chance you could look into this again?

    Thread Starter thesun1

    (@thesun1)

    Hey,

    thanks for the quick reply.
    I’m using WPML with WooCommerce Multilingual and Woocommerce germanized.

    The bug was not easy to find, because the code works when there is an english product in the cart, but as soon as the product is a translated version (german) it looses access to these fields from the main product.
    This also results in the storefront_pricing_tables plugin no longer showing per unit price for these products.

    Short recap: The custom taxonomy (unit_product) does not seem to be accessible on a product translated with woocommerce multilingual. Do you have any idea how I can make wpml and germanized play well together on this?

    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)