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
 Hide Out of stock message
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  12:44:11  
I have shut off the Use stock management setting in main settings.
I have used the "$noshowoutofstock=TRUE;" in the includes
I have made sure that "instock" is not in the productpagelayout in the includes file
I have made sure under admin products, the SELL ITEM is off and the price is "0"

I think I have it all.... is there something that I'm forgetting?

Terry (Redsei)

Vince
Administrator

42768 Posts

Posted - 05/31/2020 :  13:20:36  
If you're not using the stock management system then if the product does not have the "sell" checkbox checked in the product admin page then the default message is "Out of Stock". But you can changed that in the language file withxxOutStok...
$xxOutStok="Out of Stock";
Could that help here?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  14:12:25  
Yes that helps..

This only affects a certain amount of product so it may be best to just create another page and have the category redirect to that. I have the price showing as well $00.00. Maybe it's best on the newly created page to display: none the price and the out of stock message... that way I'm not monkeying around with the language file?

Terry (Redsei)

dbdave
ECT Moderator

USA
10413 Posts

Posted - 05/31/2020 :  14:39:34  
Hi Terry, you can make langaugefile changes update-proof by copying them over to your includes file.
In your store pages, the include lines for the includes.php should come after the include line for the languagefile so that anything in the includes will take precedence.

Thanks,
David

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  14:57:47  
Awesome, did not know that... thanks David

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  17:45:29  
How would I now create a new version of productdetail that certain products can be sent to? I really don't want to create a separate url for each...

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  17:52:16  
Would I just say that each product had a specific URL and at the end of the (new) proddetail.php named file I would add "?prod=xxxxxxx"?

Terry (Redsei)

dbdave
ECT Moderator

USA
10413 Posts

Posted - 05/31/2020 :  17:57:48  
Hi Terry, the product pages automatically link to the proddetail pages. What are you looking to do?
Is it that you need to show something different on the detail pages for just some products?
With a better understanding of what you want to do, I can probably make a recommendation.

Thanks,
David

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 05/31/2020 :  18:02:53  
Yes I need to turn off the price and the out of stock for those products... I basically want to show some product in a catalog way

Terry (Redsei)

dbdave
ECT Moderator

USA
10413 Posts

Posted - 05/31/2020 :  22:32:31  
Hi Terry, I had posted a trick some time back where you can set a parameter based on a product ID. If it's just a few products, that may work for you.

https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=100929

However I have used a hack in the past where I just enter some styling in the product description for that item only.
There are many arguments out there as to if this is valid. For a long time it was no, then it was yes, and then no again.
But in my testing it works in all major browsers.
You might want to try it, and check popular browsers. While it may not be considered valid, it works for me.

<style type="text/css">
div.detailprice, div.detailinstock {display: none;}
</style>

Thanks,
David

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 06/01/2020 :  01:04:47  
Hi Terry,
Add a custom css class to the products you don't want the price and out of stock message to display

In the product admin from the quick entry drop down choose custom css class and add 'catalog' without the quotes to the products you want to hide the price and out of stock message

Then add this to your css/style.css file

.catalog .detailprice {display: none;}
.catalog .detailinstock {display: none;}



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

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

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 06/01/2020 :  08:04:18  
Thanks Dave and Phil.

Phil this is so powerful of a feature and it's hidden here....there's no way that this feature should not be part of the product inventory.csv file. Do you think it's worth the post in the suggestion box?

Terry (Redsei)

dbdave
ECT Moderator

USA
10413 Posts

Posted - 06/01/2020 :  08:12:01  
Phil for the win!
I guess I am a bit rusty in some areas...
I forget that there are individual classes for products now too.

Thanks,
David

Edited by - dbdave on 06/01/2020 09:54:11

Terry Paulhus
Ecommerce Template Expert

Canada
556 Posts

Posted - 06/01/2020 :  08:13:58  
Yeah I hear ya...

I think of workarounds and then the feature comes out and it's REDO TIME.



Terry (Redsei)

Phil
ECT Moderator

United Kingdom
7681 Posts

Posted - 06/02/2020 :  03:51:31  
quote:
there's no way that this feature should not be part of the product inventory.csv file. Do you think it's worth the post in the suggestion box?


If you download your product inventory CSV file and add the column pCustomCSS and enter your data and upload it, that should do it.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

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

Edited by - Phil on 06/02/2020 03:51:48
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000