kimy Posted September 27, 2012 Share Posted September 27, 2012 (edited) I've been close to miss this when packing my orders, So therefore I ask: whats the code for showing a number bigger than 1 in the color red where do I put it and what code do I replace. the picture is a screenshot of backoffice/orders in prestashop 1.5 tnx! Edited September 27, 2012 by kimy (see edit history) Link to comment Share on other sites More sharing options...
math_php Posted September 28, 2012 Share Posted September 28, 2012 Hello, In AdminOrders.php you will have to change <td align="center" class="productQuantity">'.((int)($product['product_quantity']) - $product['customizationQuantityTotal']).'</td> In this <td align="center" class="productQuantity" '.(((int)($product['product_quantity']) - $product['customizationQuantityTotal'])>1? 'style="color:red"':'').'>'.((int)($product['product_quantity']) - $product['customizationQuantityTotal']).'</td> Regards 1 Link to comment Share on other sites More sharing options...
kimy Posted October 9, 2012 Author Share Posted October 9, 2012 hi! tnx for the answer. but I can't find the adminorders.php. I have adminorderscontroller.php and adminorderpreferencecontroller.php but I can't find that code inside of them. i'm using prestashop 1.5.1 now Link to comment Share on other sites More sharing options...
math_php Posted October 9, 2012 Share Posted October 9, 2012 Hi, Yeah my solution was for version previous 1.5 For 1.5 change <span class="product_quantity_show">{$product['product_quantity']}</span> To this <span class="product_quantity_show" {if $product['product_quantity']>1}style="color:red"{/if}>{$product['product_quantity']}</span> In this file admin\themes\default\template\controllers\orders\_product_line.tpl Make a back up before modification. Cheers 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now