Categories

Featured templates

OpenCart 2.x. Edit Sale/New labels text

Jason Bentley September 29, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

Hello, this tutorial will show you how to edit Sale/New labels text in OpenCart templates.

A newly created tutorial will be a good guidance for those who wants to use different labels for the products.

OpenCart_2.x.Edit_SaleNew_lables_text_1

In order to change sale/new text for the featured/special products or on a category page, please, follow the steps below:

  1. Open the tm_stickers.ocmod file from your template package \themexxx\themexxx-extensions folder with any text editor and use a search tool in order to locate a label you need to change.

  2. If you want to change label text for the featured products, you need to amend the following code:

    <file path="catalog/language/en-gb/module/featured.php">
    	<operation>
    	<search><![CDATA[
    	$_['text_tax']      = 'Ex Tax:';
    	]]></search>
    	<add position="after"><![CDATA[
    	$_['text_sale']      = 'sale';
    	$_['text_new']      = 'new';
    	]]></add>
    	</operation>
    </file>

    This part of code generates labels for English language, featured module.

  3. Change “sale” text to any you want and save the file.

  4. Then we would need to apply a new modification from OpenCart admin panel.

  5. Login to your OpenCart admin panel. Navigate to Extension Installer -> Modifications section.

  6. Locate the TM Stickers module and click Delete, refresh and clear the cache.

    OpenCart_2.x.Edit_SaleNew_lables_text_2
  7. Go to Extension Installer section and upload the tm_stickers.ocmod file you modified.

  8. Don’t forget to clear cache and refresh modifications. Reload your store page to see a new title.

OpenCart_2.x.Edit_SaleNew_lables_text_3

Thank you for reading this tutorial. Now you know how to edit Sale/New labels text in OpenCart 2.x templates.

Feel free to check the detailed video tutorial below:

OpenCart 2.x. Edit Sale/New labels text

If you happen to be looking for top-notch templates for your site, check out Best OpenCart Themes 2017.

Responsive OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged label, new, Opencart2, Sale. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket