Sha256: 426644e028ad039bfe5773a1b4ce0da31a645cf2952d631425e96b0d917e801b

Contents?: true

Size: 790 Bytes

Versions: 9

Compression:

Stored size: 790 Bytes

Contents

Deface::Override.new(
    virtual_path: 'spree/admin/orders/_form',
    name: 'vendorize_shipments',
    replace: "erb[loud]:contains('render partial: \"spree/admin/orders/shipment\", collection: @order.shipments.order(:created_at), locals: {order: order}')",
    text: "<%= render partial: \"spree/admin/orders/shipment\", collection: (current_spree_vendor ? @order.shipments.for_vendor(current_spree_vendor).order(:created_at) : @order.shipments.order(:created_at)), locals: {order: order} %>"
)

Deface::Override.new(
    virtual_path: 'spree/admin/orders/_form',
    name: 'display_vendor_total',
    replace: "erb[loud]:contains('order.display_total')",
    text: "<%= current_spree_vendor ? order.display_vendor_total(current_spree_vendor).to_html : order.display_total.to_html %>"
)

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_multi_vendor-2.5.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.4.1 app/overrides/spree/admin/orders/_form.rb
atkhayar-dev-spree-multi-vendor-0.0.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.4.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.3.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.2.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.1.0 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.0.2 app/overrides/spree/admin/orders/_form.rb
spree_multi_vendor-2.0.1 app/overrides/spree/admin/orders/_form.rb