Check out the SRiC link in my signature.
Check out the SRiC link in my signature.
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
Thanks Steven
I noticed that a lot of people are asking for this. I am glad you find the time to code it. I will give it a try on my new site.
It worked like a charme for the shopping cart page
Last edited by CoolCarPartsOnline; 14 May 2009 at 12:35 AM.
You're welcome. If you have any issues at all, this is the support thread:
http://www.zen-cart.com/forum/showthread.php?t=125817
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
Here is another question for you. I want to display the sub-total, shipping and total in the header. So if the cart is empty it will show 0 for all the fields but when there is something in the cart it will display the total. Now i managed to display the cart total in the header when there is products in the cart and display "Shopping Cart Empty" when the cart is empty can I do the same for the shipping and total? Is it possible to add an if statement?
I just thought of a way but I will need your feedback.
I am thinking about creating an if statement to display:
Shopping cart is empty
sub-total: $0.00
shipping: $0.00
total: $0.00
and once a customer add product I can display the result from your mod. I am looking at the sidebox code which part of the code will I need to copy in the if statement, also I want to style the result, what is the shortest way to do it. I want it to be displayed all the time so I will not care much about the admin control.
As a minimum, you will need:
lines 51-66 to get the currency symbol
lines 68-69 to include the logic
lines 71-84 to work out the shipping rate
line 114 to get the sub-total
lines 116-120 to work out the total
Then it's up to you to style and display the following variables:
$cartShowTotal
$sric_shipping
$sric_total
You will need to display $currency_symbol just before displaying $sric_total
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
PHP Code:if ($_SESSION['cart']->count_contents() == 0) {
echo "Shopping cart is empty";
echo "<br />";
echo "sub-total: $0.00";
echo "<br />";
echo "shipping: $0.00";
echo "<br />";
echo "total: $0.00";
} else {
//code from above post
}
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
is there a way to show the shipping rate in order and invoice?