This is similar to the shipping cost post. Am attempting to drop the item price by 1 if item quantity is > 2. I tried this and got no results at all. Any ideas or help with my coding would be great. I am no PHP guru. Thanks!
This is what I added to the function:
{
if ($item['quantity'] > 2)
{
$item['price'] += $item['price'] - 1;
return $item['price'];
$total += $item['price'] * $item['quantity'];
}
else
{
$total += $item['price'] * $item['quantity'];
}
$item_total_shipping += $item['shipping'] * $item['quantity'];
$total_items += $item['quantity'];
}