Difference between revisions of "Prevent the Top Sellers from showing in Shopping Bar 1"

From AbleCommerce Wiki
Jump to: navigation, search
(New page: There is a hidden trick you can do to prevent the Top Sellers box from displaying with the minibasket. In case you didn't realize, the Top Sellers control is a separate user control but it...)
 
Line 1: Line 1:
There is a hidden trick you can do to prevent the Top Sellers box from displaying with the minibasket. In case you didn't realize, the Top Sellers control is a separate user control but it automatically appears whenever the MiniBasket control is used. This is the default for the AC7 sidebar Shopping Bar 1.
+
Where there are no items in the cart the mini-basket in the side bar hides itself and instead Top Sellers start displaying in its place.  You can configure the control to display in place of mini-basket when there are no items in the basket. By default 'Top Sellers' control is displayed.
 
+
You may wish to display a different control or no control at all when the basket is empty. There is a simple trick (or control property to be more precise) that you can use to achieve this.  
But like many other AC7 features, you do have some options. You can substitute a different control to display by using the syntax described in the ConLib Reference help.
+
 
+
Or, you can trick MiniBasket into not displaying either the default control or an alternate control. Just use this syntax in your Shopping Bar 1 scriptlet.  
+
  
 +
In the Shopping Bar 1 sidebar where mini-basket control is getting used you can substitute the value for AlternateControl property to get your desired results. You can substitute a different control to display or, you can prevent MiniBasket from displaying either the default control or an alternate control. Just use this syntax in your Shopping Bar 1 scriptlet.
 +
<code><pre>
 
       [[ConLib:MiniBasket AlternateControl=""]]
 
       [[ConLib:MiniBasket AlternateControl=""]]
 
+
</pre></code>
 
The MiniBasket control will only display the alternate/additional control if the parameter has a value. Setting the parameter to blank prevents both from showing.
 
The MiniBasket control will only display the alternate/additional control if the parameter has a value. Setting the parameter to blank prevents both from showing.

Revision as of 09:03, 19 August 2008

Where there are no items in the cart the mini-basket in the side bar hides itself and instead Top Sellers start displaying in its place. You can configure the control to display in place of mini-basket when there are no items in the basket. By default 'Top Sellers' control is displayed. You may wish to display a different control or no control at all when the basket is empty. There is a simple trick (or control property to be more precise) that you can use to achieve this.

In the Shopping Bar 1 sidebar where mini-basket control is getting used you can substitute the value for AlternateControl property to get your desired results. You can substitute a different control to display or, you can prevent MiniBasket from displaying either the default control or an alternate control. Just use this syntax in your Shopping Bar 1 scriptlet.

      [[ConLib:MiniBasket AlternateControl=""]]

The MiniBasket control will only display the alternate/additional control if the parameter has a value. Setting the parameter to blank prevents both from showing.