Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Design issues
 Display/not display price button
Author « Topic »  

trypod
Starting Member

New Zealand
15 Posts

Pre-sales questions only
(More Details...)

Posted - 10/28/2017 :  00:11:26  
There are instances where I only want to display info and not sell.
Instead of making a static page I would like to use the product interface
Is it possible to have a display/not display price check box in admin products page, the same as the Display Product and Sell Button check boxes
Or is there another way of not displaying a price on some pages

Andrew Smith

Andy
ECT Moderator

95440 Posts

Posted - 10/28/2017 :  00:22:31  
Hi Andrew

You could use the zero price message https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#zeroprice in vsadmin/includes.php

$pricezeromessage=" ";

Make sure they are added to the same category where no pricing is to be shown so you can then turn off the buy and checkout buttons for just that category in includes.php

if(@$_GET['cat']=='12') $nobuyorcheckout=TRUE;

...where '12' is the category identifier in the category admin page.

Andy

Please feel free to review / rate our software

trypod
Starting Member

New Zealand
15 Posts

Pre-sales questions only
(More Details...)

Posted - 10/28/2017 :  02:00:48  
Hi Andy
The price zero message works, but the category doesnt. The peripherals category still show the word Price: and the checkout button
Have I the code in the wrong pace?
in includes.php
<?php
// ===================================================================
// For a description of these parameters and their useage, please open the following URL in your browser
// https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp
// Display Options
if(@$_GET['cat']=='3') $csnobuyorcheckout=TRUE;
$pricezeromessage="";
$GLOBALS['adminencoding']='utf-8';
$GLOBALS['pagebarattop']=0;


Andrew Smith

Andy
ECT Moderator

95440 Posts

Posted - 10/28/2017 :  02:24:37  
That was a typo - very sorry

if(@$_GET['cat']=='3') $nobuyorcheckout=TRUE;

Andy

Please feel free to review / rate our software

trypod
Starting Member

New Zealand
15 Posts

Pre-sales questions only
(More Details...)

Posted - 10/28/2017 :  12:18:44  
Great
That works
I thought I was the only one that did typos

Thanks

Andrew Smith

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

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 ...

$15.00

Surely customers would recognize that alone is the Purchase Price, yes ?

To implement:
(1) Add this class to your CSS style sheet.

.hide {display: none !important}

(2) Use these parameters in includes.php

// ZERO PRICE
$xxPrice=''; // Remove the word Price
$pricezeromessage='<span class="hide">0</span>'; // If Price entered is $0.00, then hide the entire line


(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 ...
if(@$_GET['cat']=='3') $csnobuyorcheckout=TRUE;

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000