Page 1 of 1

unable to modify currencies.php

Posted: Mon May 02, 2022 6:56 am
by ce7
Hi,

I have v1087 version, found currecies.php at the location
catalog/includes/system/versioned/1.0.8.6/currencies.php

I like to change if the price is 0 and not show price, but when I try to modify the code, it will show errors, such as Parse error: syntax error, unexpected 'public' (T_PUBLIC) in

Can someone please advise how to modify currencies.php with right file location and right file, thank you!

Re: unable to modify currencies.php

Posted: Wed May 04, 2022 7:42 am
by heatherbell
ce7 wrote: Mon May 02, 2022 6:56 am I like to change if the price is 0 and not show price
Possibly wrap https://github.com/CE-PhoenixCart/Phoen ... ice.php#L2 (in a copy of the file in your template) with an if e.g.

Code: Select all

<?php if ($product->get('price') > 0) { ?>
  <h2 class="display-4 text-left text-sm-right"><?= $price ?></h2>
  <?php } ?>
which works but similar would also have to be done in product listing