Product Batch Price updating Cart
I got following tables: Products | ProductBatch
Product contains: ID, ProductName, CatID,
Product Batch contains, ID, ProductID, ProductPrice, ExpDate
Each product can have different batch of products so price do vary so price is added on product batch table.
Now on product detail page i got a ionSlider as to choose how many quantity of product is required.
Screenshots of eCart & ATC button attached.
When a product has only one batch then product with BatchName is found on cart.
But when there 2+ batches then when i choose a slider's quantity it doesn't add relevent quantity. But enter's other slider's values.
Why is this happening & how do we fix it?