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
 Technical
 PHP (Unix / Linux / Apache) versions
 Product page without price
Author « Topic »  

Andrey9
New Member

Israel
98 Posts

Posted - 05/09/2021 :  08:28:01  
I want to configure one category where the products pages without price!
How to do this?

Kislev Andrey

dbdave
ECT Moderator

USA
10410 Posts

Posted - 05/09/2021 :  10:08:03  
Based on an old tip of mine ( https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=100929 ), I came up with the following

Place this in the product.php page before <?php include "vsadmin/inc/incproducts.php" ?> where the number there is the category number for the cat you want to hide the prices on.


<!-- begin hide price for one category -->
<?php if(getget('cat')=='2'){$noprice=TRUE;}?>
<!-- end hide price for one category -->


NOTE - The prices will still show on the product detail pages.

David

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 05/10/2021 :  03:33:59  
That's an excellent solution by Dave and hopefully will suit your needs.

However, if you want to hide all prices on specific products add the following to the css file

.noprice .prodprice{display:none;}
.noprice .detailprice{display:none;}

and then using the quick entry drop down in your product admin choose custom css and in the field add 'noprice' without the quotes for any products you don't wish to display prices



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 05/10/2021 03:42:51

dbdave
ECT Moderator

USA
10410 Posts

Posted - 05/10/2021 :  05:56:15  
Actually that's a great way to do it Phil.
Particularly if you need to hide the price on the detail page as well.

David

Andrey9
New Member

Israel
98 Posts

Posted - 05/10/2021 :  09:02:45  
Hello all!
The first solution is helpful and really I do not see price of products in specific category. But how to disappear prices of specific category in shopping cart?
Is this solution:

.noprice .prodprice{display:none;}
.noprice .detailprice{display:none;}

disappear prices of specific products or also can configure specific category?


Kislev Andrey

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 05/11/2021 :  01:21:30  
quote:
Is this solution:

.noprice .prodprice{display:none;}
.noprice .detailprice{display:none;}

disappear prices of specific products or also can configure specific category?


This solution will hide prices for any product you add the custom css 'noprice' to, so if you have a specific category where you want to hide prices you would add the custom css to each product in that category using the quick entry feature in the product admin.





*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 05/11/2021 01:22:30
  « 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