- Posts: 267
- Thank you received: 5
extra fields in the body of the email
11 years 7 months ago #190043
by dvddvd
extra fields in the body of the email was created by dvddvd
-- 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
-- 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
Please Log in or Create an account to join the conversation.
11 years 7 months ago #190061
by nicolas
Replied by nicolas on topic extra fields in the body of the email
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;
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.194 seconds