This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$products = array(); | |
// add new products to the array; | |
foreach ($new_products as $key => $product) { | |
// does this prodcut have a variation? | |
if ($product['variation']) { | |
// it this variation is already in the cart, add the qty to the previous and move on. | |
if ($products[$key][$product['variation']]) { |
NewerOlder