Post by Valerina » Mon Apr 01, 2019 11:41 pm

Hello All

I am running oc v 3.0.3.1

Want to fix code so if product price is 0, then display `Call for Price` on both the category page and single product page.

What file(s) should I edit as the ones listed below are not in the installation I have

1. EDIT: system/library/currency.php (or system/helper/currency.php for certain versions)

2. FIND:
$string = '';

3. BEFORE, ADD:
if ($format && (float)$value == 0) {
return 'Call for Price';
}

Newbie

Posts

Joined
Mon Apr 01, 2019 7:34 pm

Post by cyclops12 » Tue Apr 02, 2019 1:08 am

There should be plenty of extensions for this in the marketplace

Active Member
Online

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by IP_CAM » Tue Apr 02, 2019 2:22 am


I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 9 guests