I would like to change where images are pulled on the WishList. Where is this done?
Cheers,
D
I would like to change where images are pulled on the WishList. Where is this done?
Cheers,
D
I want an answer to the same question as well..been lurking for a while but haven't received satisfactory answers.
Seriously. Does anyone know? Someone from Vortex? This should be something that if we own the source code, we should be able to easily customize this. The trick is - finding it. I have attached what it looks like now. I want to remove the VAT pricing and specify our image server for images.
Thank you,
~D
Most of the wishlist content is in a user control called Wishlist.ascx (Web\controls\Wishlist.ascx). For cart line items it uses a control called ShoppingCartControl which is from AspDotNetStorefrontControls. Past that I don't really have much I can guide you with since we don't use controls from AspDotNetStorefrontControls unless we really have to. Hopefully that helps.
Thank you. I tried editing the ShoppingCartControl.cs file in AspDotNetStorefrontControls - built it - then uploaded the newly compiled .dll and nothing changed. Am I missing something? I attached a screenshot of what I would like to change. There are only two lines (from what I can see) that call an image:
Cheers,
~D
My guess as to why you don't see changes is your modification is your modification was done in an if statement for the mini cart display mode.
Looking further into the code it looks like ShoppingCartControl.cs calls ShoppingCartLineItemDescriptionControl.cs to create line items. Therefore in ShoppingCartLineItemDescriptionControl.cs got to AssignDataSourceContentToControls and edit the code below:
Hopefully that helps further.Code://Product Image if (LineItemDescriptionSettings.ShowPicsInCart) { imgProductPic.ImageUrl = cItem.ProductPicURL; if (cItem.SEAltText != null) imgProductPic.AlternateText = XmlCommon.GetLocaleEntry(cItem.SEAltText, Customer.Current.LocaleSetting, false); }
I figured it out and it works like a champ now. I had to add the SKU using a literal control:
Now I want to add the price. I am not sure why this price is not in the Wish List. I want to remove the VAT setting/price, but have the retail price in there. Does anyone know how to do that?
Thank you,
~D
Adding the price looks like it would be modifying this code block.
as for not showing the vat modifying looks like modifying this blockCode:if (this.DisplayMode == CartDisplayMode.WishList || this.DisplayMode == CartDisplayMode.GiftRegistry) { Button btnMoveToCart = new Button(); if (this.DisplayMode == CartDisplayMode.WishList) { btnMoveToCart.Text = LineItemSetting.MoveFromWishListText; } else { btnMoveToCart.Text = LineItemSetting.MoveFromGiftRegistryText; } btnMoveToCart.ID = "btnMoveToCart"; btnMoveToCart.CommandName = "MoveToShoppingCart"; btnMoveToCart.CommandArgument = cItem.ShoppingCartRecordID.ToString(); Controls.Add(btnMoveToCart); } else { Controls.Add(lblSubTotal); }
Hopefully that helps.Code:if (cItem.ThisShoppingCart.VatEnabled && !(cItem.ThisShoppingCart.VatIsInclusive)) { Controls.Add(new LiteralControl(" <tr>")); Controls.Add(new LiteralControl(" <td align='right'>")); Controls.Add(lblVatDisplay); Controls.Add(new LiteralControl(" </td>")); Controls.Add(new LiteralControl(" </tr>")); }
HA! I cannot believe that! I could have SWORN I commented that lblVatDisplay out already and tried that. That worked! However, I am not sure where or how I am supposed to get the price to display there. There isn't a price child control there. Ideally, I would like to get the description in there as well.
Thanks again!
~D
Never mind. I found it. It's Controls.Add(lblSubTotal); It was right in front of my eyes the whole time. Sometimes, you cannot see the forest through the trees.