Help - Search - Members - Calendar
Full Version: Is it possible to have text in price field?
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
stevengw
I would like to be able to input text in price field..

as a for instance: i would like product price to show POA (price on application) or CU (contact us) or similar.

is this possible? i am unable to find an answer.

reason is, some products on my website are built to order, so its simpler to either
a: put price as POA and not have it at zero. or
b: remove price.

so an option to have a price or no price shown and POA or other text shown would be cool.



any help or advice please? sorcerer.gif

regards

steve
ansuk
Im not sure how you would do it so you have the option of both but to do it so all you have is POA or Contact us.......

Open SkinName/StyleTemplates/Content/index.tpl and find
QUOTE
{TXT_PRICE}
Then change that to POA or whatever.

Then open SkinName/StyleTemplates/Content/viewcat.tpl and find
QUOTE
{LANG_PRICE}
and
QUOTE
{TXT_PRICE}
and do the same.

Then open SkinName/StyleTemplates/Content/viewprod.tpl and find
QUOTE
{TXT_PRICE}
and do the same.

Hope that helps smile.gif
stevengw
Thanks Ansuk,
your advice really helped.

i created a work around.
first i removed {TXT_PRICE} from SkinName/StyleTemplates/Content/index.tpl
reason: to no longer display the price within latest products on home page.

I then removed {LANG_PRICE} & {TXT_PRICE} from SkinName/StyleTemplates/Content/viewcat.tpl
reason: to no longer display price within the category product listing.

Next i changed SkinName/StyleTemplates/Content/viewprod.tpl
<strong>{LANG_PRICE}</strong> {TXT_PRICE}

to
<strong>Retail {LANG_PRICE}</strong> {TXT_PRICE} [If price is £0.00 product is either out of stock or POA]
now when the customer views the product if the price is zero the reason is explained beside price.
Here is an example of a product listing on my site



Product Information

Hand painted pine flower dresser. Hand made from reclaimed pine.

Size: H 80" W 72" D 22"

Retail Price: £0.00 [If price is £0.00 product is either out of stock or POA]


thanks for your help..

regards

steve

ps. how would i change [If price is £0.00 product is either out of stock or POA] to a text colour of blue?
stevengw
QUOTE
ps. how would i change [If price is £0.00 product is either out of stock or POA] to a text colour of red?



figured this one out myself..

first i created a new field within /skins/Killer/styleSheets/style.css

}
.txtExtraPriceInfo {
color: #FF0000;
font-weight: bold;
}


i then added to /skins/Killer/styleTemplates/content/viewProd.tpl

<strong>Retail {LANG_PRICE}</strong> {TXT_PRICE} <p class="txtExtraPriceInfo">[If price is £0.00 product is either out of stock or POA]</p>


now my extra price text shows in red.. sorcerer.gif

happy days. biggrin.gif

regards

steve
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.