Code: Select all
$cartProds = $this->cart->getProducts();
if(count($cartProds) == 1) {
foreach ($cartProds as $product) {
if($product["model"] != "0055") {
return array();
}
}
} else {
return array();
}
Thank you in advance for your help!
Code: Select all
$cartProds = $this->cart->getProducts();
if(count($cartProds) == 1) {
foreach ($cartProds as $product) {
if($product["model"] != "0055") {
return array();
}
}
} else {
return array();
}
Code: Select all
$cartProds = $this->cart->getProducts();
if(count($cartProds) == 1) {
foreach ($cartProds as $product) {
if($product["model"] != "0055" OR $product["model"] != "0044") {
return array();
}
}
} else {
return array();
}
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Code: Select all
if(count($cartProds) == 1) {
Code: Select all
$cartProds = $this->cart->getProducts();
$rate_flag = true;
foreach ($cartProds as $product) {
if($product["model"] != "0055" OR $product["model"] != "0044") {
$rate_flag = false;
}
}
if ($rate_flag === false) {
return array();
}
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Users browsing this forum: Yahoo [Bot] and 529 guests