apetrailraj Posted March 16, 2020 Share Posted March 16, 2020 I have little difficulties, I have admin order with Prestashop version 1.7.6, in the admin order as Prestashop rules that the reference code for the products with the combination is coming through product options but I want to show instead of that reference what is the regular reference code of the product like its coming for the product who have not product options. I know where is the combination reference code into the admin end if I will change it will work like regular but there are 900+ products so I just want to make it correct with code And here is the code of the admin order : file path : loclhost/pre7/admin231nuevxm/themes/default/template/controllers/orders/_product_line.tpl <a href="{$link->getAdminLink('AdminProducts', true, ['id_product' => $product['product_id']|intval, 'updateproduct' => '1'])|escape:'html':'UTF-8'}"> <span class="productName">{$product['product_name']}</span><br /> {if $product.product_reference}{l s='Reference number:' d='Admin.Orderscustomers.Feature'} {$product.product_reference}<br />{/if} {if $product.product_supplier_reference}{l s='Supplier reference:' d='Admin.Orderscustomers.Feature'} {$product.product_supplier_reference}{/if} </a> {$product.product_reference} this is the variable I want to make it a regular reference, unfortunately, it's same for regular and combination I have tried regular reference code {$product->reference} into the product page and its working fine there but not working into the admin order. please suggest me any solution Thanks Link to comment Share on other sites More sharing options...
apetrailraj Posted March 23, 2020 Author Share Posted March 23, 2020 Ok i have solved this myself Link to comment Share on other sites More sharing options...
stomasz Posted November 23, 2020 Share Posted November 23, 2020 maybe you cen tell me how you made it? Link to comment Share on other sites More sharing options...
Hans Wolf Posted March 17, 2021 Share Posted March 17, 2021 On 3/23/2020 at 11:08 AM, apetrailraj said: Ok i have solved this myself Would you like to share with me how you did it? 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