How to display product stock at order_details page?

This is a new post to display the inventory of a product in in the order details_page for a quick view of stock status.



Have someone an idea to display product stock at the order_details page? I’ve checked the skin/admin/products map and the skins/admin/order_pages map. In the order_pages map the variables are described as oi.products. Thats different as the products map. I can’t solve this in my own.



Everybody who read this, thanks for your help.

By doing some research i’ve placed the follow code in the admin/orders/order_details.tpl file.



[HTML]{if $product_data.tracking == ‘O’}

{include file=“buttons/button.tpl” but_text=$lang.edit but_onclick=“$index_script?$target_name=product_options&$mode_name=inventory&product_id=$product_data.product_id” but_style=“text”}

{else}

{/if}

[/HTML]



This variable: “oi.product_id.amount” give an number of items, but not the current inventory of a product.



Whats the correct variable?

[quote name=‘dennis’]By doing some research i’ve placed the follow code in the admin/orders/order_details.tpl file.



[HTML]{if $product_data.tracking == ‘O’}

{include file=“buttons/button.tpl” but_text=$lang.edit but_onclick=“$index_script?$target_name=product_options&$mode_name=inventory&product_id=$product_data.product_id” but_style=“text”}

{else}

{/if}

[/HTML]



This variable: “oi.product_id.amount” give an number of items, but not the current inventory of a product.



Whats the correct variable?[/QUOTE]





The problem is solved for me. I requested by the CS-Cart help and she help me out. Unfortunately this is not a very active forum.

[quote name=‘dennis’]The problem is solved for me. I requested by the CS-Cart help and she help me out. Unfortunately this is not a very active forum.[/QUOTE]

As evidenced by your post count - 4 posts in 1 year. Where have you been except when you want help?



Bob

Not that your reply was out of line Bob, but you seriously need to take a break. All of the help you have been providing is taking its toll on you.