Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
Specified shipping for Specified products?
You are most welcome ... :smile:
Views: 3,070
Oba-san
You are most welcome ... :smile:
New Zenner
Can add more products_id's to that piece of flat rate code, using an "or" type statement? Also, could I set a required quantity of said products_id before flat rate is offered??
Oba-san
To do products_id 12, 15 and 17 use:
$chk_worms = $_SESSION['cart']->in_cart_check('products_id','12');
$chk_worms += $_SESSION['cart']->in_cart_check('products_id','15');
$chk_worms += $_SESSION['cart']->in_cart_check('products_id','17');```
New Zenner
How would say, (4 of same products_id "6", then offer Flat Rate) look like?
Oba-san
You have to make the check on the products_id logical ... for greater or equal to 4 on products_id 6 you could use:
$chk_worms = $_SESSION['cart']->in_cart_check('products_id','6');
if ($chk_worms >= 4 && $type != 'PRIORITY') {
Tell staff why this post should be reviewed.