I make some code and almost finish my shopping cart on website. Just need finally touch
Ok, I have problem on last page, problem is like this. When someone click to order what he putted in shopping cart, on one page I wanna list everything what he ordered an send on e-mail. Trick is I don't have only id in array, I have almost quantity. For example, if someone order article with id=1 and quantity 3, and article with id=2 and quantity 4, and article with id=3 and quantity 2. On my page I get all that in array like this:
When I print that I get this:
How to I get from my table "description", list of every article in this example and immediately multiply them price with quantity?
I try something with:
$id_quantity_pair = explode("-", $array); // Uses Hyphen(-) as delimiter to separate product ID from its quantity
$product_id = $id_quantity_pair; // Get the product ID
$product_quantity = $id_quantity_pair;
But I dont know how to put that in list, I know only to working with array with one value.
Anyone to help me?