0

I got the following code:

{$productinfo.ProductPhone} {if isset($productinfo.Productphone)} {$business_business_phone} {$productinfo.ProductPhone} {/if}

The first line is used as a witness and does return the phone number. This value comes from database, so if there's no phone number, I don't want a random "phone:" hanging around (that's the {$business_business_phone} variable to handle multiple languages.

My problem is... {$business_business_phone} {$productinfo.ProductPhone} should be displayed since there's a value.

1
  • 1
    Are you sure the value isn't set? Perhaps you need to check if the $productinfo.Productphone != "" instead?
    – GWW
    Feb 20, 2011 at 5:18

1 Answer 1

0

I checked. It was indeed a problem in the database layer. It inserts an empty string. It's fixed :)

Thanks a lot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.