I don't think that's quite what I need
Here is my code. This is not in the WA_eCart newProducts_PHP.php file, but earlier.
while (!$newProducts->EOF()) {
if ($newProducts->DisplayInfo("ShipCalcMethod") == "call"){
$quote++;
} elseif ($newProducts->DisplayInfo("ShipCalcMethod") == "fixedF") {
if($mattresses > 0 ) {
if ($newProducts->DisplayInfo("Quantity") <= $mattresses ) {
$newProducts->itemShipCalcMethod ="free";
$mattresses -= $newProducts->DisplayInfo("Quantity");
} else {
$newProducts->ItemShipCalcMethod ="fixed";
}
} else {
$newProducts->ItemShipCalcMethod ="fixed";
}
}
$newProducts->MoveNext();
}
I thought that $newProducts->ItemShipCalcMethod ="fixed"; would re-set the variable for that particular product/ship method, but it doesn't. Is there some syntax I can use to do this on the individual item in the cart.
At the beginning of this, I have already computed how many mattresses are in the order. Any foundation ships free if there is a off-setting mattress.