Jump to content

RRP Field Required


Recommended Posts

I would really like to have a field in the product info pages that shows a Recommended Retail Price. I don't want to use the discount price for this, as I would prefer to keep this for sale items.

I'm OK with PHP and MySQL, but am an absolute beginner with Smarty, and would like to get my shop operational before spending some time learning about Smarty.

I have included a field in my 'products' table named 'RRP', and would like to include a text field in the admin section to input the RRP and write this value to the database.

I think I will be OK with pulling this information from the database onto the Product Information pages, I just need some help with the admin part.

TO THE DEVELOPERS OF PRESTASHOP - I think you will find that the addition of an RRP field to future releases will be a great help to a lot of people. Simply look at other ecommerce sites and you will find the vast majority show a Recommended Retail Price.

Great work by the way - For what I have seen so far, this is by far the best looking and most user friendly open source ecommerce solution I have seen so far. Can't wait for the community to grow and for more developers to contribute.

Once I master the Smarty engine, I will be contributing!!!

Link to comment
Share on other sites

mayo, you'll need to alter the Product class (in /classes/product.php) as this is the wrapper. If you were to look at the occurrences of say $wholesale_price, for example, then make sure that you perform all the same actions for your new RRP field. You may also have to add member functions to be able to correctly manipulate it throughout the cart.

You'll then need to follow the use of this class through the code... doing a search through the entire shopping cart source for the appropriate member functions is a good way of seeing where things are used, and how.

Paul

Link to comment
Share on other sites

  • 1 year later...

Hi there,

I am trying to achieve the exact same things as the original poster however my skills with Prestashop and PHP in general are not nearly as high as the original poster, I was hoping someone may be able to provide a more detailed break down of how to achieve this or even better, a reasonably priced module to achieve this.

I look forward to hearing any thoughts?

Richard.

Link to comment
Share on other sites

  • 2 weeks 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...