Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Can you remove the checkout/cart?

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2466 Views
  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: Can you remove the checkout/cart? Link to this post

    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.

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Can you remove the checkout/cart? Link to this post

    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

  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: Can you remove the checkout/cart? Link to this post

    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.

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Can you remove the checkout/cart? Link to this post

    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

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Can you remove the checkout/cart? Link to this post

    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

    2466 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.