extra fields in the body of the email

  • Posts: 267
  • Thank you received: 5
9 years 8 months ago #190043

-- HikaShop version -- : bussiness 2.3.5
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.3.10-1ubuntu3.8
-- Browser(s) name and version -- : Chrome

I added these extra fields in the body of the email status change .
Are not required therefore do not always acquire a value .
One could make only appear if they have no value and its value is blank not display



thamks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
9 years 8 months ago #190061

It's simple.
Instead of :
echo "<b>Label: </b>". $prod->field;
you could have instead:
if(!empty($prod->field)) echo "<b>Label: </b>". $prod->field;

The following user(s) said Thank You: dvddvd

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum