Ok so I have a project where the client has products with multiple options that all have stock.
I have created a stockable variant custom field and made the child items. Everything up till teh product page is working for the most part as expected. The problem is that when someone orders one of the variants the item that shows in the cart is incorrect. One of the child products is showing as the main product.
Example
Parent
Soap
Children
basic & unscented
Cocoa butter
litsea
fudge
tea tree
peppermint
herbal garden
sugar & spice
mechanic's & gardener's soaps (exfoliating)
So I want to order the tea tree soap
I choose that and hit check out and I get
mechanic's & gardener's soaps (exfoliating)
Tea tree
this should read
Soap
Tea Tree
also I tried removing the last item and remaking it and now nothing works at all. It seemed like it was trying to use the ID of the last item as the parent. Not sure if this is true but its not working as it is supposed to. How can I fix this?