Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
Lets see if you can help me try this... (as usual trying to go beyond the wonders of the bv5)
The sp2 10products module lets you show numbered the top seller...
But what if I want to show the first item with its small image?
With a simple conditional I verify the value of the for cycle... if it's == 1 then show big image, else... the rest of the module.
The question is not how to design it... it's how do I call the images, for placing them in the site?
Have a nice day people.
(If I find the way, I'll post my own answer, :smilewinkgrin: , I suppouse for the BV experts, this is a peace of cake...)
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
This might help you get going... Modify BVModules > ContentBlocks > Top 10 Products > View.ascx.vb Change: Code: result += "<li><a href=""" result += p.ProductURL result += """ title=""" result += p.ProductName result += """>" result += p.ProductName result += " - " result += p.SitePrice.ToString("c") result += "</a></li>"
To: Code: result += "<li><a href=""" result += p.ProductURL result += """ title=""" result += p.ProductName result += """>" result += p.ProductName result += " - " result += p.SitePrice.ToString("c") result += "</a>" result += "<img src= """ & p.ImageFileMedium & """ />" result += "</li>"
It will need some tweaking and you might want to add the "alt" tag in there. |
|
|
|
|
Rank: Member
Joined: 4/28/2003(UTC) Posts: 141
|
Nick, how about adding an image to the bulkorderquantitylist in the category templates. The above didn't work with this file. Any help on this one? Thanks, Richard www.somethingmorestore.com
|
|
|
|
Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
Hi, this change worked for me, but the images render to BVAdmin/images/products/ for some that dont exist there, the top on rendered to /images/products/. Not sure why the first one was correct and the others not?
|
|
|
|
Rank: Member
Joined: 4/28/2003(UTC) Posts: 141
|
Nick, any help with the bulkorderquantitylist under the category templates. The above suggestion didn't work with it. Any help on this one. Thanks, Richard www.somethingmorestore.com
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hello Richard. It is a little different on this page. Open Category.aspx.vb and add the following right above "litRecord.text = sb.ToString" Code:
'Product Image sb.Append("<div class=""recordimage"">") sb.Append("<a href=""") sb.Append(destinationLink) sb.Append(""">") sb.Append("<img src= """ & Page.ResolveUrl(Utilities.ImageHelper.GetValidImage(p.ImageFileSmall, True) & """ />")) sb.Append("</a>") sb.Append("</div>")
Abs - Try using Page.ResolveUrl(Utilities.ImageHelper.GetValidImage(p.ImageFileSmall, True) |
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Doh - You might want to change that Div from "recordprice" to "recordimage". |
|
|
|
|
Rank: Member
Joined: 4/28/2003(UTC) Posts: 141
|
Nick Thanks alot this works great Richard www.somethingmorestore.com
|
|
|
|
Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
It worked. thanks!!!!!!!!!!!
|
|
|
|
Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
thanks nick, works for me too :)
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.