View Single Post
  #9  
Old 09-02-2015, 07:19 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Re: QuickViews Problem

Quote:
Originally Posted by qualiteam
This means the tag should be displayed only if the function returns TRUE or a data that PHP would cast into TRUE. NULL turns into FALSE, so the LI tag won't be rendered for products with getPPCField() being NULL.

It didn't work... Is it possible it is a 0 length instead of null? Is there a way for it to assume null and zero length = False?

This is what I used

PHP Code:
<div class="ppc-field" IF="product.getPPCField()">
      <
b>
      <
span class="name">{t(#Pieces Per Case: #)}</span>
      
<span class="ppc-field-value">{product.getPPCField()}</span>
      </
b>
  <
div
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote