[Resolved] How to treat cart items individually rather than grouped product
I have a site that allows a person to personalize each item (like engraving an iPod) they add to the cart. Often a person will add the same sku to the cart but have different personalization for each item. The cart only shows a single line item per sku and a quantity. How can I make each item be displayed on a single line?
Please do not point me to a plugin. If the plugin can accomplish this, then the question is how?
I don’t mind re-developing the cart so that it shows each item on it’s own line, but when I access the cart object, it also only shows the contents grouped by product:
array (size=1) 'ec8956637a99787bd197eacd77acce5e' => array (size=5) 'product_id' => int 102 'variation_id' => string '' (length=0) 'variation' => string '' (length=0) 'quantity' => string '3' (length=1) 'data' => object(WC_Product_Simple) public 'id' => int 102 public 'post' => object(WP_Post) ... public 'product_type' => string 'simple' (length=6)
Ideally, I’d like to create a variation that doesn’t require pre-determined values, instead allowing the end user to provide the value for the variation, but I don’t think this is possible. I’m open to suggestions.
- The topic ‘[Resolved] How to treat cart items individually rather than grouped product’ is closed to new replies.