Page 1 of 1
Sold Out Button
Posted: Wed Oct 07, 2009 11:42 am
by aaronfrankel
I am finding that customers completely miss the text message the cart produces that a product is sold out. How to I get the cart to use an image instead of the "Out of stock message" in the store settings?
Re: Sold Out Button - Help
Posted: Thu Oct 08, 2009 3:50 am
by mazhar
Eidt ConLib/BuyProductDialog.ascx.cs file and locate followng line of code
Code: Select all
InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
and replace it with below code
Code: Select all
//InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
Image outofstockImage = new Image();
outofstockImage.AlternateText = outOfStockMessage;
outofstockImage.ImageUrl = "out of stock image url here";
InventoryDetailsPanel.Controls.Add(outofstockImage);
Note that you need to provide a out of stock image URL instead of text "
out of stock image url here"
Re: Sold Out Button - Help
Posted: Thu Oct 08, 2009 9:10 am
by aaronfrankel
Prefect, thank you!
Re: Sold Out Button - Help
Posted: Wed Jun 15, 2011 6:02 pm
by napacabs
mazhar wrote:Eidt ConLib/BuyProductDialog.ascx.cs file and locate followng line of code
Code: Select all
InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
and replace it with below code
Code: Select all
//InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
Image outofstockImage = new Image();
outofstockImage.AlternateText = outOfStockMessage;
outofstockImage.ImageUrl = "out of stock image url here";
InventoryDetailsPanel.Controls.Add(outofstockImage);
Note that you need to provide a out of stock image URL instead of text "
out of stock image url here"
Is there a way that you can adjust this code, so that the sold out image appears in place of the "quantity box" that is removed when an items is out of stock? I'd like to keep the out stock message for backorders info.
Re: Sold Out Button - Help
Posted: Tue Jun 28, 2011 8:23 am
by TyMorris
What about if your sold out is a text message and not an image? How do you change the text itself? I have been searching the forums and can't seem to figure it out.
I am not referring to the display inventory message that can be found in Configure>Store in the admin
Thanks!