Commit 4e252445db6b246aead565ee7e411a20f38d9e3e

Authored by Daniela Feitosa
1 parent ee1a7bce

Re-added cart button on product's visualization

app/views/catalog/index.rhtml
... ... @@ -103,3 +103,5 @@
103 103 <%= pagination_links @products, :params => {:controller => :catalog, :action => :index, :profile => profile.identifier} %>
104 104  
105 105 <%= add_zoom_to_images %>
  106 +
  107 +<br style="clear:both"/>
... ...
plugins/shopping_cart/lib/shopping_cart_plugin.rb
... ... @@ -22,6 +22,7 @@ class ShoppingCartPlugin &lt; Noosfero::Plugin
22 22 end
23 23 end
24 24  
  25 + alias :product_info_extras :add_to_cart_button
25 26 alias :catalog_item_extras :add_to_cart_button
26 27 alias :asset_product_extras :add_to_cart_button
27 28  
... ...
plugins/shopping_cart/views/shopping_cart_plugin_profile/buy.html.erb
... ... @@ -17,7 +17,7 @@
17 17 </div>
18 18 <% end %>
19 19 <%= items_table(session[:cart][:items], profile) %>
20   - <a href="" onclick="Cart.colorbox_close(this);" class="cart-box-close icon-cancel"/>
  20 + <%= link_to '', '#', :onclick => "Cart.colorbox_close(this);", :class => 'cart-box-close icon-cancel' %>
21 21 </div>
22 22  
23 23 <script type="text/javascript">
... ...