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!
unable to modify currencies.php
-
- VIP Member
- Posts: 2025
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 28 times
- Been thanked: 187 times
Re: unable to modify currencies.php
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 } ?>