![]() |
Help adding a <br> tag in a php file for listed products
Currently I have this code in my php file:
$giftcert["message"] = "".func_get_langvar_by_name("txt_message").":\n".$ product_line; and it currently will display something like this in the email notification: ex. You purchased: Coffee maker E37 Dodgers 07 Baseball Cap Graphic Tee Mens (BUT) I would like to have a <br> tag added with each product that is listed, see example below: ex. You purchased: Coffee maker E37 Dodgers 07 Baseball Cap Graphic Tee Mens Can someone help me out? If its easier to add a COMMA between products that would be fine for me to. ex. You purchased: Coffee maker E37, Dodgers 07 Baseball Cap, Graphic Tee Mens |
Re: Help adding a <br> tag in a php file for listed products
Quote:
Before that line should be where the cycle would read something like: PHP Code:
change this line, add one <br> tag - ."<br>"; PHP Code:
|
Re: Help adding a <br> tag in a php file for listed products
Thank you it worked perfict.
- I have another question if i wanted this change to display only on the customer-end, could you help me out w/ the (ie. if, else) statement that i should include. |
Re: Help adding a <br> tag in a php file for listed products
Quote:
Explain to me what is - "customer-end"? Checkout, confirmation page or ...? |
Re: Help adding a <br> tag in a php file for listed products
When i am using tpl files if i want to display something in a particular way for customers to see VS admin/provider users etc.. i would apply something like the below.
example. "C" means customer-end users: {if $usertype eq "C"} <FONT class="DetailsTitle">{$lng.txt_header}</FONT> {else} {$lng.txt_header} {/if} Q. how do i write this IF,ELSE statement but in php with the below example. $product_line .= "\n".$product['product'].' #'.$product['productid']."<BR></BR>"; |
Re: Help adding a <br> tag in a php file for listed products
Example for customer or affiliate.
PHP Code:
|
All times are GMT -8. The time now is 05:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.