How to add text after the price tag in j2store

j2 store is the best shopping cart for Joomla e-Commerce website. It claims to be 251,905+ downloads, 65+ Payment Gateways support. j2 Store is powerful and flexible but all the pro – standard, professional and developer version doesn’t include important apps such as – Points and Rewards, Bulk discounts, Wishlist, Grouped Products, Grouped Products, PDF Invoices, Price Text  etc.

All the apps are fo 29$ each. This means that after purchasing the j2 Store component you still need to spend some extra money for some important apps to complete your online shopping site.

Why do you want to add text after the price in j2 store?

Price suffix text is important because you may need to add either unit (Kg, Ltr, Gm, etc) at the end of the price or to show the customer about the starting price of the product. For example, From $45 per 1Kg. This can be achieved by using this app.

How to add text after the price in j2 store

Why not buy the app?? This very small app but very powerful is only for $ 29. If you have some extra bucks just go for it.  You are just helping the developer! don’t forget that. But if  you are a poor guy like me we need to think and find a way how to add text in the code manually.

Add text after the price in j2 store manually Click To Tweet

Today I will show you how to add  prefix and suffix text to the product’s price in j2 Store. Please follow the steps carefully.

1. Login to your cPanel

2. Click File Manager

3. Click Public Html

4. Click administrator Folder

5. Click Component Folder

6. Click com_j2store Folder

7.  Click helpers Folder

8.  Now Download the product.php file in the helpers folder. Right Click the file and  Click Download

Add price suffix text in j2 Store

Add price suffix text in j2 Store

9. Open the file using Dreamweaver or Notepad ++ : Go to line No. 646 . After the full stop/ dot (.)  and the colon  (;)  write your desire suffix text between inverted comma eg,  ” Inc. Text”.

Add text after the price in j2 store

Add text after the price in j2 store

10. Again Go to line No.  660 and write the same suffix text  as line No. 646  between inverted comma eg,  ” Inc. Text”.

how to add text after the price in j2 store

Add text after the price in j2 store

Now save the file and upload to the same root where you have downloaded the file.

The Code :

//if no tax profile id found, just return the price.
if(!$product->taxprofile_id) {
$text =  $currency->format($price)." Suffix Test Here ";
} else {

switch($params->get('price_display_options', 1)) {

case '1':
default:
//Price only
$text = $currency->format($this->get_price_excluding_tax($price, $product->taxprofile_id));
break;

case '2':
//product including tax
$amount = $this->get_price_including_tax($price, $product->taxprofile_id);
$text = $currency->format($amount)." Suffix Text Here ";
break;

}
}

Suanlian Tangpua
Follow him

Suanlian Tangpua

Suanlian Tangpua is a Graphic & Website Designer based in New Delhi. He loves photography, cooking and blogging. Feel free to contact him at [email protected]
Suanlian Tangpua
Follow him