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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   4261 Views

Avatar
Thermalzombie

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.

Avatar
TotalNet

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/ProductMenu.ss to your theme's templates/Includes directory and remove (or comment-out) the following code:

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

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.

Rich

Avatar
Thermalzombie

Community Member, 27 Posts

10 July 2009 at 8:33pm

Edited: 10/07/2009 8:34pm

Thankyou it worked check it out?

http://www.thermalzombie.com/

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.

http://www.thermalzombie.com/example-product/

Under or above the Item #10 description.

Thankyou very much.

Avatar
TotalNet

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 :)

Cheers,

Rich

Avatar
biapar

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 product.ss in code subdir in ecommerce module.
See http://www.mediterraneamoto.it/ under "Usato" for example...

Bye

Go to Top