Probably You are mixing up with a discount and a special price... Discount is meant as a sale if You buy more items, lets say that basic price is $35, but You want to give customers the discount if they buy more than 10 pieces at once, let's say $30, and 20$ if they buy more than 25 items at once, and $10 if they buy more than 100 pcs at once.
Then You would set the discount(s) like this:
Customer Group | Quantity | Priority | Price | Start | End
pick one | 10 | 1 | 35 | |
pick one | 25 | 2 | 20 | |
pick one | 100 | 3 | 10 | |
These discounts would then be applicable only for logged in customers that are from the desired customer group.
The value that You wish to set is the Special - and again, the special price will be immediately available to a logged in customer from the desired customer group - so no checking for the customer group is needed... For more details check the SQL query in method getProduct()
(or getProducts()
) within catalog/model/catalog/product.php
model class - the discounts and the specials are already joined and selected regarding the customer group of logged in customer.
Just leave it as it was:
<div class="price"><?php echo $text_price; ?>
<?php if (!$special) { ?>
<?php echo $price; ?>
<?php } else { ?>
<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
<?php } ?>
...
Should You need to change the order (special price first), change the appropriate line to
<span class="price-new"><?php echo $special; ?></span> <span class="price-old"><?php echo $price; ?></span>