Hi guy.

I'm new programming with Spree Commerce,
And I would like to remove the 'add-to-cart' and 'CART: (EMPTY)' from my
system, like the image.

Someone know how to do this?

Regards.
Bernardo Dias

--

Search Discussions

  • Steve Root at Jan 20, 2013 at 1:36 pm
    Hi Bernardo,
    Have a read about Deface overrides. https://github.com/spree/deface. They
    are like a layer allowing you to tweak your site to your needs without
    having to alter lots of the underlying spree files. That way any future
    updates to spree mean just updating your overrides. Deface can do
    something as minor as change a CSS class or as major as replace the content
    of a partial with entirely different code.

    One quick example, I have a file ../app/overrides/css_header_logo.rb.


    Deface::Override.new(:virtual_path => "spree/shared/_header",
    :replace => "header#header",
    :original => '94d1acc2597d002f5d70fb7ee537252e410c8919' ,
    :text => %q{
    <header id="header" class="row" data-hook>
    <figure id="logo" class="columns alpha eleven" data-hook>
    <%= logo %>
    </figure>
    <nav id="top-nav-bar" class="columns five omega" data-hook>
    <ul id="nav-bar" class="inline" data-hook>
    <%= render :partial => 'spree/shared/login_bar' %>
    <li><%= link_to_cart %></li>
    </ul>
    </nav>

    <% if store_menu? %>
    <nav class="columns alpha omega sixteen">
    <ul id="main-nav-bar" class="inline" data-hook>
    <li>
    <%= render :partial => 'spree/shared/search' %>
    </li>
    </ul>
    </nav>
    <% end %>
    </header>
    },
    :name => "css_header_logo")



    On Saturday, January 19, 2013 6:43:03 PM UTC, Bernardo Dias wrote:

    Hi guy.

    I'm new programming with Spree Commerce,
    And I would like to remove the 'add-to-cart' and 'CART: (EMPTY)' from my
    system, like the image.

    Someone know how to do this?

    Regards.
    Bernardo Dias
    --
  • Bernardo Dias at Jan 27, 2013 at 1:24 pm
    Hi Steve.

    It's know working.

    Tnhx
    Em domingo, 20 de janeiro de 2013 11h36min12s UTC-2, Steve Root escreveu:

    Hi Bernardo,
    Have a read about Deface overrides. https://github.com/spree/deface.
    They are like a layer allowing you to tweak your site to your needs without
    having to alter lots of the underlying spree files. That way any future
    updates to spree mean just updating your overrides. Deface can do
    something as minor as change a CSS class or as major as replace the content
    of a partial with entirely different code.

    One quick example, I have a file ../app/overrides/css_header_logo.rb.


    Deface::Override.new(:virtual_path => "spree/shared/_header",
    :replace => "header#header",
    :original => '94d1acc2597d002f5d70fb7ee537252e410c8919' ,
    :text => %q{
    <header id="header" class="row" data-hook>
    <figure id="logo" class="columns alpha eleven" data-hook>
    <%= logo %>
    </figure>
    <nav id="top-nav-bar" class="columns five omega" data-hook>
    <ul id="nav-bar" class="inline" data-hook>
    <%= render :partial => 'spree/shared/login_bar' %>
    <li><%= link_to_cart %></li>
    </ul>
    </nav>

    <% if store_menu? %>
    <nav class="columns alpha omega sixteen">
    <ul id="main-nav-bar" class="inline" data-hook>
    <li>
    <%= render :partial => 'spree/shared/search' %>
    </li>
    </ul>
    </nav>
    <% end %>
    </header>
    },
    :name => "css_header_logo")



    On Saturday, January 19, 2013 6:43:03 PM UTC, Bernardo Dias wrote:

    Hi guy.

    I'm new programming with Spree Commerce,
    And I would like to remove the 'add-to-cart' and 'CART: (EMPTY)' from my
    system, like the image.

    Someone know how to do this?

    Regards.
    Bernardo Dias
    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJan 20, '13 at 1:26p
activeJan 27, '13 at 1:24p
posts3
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Bernardo Dias: 2 posts Steve Root: 1 post

People

Translate

site design / logo © 2022 Grokbase