• I recently found something, that I would consider as a bug:

    In my use case, I use the fields for custom length and width items based for a specific variation product. After I adding it to the cart and opening the item via the cart link, the product is missing the fields. I checked my settings and they are ok.
    The developer tool also doesn’t throw an error but: when ich looked up at network and looked through the ajax payload I realised, that the variation_id was 0.
    This caused the ajax to not load porperly and the fields were not appended to the product.

    When I looked (and tested) in the code, it seems you are loading the variation_id only .on(‘change’), but not .on(‘load’). Simple solution for this bug would be to put line 944 to 951 from wcff-client-src.js into a function and use this .on(‘load’) and .on(‘change’).

    Please correct me if I’m wrong or missing something. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Sark

    (@sarkware)

    You are absolutely correct, I too encountered this issue, but I overlooked it.
    Yes I am using change event for reloading variable fields. Will include load event too, with my upcoming release.

    Thread Starter gildner

    (@gildner)

    Great to hear and thanks for the quick response! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing variation ID when comming from cart’ is closed to new replies.