Basket sidebar

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
robgrigg
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Fri Jun 12, 2009 2:22 am

Basket sidebar

Post by robgrigg » Wed Oct 14, 2009 8:05 am

Hi,

I want to build a script which only showes the most popular control in the sidebar is there are items in the shopping basket on the shopping basket page.

i have tried this.

Code: Select all

#if($Basket.Items.Count > 0)
[[ConLib:custom/PopularProductsDialog ThumbnailPosition="Left" Caption="Most Popular" UseIconImage="true"]]
#end
[[ConLib:custom/RecentlyViewed ThumbnailPosition="Left" Caption="Recently Viewed" UseIconImage="true"]]
but it doesn't work. Any ideas?

Rob.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Basket sidebar

Post by mazhar » Wed Oct 14, 2009 8:33 am

Try following

Code: Select all

#if($customer.Basket.Items.Count > 0)
[[ConLib:custom/PopularProductsDialog ThumbnailPosition="Left" Caption="Most Popular" UseIconImage="true"]]
#else
[[ConLib:custom/RecentlyViewed ThumbnailPosition="Left" Caption="Recently Viewed" UseIconImage="true"]]

Post Reply