Hiding add to basket in category pages

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
User avatar
freedom1029
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Thu Nov 01, 2007 1:40 pm
Location: Montreal

Hiding add to basket in category pages

Post by freedom1029 » Thu May 28, 2009 8:56 am

Is there a way to hide the "add to basket" button in the default and category pages. Basically I would like to have a "more details" button so that the user will have to get to the detail page to get the "add to basket" button.
Thanks,
Eric

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

Re: Hiding add to basket in category pages

Post by mazhar » Thu May 28, 2009 9:11 am

Edit your ConLib/AddToCartLink.ascx.cs file and locate following code in it

Code: Select all

MoreDetailsLink.Visible = !AC.Visible;
and change it as below

Code: Select all

AC.Visible = false;
MoreDetailsLink.Visible = !AC.Visible;
That's it. Now customer can only add product to basket via product details page.

User avatar
freedom1029
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Thu Nov 01, 2007 1:40 pm
Location: Montreal

Re: Hiding add to basket in category pages

Post by freedom1029 » Thu May 28, 2009 9:36 am

OK I made the modification as you mentioned ans saved the files(.aspx, .cs) in my custom folder and uploaded them to my server. However if I go on my store I still see the add to basket buttons, do I have to do something in order for my store to update to my new custom files?
Thanks,
Eric

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

Re: Hiding add to basket in category pages

Post by mazhar » Thu May 28, 2009 9:43 am

You have make change in actual ConLib/AddToCartLink.ascx.cs file. Do not create a copy of it under Custom folder.

User avatar
freedom1029
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Thu Nov 01, 2007 1:40 pm
Location: Montreal

Re: Hiding add to basket in category pages

Post by freedom1029 » Thu May 28, 2009 9:57 am

Ok thanks for your help, this is working perfectly. I guess if ever I update to the latest version I will have to remember to make those changes manually again.
Eric

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

Re: Hiding add to basket in category pages

Post by mazhar » Thu May 28, 2009 10:06 am

Yes you are right.

Post Reply