mayo23 Posted September 9, 2008 Share Posted September 9, 2008 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 More sharing options...
Paul C Posted September 9, 2008 Share Posted September 9, 2008 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 More sharing options...
Mobius2000 Posted November 12, 2009 Share Posted November 12, 2009 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 More sharing options...
Zenith Posted November 22, 2009 Share Posted November 22, 2009 I'm currently working on a RRP modification. The BO is done and just need to do the FO now, should be ready very soon. 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