I created a plugin that does the following:
when you click "add to cart" button, it starts an editor where you can edit photos.
After your edit, a pdf file is created an put on the server (it can be printed afterwards).
My hikashop product is configured like this:
the product (product_id : x ) is created and a characteristic is linked to it (the dimension).
User workflow (without defect):
A user enters the product (x) page and selects the desired dimension.
A product with characteristic_id c1 is created and added to the cart.
The user wants to order a second edited photo and orders product x again, but now for another dimension (c2).
The cart contains now 2 records, one for product x with dimension c1 and one for product x with dimension c2.
Both containing an url to a different pdf file.
User workflow (with defect):
A user enters the product (x) page and selects the desired dimension.
A product with characteristic_id c1 is created and added to the cart.
The user wants to order a second edited photo and orders product x again, and now for the same dimension (c1).
The cart contains now 1 record, containing only the data of the last order.
==> should contain 2 records for the same product, with another pdf file linked.
How can I configure hikashop to behave like this?