Jump to content

[CONTIBUTION] Add unit price on Product


Recommended Posts

On the basis needs of a client, I had to edit the file product. My client requested that the product price data can be displayed in the unit, eg per dozen or per unit, both in the back office and front office.

The following is a picture of the results of these edits

Then I edit the file admin/tabs/AdminProducts.php, file classes/Product.php and also themes/yourtheme/product.tpl

I've tried so many times to upload file product.tpl . But, it's not works, so i just gonna write here, to show you a little editing.

On line 204, please type only this code.

{$product->unit_price}



The following file attachments, I please you to download. Hopefully, my little contribution was quite helpful and can be implemented in the next version of PrestaShop. :-)

Product.php

AdminProducts.php

25140_lpuR2uLoW7R8hqabrtG4_t

25141_pXg23xGXIey4nuERJpPE_t

Link to comment
Share on other sites

  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...