Skip to content

Commit

Permalink
Updated some insert_befores to replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronCarroll committed Jul 22, 2011
1 parent e74fc40 commit 2a11f3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/spree_wholesale/custom_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ class CustomHooks < Spree::ThemeSupport::HookListener
#replace :cart_item_price, 'hooks/cart_item_price'
Deface::Override.new(:virtual_path => 'orders/_line_item',
:name => 'cart_item_price',
:insert_before => "[data-hook='cart_item_price']",
:replace => "[data-hook='cart_item_price']",
:partial => "hooks/cart_item_price")

#replace :cart_item_total, 'hooks/cart_item_total'
Deface::Override.new(:virtual_path => 'orders/_line_item',
:name => 'cart_item_total',
:insert_before => "[data-hook='cart_item_total']",
:replace => "[data-hook='cart_item_total']",
:partial => "hooks/cart_item_total")

#replace :admin_product_form_right, 'admin/hooks/product_form_right'
Deface::Override.new(:virtual_path => 'admin/products/form',
:name => 'productform_right',
:insert_before => "[data-hook='admin_product_form_right']",
:replace => "[data-hook='admin_product_form_right']",
:partial => "admin/hooks/product_form_right")

#insert_before :account_my_orders, 'hooks/wholesale_customer'
Expand Down

0 comments on commit 2a11f3b

Please sign in to comment.