Top sellers (set to only display 2)

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
ruggedcross
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Apr 03, 2008 1:56 pm

Top sellers (set to only display 2)

Post by ruggedcross » Fri Apr 04, 2008 3:34 pm

I searched the fourm on this and didn't find any solution. is there a way to set the top sellers list to only display 2 instead of three?

Thanks.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Top sellers (set to only display 2)

Post by jmestep » Fri Apr 04, 2008 5:28 pm

There probably is, but I can't even find where the top sellers are displayed. Can you post a link?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Top sellers (set to only display 2)

Post by jmestep » Fri Apr 04, 2008 5:39 pm

OK, I found it. There are two ways to change it. In the Standard Sidebar 2, where it says
[[ConLib:PopularProductsDialog]]

change it to
[[ConLib:PopularProductsDialog MaxItems="2"]]
You can change it in the conlib/popularproductsdialog.ascx.cs also, but the above way would be better- you don't have to mess with the code as much and you can use the same file somewhere else displaying 3 if you want.
At the top of the popularproductsdialog.ascs, it has these explanatory lines and you can change other parameters by using the above sample for MaxItems.

Code: Select all

<summary>Display top seller products.</summary>
<param name="Caption" default="Top Sellers">Possible value can be any string.  Title of the control.</param>
<param name="MaxItems" default="3">Possible value cab be any integer greater then zero. Indicates that at maximum how many items can be shown.</param>
<param name="Orientation" default="HORIZONTAL">Possible values are 'HORIZONTAL' or 'VERTICAL'.  Indicates whether the contents will be displayed vertically or horizontally, In case of vertical orientation only one column will be displayed.</param>
<param name="Columns" default="3">Possible value cab be any integer greater then zero. Indicates the number of columns, for 'VERTICAL' orientation there will always be a single column.</param>
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

KiwiSteve
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Sun May 29, 2011 5:03 pm

Re: Top sellers (set to only display 2)

Post by KiwiSteve » Fri Aug 12, 2011 2:25 am

Hi
Have been searching how to alter facets of the PopularProductsDialog, and I can't make progress when the Help screen says:
"To Customize a Control File
You will need to access the control files directly from the server or through an FTP program.
Then it shows this image...
http://help.ablecommerce.com/mergedProj ... olders.gif

And on down the steps to...
"Find the scriptlet that is, or will be, using the custom control and edit it using AbleCommerce, so a copy will automatically be placed in the \App_Data\Scriptlets\Custom\... sub-folder."

I have a couple of queries:
1. I get the process of altering the variables, eg Caption, MaxItems, but how/where do I log in to do that?
The Help screens say to access them by logging in to the server... Hmmm...?
2. How do I set the items in the Dialog? Ever since I bought this site, the same three titles are shown.
I have set more titles to be Featured, so the HomePage main panel rotates through the featured items, as required, but how do I achieve the same thing in the PopularProducts panel? (On my site they're called "Top Sellers", so maybe the previous owner changed it. More likely, the expensive consultant they used did it for them, so at present I'm stuck with those settings.)

As always, appreciate the help and feedback

Stephen

Post Reply