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
 using the $ to hide empty items
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mark Priest
VP-ASP Expert

United Kingdom
573 Posts

Posted - August 09 2009 :  21:48:54  Show Profile  Reply with Quote
Hi All

I use the $ feature in the code to hide certain things. for example. Some of my products have a video and some don't in the code I put a $ sign at the begining on the line that calls for the link to the video. IF there is no link to the video in the database for that product then no image shows.

This way people only see the image for videos that exist.

However, i've come across a problem.

I've changed the software that's used to play the video and i can parse data to this to be displayed, one of these it the product title. However when I add this it displays the link to the video regardless, reason being is that the product title exists for everything.

Can anyone see a way round this?

I've posted the details of the code below.

$<a href="[pother1]" rel="shadowbox;height=450;width=800;options={flashVars:{logo:'http://www.domain.com/images/video_watermark.png'}}" Title="[translate cname]"><img src="/images/icons/video.gif" alt="watch video of this firework" width="105" height="48" border="0" /></a><br /><br />[BYZ_EXAMPLE1_ARGS cstock]<br />

So what happens if there is no link to the video in POTHER1 then the image isnt displayed, however I want to pass the cname to the player to display it, but by adding the TAG it automatically displays the image. grrr


  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000