Using Wordpress
+ WooCommerce
.
In the system there is only one product: "Shirt
". Then I let the user to upload his photo (from his local machine) to the web system so it will be printed on the his shirt.
Then, every time the user orders one shirt with his photo one new item should (I want to) be added to the cart. But it is the same product. For every shirt order with a custom photo an "id
" will be created.
For example, imagine he ordered:
- 2 shirts with photo 1 (uploaded from his local machine) -> id: 1
- 5 shirts with photo 2 (uploaded from his local machine) -> id: 2
- 1 shirts with photo 3 (uploaded from his local machine) -> id: 3
I want the cart displays 3 entries with the amounts: {2, 5, 1} and not just 1 entriy with the amount: 8.
I want to prevent the cart group all entries (since it is the same product).
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire