Need help with shipping costs
I have to following rules (that work):
If the total of the cart is < 300 shipping flat rate is 12
If the total of the cart is >= 300 shipping flat rate is 0
Now, if I add a product with Primeur = 1, shipping costs have always to be 12, even if the total of the cart is >= 300
I've the following rules, but the Primeur is not working. (Primeur = 1 is set inside the cart when adding the product to the cart, so this part is working):
-----
//eCart Rule
function WAEC_eCart_Versandkosten() {
$totalShipping = 0;
if (true && (($this->TotalColumn("TotalPrice") < 300))) {
$totalShipping += 12;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_eCart_Lieferkostenfranko() {
$totalShipping = 0;
if (true && (($this->TotalColumn("TotalPrice") >= 300))) {
$totalShipping += 12;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_eCart_LieferkostenfrankoPrimeur() {
$totalShipping = 0;
if (true && (($this->TotalColumn("TotalPrice") >= 300) && ($this->ConditionalTotal("Quantity", "Primeur", "1") > 0))) {
$totalShipping += 12;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
-----
Thanks for any help