Using different AddtoCart images
Posted: Wed Jul 15, 2009 10:10 am
We use an image called AddtoCart button in BuyProductDialog.ascx
The name of the image is picked up from the style.skin – the SkinID=”BuyNowButton”
The same image is used for PopularProductsDialog, related items, etc.
I want to use a new image for BuyProductDialog.ascx and keep the other images the same.
So I added a new image and referenced it style.skin, but when I uploaded the file the site crashed.
Here's the original style.skin section that specifies the images to use.
Here's a modified style.skin section to add a second image to use.
How do I reference the new cart_btn_lg.gif image in style.skin and make call to the new image in BuyProductDialog.ascx so our product page can use the different addtocart image?
--Alan
The name of the image is picked up from the style.skin – the SkinID=”BuyNowButton”
The same image is used for PopularProductsDialog, related items, etc.
I want to use a new image for BuyProductDialog.ascx and keep the other images the same.
So I added a new image and referenced it style.skin, but when I uploaded the file the site crashed.
Here's the original style.skin section that specifies the images to use.
Code: Select all
<P><asp:Image runat="server" SkinId="MoreDetailsButton" ImageUrl="images/more_btn.gif" /></P>
<P><asp:Image runat="server" SkinId="BuyNowButton" ImageUrl="images/cart_btn.gif" /></P>
<P><asp:ImageButton runat="server" SkinId="MoreDetailsButton" ImageUrl="images/more_btn.gif" /></P>
<P><asp:ImageButton runat="server" SkinId="BuyNowButton" ImageUrl="images/cart_btn.gif" /></P>
Code: Select all
<P><asp:Image runat="server" SkinId="MoreDetailsButton" ImageUrl="images/more_btn.gif" /></P>
<P><asp:Image runat="server" SkinId="BuyNowButton" ImageUrl="images/cart_btn.gif" /></P>
<P><asp:Image runat="server" SkinId="BuyNowProductPageButton" ImageUrl="images/cart_btn_lg.gif" /></P>
<P><asp:ImageButton runat="server" SkinId="MoreDetailsButton" ImageUrl="images/more_btn.gif" /></P>
<P><asp:ImageButton runat="server" SkinId="BuyNowButton" ImageUrl="images/cart_btn.gif" /></P>
<P><asp:ImageButton runat="server" SkinId="BuyNowProductPageButton ImageUrl="images/cart_btn_lg.gif" /></P>
--Alan