• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Auchi
#1 Posted : Tuesday, May 22, 2007 2:44:28 PM(UTC)
Auchi

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...)
Nick Alberti
#2 Posted : Tuesday, May 22, 2007 2:59:53 PM(UTC)
Nick Alberti

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.
Richard
#3 Posted : Tuesday, May 22, 2007 10:21:07 PM(UTC)
Richard

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
abs
#4 Posted : Wednesday, May 23, 2007 8:28:41 AM(UTC)
abs

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?
Richard
#5 Posted : Wednesday, May 23, 2007 8:29:09 AM(UTC)
Richard

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
Nick Alberti
#6 Posted : Wednesday, May 23, 2007 9:11:10 AM(UTC)
Nick Alberti

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)
Nick Alberti
#7 Posted : Wednesday, May 23, 2007 9:12:19 AM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Doh - You might want to change that Div from "recordprice" to "recordimage".
Richard
#8 Posted : Wednesday, May 23, 2007 6:16:28 PM(UTC)
Richard

Rank: Member

Joined: 4/28/2003(UTC)
Posts: 141

Nick
Thanks alot this works great



Richard

www.somethingmorestore.com
Auchi
#9 Posted : Monday, May 28, 2007 6:35:45 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

It worked. thanks!!!!!!!!!!!
abs
#10 Posted : Wednesday, May 30, 2007 6:46:08 AM(UTC)
abs

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.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012