Sold Out Button
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 47
- Joined: Wed May 07, 2008 1:44 pm
- Location: Houston, TX
- Contact:
Sold Out Button
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
Eidt ConLib/BuyProductDialog.ascx.cs file and locate followng line of code
and replace it with below code
Note that you need to provide a out of stock image URL instead of text "out of stock image url here"
Code: Select all
InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
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);
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 47
- Joined: Wed May 07, 2008 1:44 pm
- Location: Houston, TX
- Contact:
Re: Sold Out Button - Help
Prefect, thank you!
- napacabs
- Lieutenant, Jr. Grade (LT JG)
- Posts: 45
- Joined: Mon Jan 14, 2008 2:58 pm
- Location: Chino, California
- Contact:
Re: Sold Out Button - Help
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.mazhar wrote:Eidt ConLib/BuyProductDialog.ascx.cs file and locate followng line of codeand replace it with below codeCode: Select all
InventoryDetailsPanel.Controls.Add(new LiteralControl(outOfStockMessage));
Note that you need to provide a out of stock image URL instead of text "out of stock image url here"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);
Re: Sold Out Button - Help
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!
I am not referring to the display inventory message that can be found in Configure>Store in the admin
Thanks!