Edit Sale/New labels text in OpenCart

Edit Sale/New labels text in OpenCart

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

 

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

Was this article helpful?

Related Articles

Leave A Comment?