Abhishek Kumawat
Abhishek Kumawat

Reputation: 808

How can I change "Sale" label to"xx % Off" in Opencart?

I am using Opencart 2.3.0.2. When I add Special price for a product, I can see a "Sale label" on the product. I want to change the "Sale" text to "% Off". Where can I find the file to make the specific change without using an extension.

I know MVC, i can code php logic for the % Off thing, I just need to know where to make the change, as I haven't worked earlier on Opencart, and i'm less familiar with it's directory structure and organization of files.

Upvotes: 0

Views: 775

Answers (1)

Radhika
Radhika

Reputation: 533

You need to edit catalog/controller/.....php file in which you want to display sale in %.

find for $special calculation in controller file manipulate it to calculate sale in % and display it in respective .tpl file where $special is displayed.

Hope this is helpful to you.

Upvotes: 1

Related Questions