Page 1 of 1
Hiding add to basket in category pages
Posted: Thu May 28, 2009 8:56 am
by freedom1029
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
Re: Hiding add to basket in category pages
Posted: Thu May 28, 2009 9:11 am
by mazhar
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.
Re: Hiding add to basket in category pages
Posted: Thu May 28, 2009 9:36 am
by freedom1029
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
Re: Hiding add to basket in category pages
Posted: Thu May 28, 2009 9:43 am
by mazhar
You have make change in actual ConLib/AddToCartLink.ascx.cs file. Do not create a copy of it under Custom folder.
Re: Hiding add to basket in category pages
Posted: Thu May 28, 2009 9:57 am
by freedom1029
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
Re: Hiding add to basket in category pages
Posted: Thu May 28, 2009 10:06 am
by mazhar
Yes you are right.