R
R
razvedkeslava2016-07-26 21:42:02
PHP
razvedkeslava, 2016-07-26 21:42:02

How to properly implement product pricing in Opencart?

The product has additional fields "surcharge" and "discount".
Price=(Price*surcharge)-(Price*Discount).
The price is formed in the controller, but this is not correct, so now there are problems with filtering the goods.
How to implement it in the model?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
web-mechanic, 2016-07-26
@razvedkeslava

It's not entirely clear what you mean. Do you have additional columns in the database or what?

D
Dmitry, 2016-07-26
@thewind

Move the logic in the catalog_product model to the getProduct() method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question