Hello,
It seems to me complicated and I wish someone could help.
I’m trying simply to populate information from backend to Front End, I have The tracking number information visible in my backend and I simply want to populate those information into my front End but I don’t know how, I’m using Symfony framework and Smarty
Here is my code form Backend:
{foreach $mp_seller_order_details as $mp_order_detail}
<tr>
<td>{$mp_order_detail.0.seller_shop}</td>
<td>
<span style="background:{if isset($mp_order_detail.0.ostate_name)}{$mp_order_detail.0.color}{else}{$currentState->color}{/if};color:white !important; border-radius: 5px; padding: 5px; ">
{if isset($mp_order_detail.0.ostate_name)}
{$mp_order_detail.0.ostate_name}
{else}
{$currentState->name}
{/if}
</span>
</td>
<td>{$mp_order_detail.0.tracking_url}</td>
<td>{$mp_order_detail.0.tracking_number}</td>
<td><a class="btn btn-default" target="_blank" href="{$link->getAdminLink('AdminSellerInfoDetail')}&id_seller={$mp_order_detail.0.id_seller}&viewwk_mp_seller"><i class="icon-search-plus"></i> {l s='View Seller' mod='marketplace'}</a></td>
<td>
<a data-id="{$mp_order_detail.0.id_seller}" class="btn btn-default wk-seller-prod" href="javascript:void(0);">
<i class="icon-search-plus"></i> {l s='View Detail' mod='marketplace'}
</a>
</td>
{hook h='displayAdminPsSellerOrderViewBody' idSellerCustomer=$mp_order_detail.0.seller_customer_id}
</tr>
So I have this line <td>{$mp_order_detail.0.tracking_number}</td>
and I have the code from Front End:
{foreach from=$order.shipping item=line}
<tr>
<td>{$line.shipping_date}</td>
<td>{$line.carrier_name}</td>
<td>{$line.shipping_weight}</td>
<td>{$line.shipping_cost}</td>
<td>{$line.tracking}</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="hidden-md-up shipping-lines">
{foreach from=$order.shipping item=line}
<div class="shipping-line">
<ul>
<li>
<strong>{l s='Date' d='Shop.Theme.Global'}</strong> {$line.shipping_date}
</li>
<li>
<strong>{l s='Carrier' d='Shop.Theme.Checkout'}</strong> {$line.carrier_name}
</li>
<li>
<strong>{l s='Weight' d='Shop.Theme.Checkout'}</strong> {$line.shipping_weight}
</li>
<li>
<strong>{l s='Shipping cost' d='Shop.Theme.Checkout'}</strong> {$line.shipping_cost}
</li>
<li>
<strong>{l s='Tracking number' d='Shop.Theme.Checkout'}</strong> {$line.tracking}
</li>
How can I get
</strong> {$line.tracking}
from second code
I’m lost here, I tried to input the variable but it is always not recognized