Posted - 10/28/2017 : 19:01:52
Another method for you to consider ... I don't think it is necessary to print the word "Price:" at all, like ...
[size=4]$15.00[/size=4]
Surely customers would recognize that alone is the Purchase Price, yes ?
To implement: (1) Add this class to your CSS style sheet.
[font=Courier New].hide {display: none [red]!important[/red]}[/font=Courier New]
(2) Use these parameters in [maroon]includes.php[/maroon]
[font=Courier New][orange]// ZERO PRICE[/orange] $xxPrice=''; [orange]// Remove the word Price[/orange] $pricezeromessage='<span class="hide">0</span>'; [orange]// If Price entered is $0.00, then hide the entire line[/orange][/font=Courier New]
(3) And in Product Admin:
Price = 0 Sell Button: Untick = NO
That will achieve what you want website-wide, without any need for the code ... [font=Courier New]if(@$_GET['cat']=='3') $csnobuyorcheckout=TRUE;[/font=Courier New]
Gary [img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
|