Good afternoon, is it possible to implement a letter to an employee not with a full list of products, but only a certain category?
I currently have this template, the entire list of products for the order is sent here.
Please collect the goods for shipment under account number {|$customorder_Rahunnok|} and invoice number {|$customorder_Vidatkovanakladna|} delivery method {|$deliveryName|}
Image
Article
Name
Quantity
Warehouse location
{|foreach from=$basketsArray item="b"|}
{|$b.articul|}
{|$b.name|}
{|$b.count|}
{|$b.customProduct_Mstsenasklad|}
{|/foreach|}
Good afternoon, is it possible to implement a letter to an employee not with a full list of products, but only a certain category? I currently have this template, the entire list of products for the order is sent here. Please collect the goods for shipment under account number {|$customorder_Rahunnok|} and invoice number {|$customorder_Vidatkovanakladna|} delivery method {|$deliveryName|} <table border="1" style="width: 100%; border-collapse: collapse; border-style: solid;" cellpadding="5"> <tbody> <tr> <td style="width: 10%; text-align: center;"><span style="color: #006400; font-family: arial, helvetica, sans-serif;"><strong><span style=" font-size: 16px;">Image</span></strong></span></td> <td style="width: 10%; text-align: center;"><span style="color: #006400; font-family: arial, helvetica, sans-serif;"><strong><span style=" font-size: 16px;">Article</span></strong></span></td> <td style="width: 50%; text-align: center;"><span style="color: #006400; font-family: arial, helvetica, sans-serif;"><strong><span style=" font-size: 16px;">Name</span></strong></span></td> <td style="width: 10%; text-align: center;"><span style="color: #006400; font-family: arial, helvetica, sans-serif;"><strong><span style=" font-size: 16px;">Quantity</span></strong></span></td> <td style="width: 10%; text-align: center;"><span style="color: #006400; font-family: arial, helvetica, sans-serif;"><strong><span style=" font-size: 16px;">Warehouse location</span></strong></span></td> </tr> {|foreach from=$basketsArray item="b"|} <tr> <td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;"><img src="{|$b.image|}" width="80" height="80" /><br /></span></td> <td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #008000;">{|$b.articul|} <br /></span></td> <td style="width: 50%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #008000;">{|$b.name|} </span></td> <td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #008000;">{|$b.count|} </span></td> <td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #008000;">{|$b.customProduct_Mstsenasklad|} <br /></span></td> {|/foreach|} </tr> </tbody> </table>
XXX - дополнительное поле продукта для сравнения. Туда Вы можете копировать название категории, например. Значение в ' ' - значение с которым сравнивать. {|/if|} - не забываем закрывать if после условия.
категорию точно нет, но с доп. полями можно сделать
{|foreach from=$basketsArray item="b"|}
{|if $b.customProduct_XXX == 'Моя категория'|}
<tr>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;"><img src="{|$b.image|}" width="80" height="80" /><br /></span></td>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; колір: #008000;">{|$b.articul|} <br /></span></td>
<td style="width: 50%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; колір: #008000;">{|$b.name|} </span></td>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; колір: #008000;">{|$b.count|} </span></td>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; колір: #008000;">{|$b.customProduct_Mstsenasklad|}
<br /></span></td>
{|/if|}
{|/foreach|}
XXX - дополнительное поле продукта для сравнения. Туда Вы можете копировать название категории, например. Значение в ' ' - значение с которым сравнивать.
{|/if|} - не забываем закрывать if после условия.
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up