Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Can you remove the checkout/cart?

Go to End

13 Posts   3482 Views


Community Member, 27 Posts

10 July 2009 at 5:37pm

Edited: 10/07/2009 5:41pm

Ok I backspaced out the price and unchecked the allow this item to be purchased and that looks good but would still like to remove the cart.

If possible.

This is also my second reply my message disappeared on me.


Community Member, 181 Posts

10 July 2009 at 7:20pm

Cool, glad that worked for you :)

Where is the cart appearing now? is it just the sidebar?

to get rid of the cart from the sidebar it;s a case of copying ecommerce/templates/Includes/ to your theme's templates/Includes directory and remove (or comment-out) the following code:

	<div class="sidebarBox cart">
		<% include Cart %>

hope that does it. I'm thinking about adding an if statement that checks if cart/purchase is enabled and add the value to _config.php that way you get a catalogue site without the cart and can easily enable cart at a later date.

let me know how you get on.



Community Member, 27 Posts

10 July 2009 at 8:33pm

Edited: 10/07/2009 8:34pm

Thankyou it worked check it out?

It took me a few tries because I couldnt work out how to comment it out you just do this // with the PHP code dont you.

I tried it both with a space after and without still commenting didnt work.

How difficult would it be to put a contact us for detail link on this page on the right somewhere.

Under or above the Item #10 description.

Thankyou very much.


Community Member, 181 Posts

10 July 2009 at 8:52pm

Edited: 10/07/2009 8:54pm

Glad that helped you out. :)

I actually meant you could wrap a HTML comment around it, otherwise you might as well just delete the code.

personally, I convert all my contact-us pages to forms (using userforms module) and you could link to that page either in the CMS content or add a link in the template wherever you see fit.

let me know when you're site is done (email in profile) I'd like to see the finished product :)




Forum Moderator, 435 Posts

24 July 2009 at 12:50am

Edited: 24/07/2009 12:51am

There is a simple flag in product in admin zone.
If this checkbox is not checked, you don't see "Buy Button" for that product.
Then you can setup this checkbox a false value ( for default value ) if assign this value in in code subdir in ecommerce module.
See under "Usato" for example...


Go to Top