Jump to content

How would I go about adding a pre-discount price to my theme in Prestashop 1.7?


Recommended Posts

Hey.

We're using Customer Groups to add discounts in order for the discounts to stay active w/o needing to input a coupon code. This works well.

However, we're trying to display pre-discount prices (you know, so that we can strike them out) above the new prices. And this isn't going too well.

I've overridden the classes/Product.php file in order to include a new field, $original_price, filled out at item creation... However, I'm having a lot of trouble understanding what happens w/ this object later - var_dump'ing it from Smarty doesn't show the new field, and I don't really know where to look for its assignment to the template. I can see that the Product object only ever deals w/ the original price float, but the theme receives the price already formatted for end-user display...

Is there some documentation for the processes that happen within Prestashop?

Edited by ellmann creative
added the word 'float' to make my point clearer (see edit history)
Link to comment
Share on other sites

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...