Im trying to get the product name for each order in backend manage.tpl, anyone can point me on the rigth direction please.
My idea is to show each product name after price. I attach an image to clarify.
Best Regards
Jema
Im trying to get the product name for each order in backend manage.tpl, anyone can point me on the rigth direction please.
My idea is to show each product name after price. I attach an image to clarify.
Best Regards
Jema
- Enable the My changes module
- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_header.post.tpl
Content:
{__('products')}
- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_data.post.tpl
Content:
{$o_info = $o.order_id|fn_get_order_info} {foreach from=$o_info.products item=oi}{$oi.product}
{/foreach}
- Clear cache and check the result
This addon does pretty much this
https://store.cart-power.com/cs-cart-extended-orders-info-add-on.html
Also there is feature called "view purchased products", you must be in
admin.php?dispatch=orders.manage
select few order, on right drop down menu pick "view purchased products"
- Enable the My changes module
- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_header.post.tpl
Content:
{__('products')}- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_data.post.tpl
Content:
{$o_info = $o.order_id|fn_get_order_info} {foreach from=$o_info.products item=oi}{$oi.product}
{/foreach}- Clear cache and check the result
What eComLabs provided should already do what you wanted.
Have you cleared the cache and check if the product name appeared?
Hi exelorien, Yes, i figure out how to call the hook in manage.tpl :) Thanks
- Enable the My changes module
- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_header.post.tpl
Content:
{__('products')}- Create the following file:
design/backend/templates/addons/my_changes/hooks/products/manage_data.post.tpl
Content:
{$o_info = $o.order_id|fn_get_order_info} {foreach from=$o_info.products item=oi}{$oi.product}
{/foreach}- Clear cache and check the result
Thanks a lot eComLabs, work like a charm. I just forget to call the hook in the tpl :)
Thanks agian and happy New Year !
Nice! I work for 1 month with cs and it has a lot of sections that I am still not even aware of! Have a nice day :)
You are welcome, guys. Happy New Year!