VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

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

VP-ASP New User

63 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?



VP-ASP 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.



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000