Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / In the shopping cart, how do I change $0.00 to Special Price

In the shopping cart, how do I change $0.00 to Special Price

Locked

Started by sweatingitout on 19 Jul 2008, 8:48 PM · Views: 1,359

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jul 2008, 8:48 PM
#1
sweatingitout avatar

sweatingitout

New Zenner

Join Date:
Jul 2008
Posts:
19
Plugin Contributions:
0

In the shopping cart, how do I change $0.00 to Special Price

The site url is
http://www.bahamaschequeservices.com/orders

I am trying to customize zen cart to accept orders submitted by customers of the business who are billed for orders placed online.

Right now the items in the cart are set as free. Prices are hidden. Shipping is free. But the shopping cart shows the price, sub-total, total price as $0.00

How can I substitute the $0.00 for something like Special Price or eliminate the Price altogether in the shopping cart?

Have combed through forum and have not yet found this addressed.

Thanks,

20 Jul 2008, 8:18 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: In the shopping cart, how do I change $0.00 to Special Price

Make a backup copy so you can restore original code if and when you want to add prices.

You are also bound to get flack from some of the forum members as some don't think hacking into zen cart code is the right thing to do. I look at it as Zen Cart is the basic template but not all of us have the same uses and it is open source and flexible and changeable for your uses.

Open includes>templates>your template>templates>tpl_shopping_cart.php.

You will need to remove code from 4 lines.
Find at around line 57 and remove: this removes Unit from the heading

<?php echo TABLE_HEADING_PRICE; ?>

next line, 58 remove this code, it will remove the words Total.

<?php echo TABLE_HEADING_TOTAL; ?>

Then drop down to lines 107 and 108 and remove from line 107

<?php echo $product['productsPriceEach']; ?>

remove from line 108
<?php echo $product['productsPrice']; ?>

You can change any of the removable code with wording of your own, such as Gratis or Free an example would be line 107 to 108

   <td class="cartUnitDisplay"></td>
   <td class="cartTotalDisplay">Free</td>

Play with it long enough and you will break it.
20 Jul 2008, 11:17 PM
#3
sweatingitout avatar

sweatingitout

New Zenner

Join Date:
Jul 2008
Posts:
19
Plugin Contributions:
0

Re: In the shopping cart, how do I change $0.00 to Special Price

Thanks, it worked. Would not have known where to look but have managed to customize the cart according to my clients specs.
Thanks again!