<!--{ENDIF:ORDER_ANY}-->

  • Posts: 2667
  • Thank you received: 68
11 years 5 months ago #136836

-- HikaShop version -- : 223

dans un email de notification de commande .modified des emails je veux afficher un TR de tableaux uniquement si une valeur n'est pas vide

dans le preload.modified

if($data->order->order_status == 'refused' ){
	$texts['ORDER_SHIPPING_INFOS'] = '';
}

dans le mail.modified
<!--{IF:ORDER_SHIPPING_INFOS}-->
		<tr>
			<td> {TXT:ORDER_SHIPPING_INFOS}</td>
		</tr>
<!--{ENDIF:ORDER_SHIPPING_INFOS}-->

mais ca ne marche pas
comment afficher ce TR uniquement si {TXT:ORDER_SHIPPING_INFOS} n'est pas vide ?


merci

Last edit: 11 years 5 months ago by erickb.

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

  • Posts: 2667
  • Thank you received: 68
11 years 5 months ago #136838

j'ai contourne le probleme avec

$vars|'DISPLAY'| = 0;

]	<!--{IF:DISPLAY}-->
		<tr>
			<td>> {TXT:ORDER_SHIPPING_INFOS}</td>
		</tr>
		<!--{ENDIF:DISPLAY}-->

Last edit: 11 years 5 months ago by erickb.

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

Time to create page: 0.049 seconds
Powered by Kunena Forum