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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 remove input field from out of stock
Author « Topic »  

LadyM
ECT Moderator

1691 Posts

Posted - 01/15/2022 :  09:39:48  
I sell one of a kind items so my out of stock message says Sold - we're sorry that item has been sold.

I've commented these out.
// $GLOBALS['xxNotEnt']='Please add your email and we\'ll notify you when it\'s back';
//$GLOBALS['xxEmaiMe']='Email Me';

I need to remove the input field and the button in the popup message. I don't want to mess with incemail without checking. Is this possible?

1818charlie
ECT Moderator

United Kingdom
1180 Posts

Posted - 01/15/2022 :  12:43:27  
Hi LadyM

You can remove the notify when back in stock button via CSS

button.detailnotifystock {
display:none;
}


Steve
Bolton Lancashire

LadyM
ECT Moderator

1691 Posts

Posted - 01/15/2022 :  13:44:14  
Thank you. Makes sense, I just wasn't thinking.

1818charlie
ECT Moderator

United Kingdom
1180 Posts

Posted - 01/15/2022 :  16:03:04  


quote:
I just wasn't thinking


I am more guilty of that than I have been in previous years

Steve
Bolton Lancashire

ITZAP
Ecommerce Template Guru

Australia
1010 Posts

Posted - 01/15/2022 :  16:40:15  
Lady M, you have a few more options here:

Turn off that notification when the product is back in stock.
$notifybackinstock=FALSE;

Change the Out Of Stock message as desired, particularly where your stock level is uncertain.
$xxOutStok="Contact us to confirm availability";

Turn off rich snippet for Availability http:// schema.org/InStock AND http:// schema.org/OutOfStock
if you do not want that snippet to appear in search results.
Google interpret the Availability snippet as optional.
$setschemaavailability=FALSE;

Gary

LadyM
ECT Moderator

1691 Posts

Posted - 01/15/2022 :  20:08:53  
Thanks Gary, but with the one of a kind, it's never going to be back in stock. That's why I need to turn the email off. Good ideas though. Thanks for taking the time to answer.

Vince
Administrator

42466 Posts

Posted - 01/17/2022 :  02:22:39  
quote:
That's why I need to turn the email off.
That should be what setting the $notifybackinstock parameter to FALSE would do, no?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « 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