Missing variation ID when comming from cart
-
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. 🙂
- The topic ‘Missing variation ID when comming from cart’ is closed to new replies.