Commit 4e252445db6b246aead565ee7e411a20f38d9e3e
1 parent
ee1a7bce
Exists in
staging
and in
42 other branches
Re-added cart button on product's visualization
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
app/views/catalog/index.rhtml
| @@ -103,3 +103,5 @@ | @@ -103,3 +103,5 @@ | ||
| 103 | <%= pagination_links @products, :params => {:controller => :catalog, :action => :index, :profile => profile.identifier} %> | 103 | <%= pagination_links @products, :params => {:controller => :catalog, :action => :index, :profile => profile.identifier} %> |
| 104 | 104 | ||
| 105 | <%= add_zoom_to_images %> | 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 < Noosfero::Plugin | @@ -22,6 +22,7 @@ class ShoppingCartPlugin < Noosfero::Plugin | ||
| 22 | end | 22 | end |
| 23 | end | 23 | end |
| 24 | 24 | ||
| 25 | + alias :product_info_extras :add_to_cart_button | ||
| 25 | alias :catalog_item_extras :add_to_cart_button | 26 | alias :catalog_item_extras :add_to_cart_button |
| 26 | alias :asset_product_extras :add_to_cart_button | 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,7 +17,7 @@ | ||
| 17 | </div> | 17 | </div> |
| 18 | <% end %> | 18 | <% end %> |
| 19 | <%= items_table(session[:cart][:items], profile) %> | 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 | </div> | 21 | </div> |
| 22 | 22 | ||
| 23 | <script type="text/javascript"> | 23 | <script type="text/javascript"> |