Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Product template issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gledav
VP-CART New User

Australia
66 Posts

Posted - November 22 2010 :  23:30:28  Show Profile  Visit gledav's Homepage  Reply with Quote
I'm trying to add some data ("per dozen") from the spare field 'Other2' so it displays next to the price field on shopdisplayproducts.asp. In tmp_productformat.htm I've got:
$ <span class="fontbold">[getlang langproductprice]: </span><span class="price">[formatcustomerprice cprice]</span><span class="price">[pother2]</span>

This correctly displays as: "Price: $250 per dozen" when the Other2 field contains "per dozen" but when the record has no data in Other2 no price information displays at all. I'm using V7 but did not have this problem in V6.5. Can anyone please tell me what I'm missing?

Glenn

www.wineseek.com.au
www.creativemusic.com.au
www.mygiftbasket.com.au

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - December 10 2010 :  08:53:32  Show Profile  Reply with Quote
Hi Glenn,

sorry I missed a lot of posts recently (been extremely busy at work)
Did you manage to get this sorted?
If not, try putting the pother2 field call on a separate line starting with the $ sign so it should read:

$ <span class="fontbold">[getlang langproductprice]: </span><span class="price">[formatcustomerprice cprice]</span>
$ <span class="price">[pother2]</span>


This way it should only add the "per dozen" if there is an entry in the field and will still appear on the same line as the price.

Regards,

Carrol
www.deanston-electrical.co.uk

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00