Page 1 of 1

Basket sidebar

Posted: Wed Oct 14, 2009 8:05 am
by robgrigg
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.

Re: Basket sidebar

Posted: Wed Oct 14, 2009 8:33 am
by mazhar
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"]]