Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Adding text "Price" in front of the price

Adding text "Price" in front of the price

Started by gabicen on 15 Jun 2012, 1:33 PM · Views: 566

Results 1 to 3 of 3
15 Jun 2012, 1:33 PM
#1
gabicen avatar

gabicen

New Zenner

Join Date:
Jul 2011
Posts:
13
Plugin Contributions:
0

Post #1 by gabicen

How can I display text "Price: " in the left part of the product's price?
For example: in front of the red prices form this page: http://consumabile.org/index.php?main_page=index&cPath=236
My site: consumabile.org - in romanian.
Template: iC Atheme.

Thanks in advance,
Gabriel

16 Jun 2012, 9:18 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #2 by rbarbour

in /includes/modules/YOUR_TEMPLATE/product_listing.php

find:

          case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text =  $lc_price;

change to:

        case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text = TABLE_HEADING_PRICE . ': ' . $lc_price;
17 Jun 2012, 8:00 PM
#3
gabicen avatar

gabicen

New Zenner

Join Date:
Jul 2011
Posts:
13
Plugin Contributions:
0

Post #3 by gabicen

It works but only for product listing and not for product details and featured products ("promotii").
Thank you rbarbour!