用Deface改变狂欢商业

时间:2015-06-20 14:44:57

标签: ruby-on-rails spree deface

我正在学习Spree,因为我想用它创建一个电子商务。我成功安装了Spree,现在我想用deface自定义标准的spree模板。我试图用" product-properties"删除表格。产品页面中的ID。

the table I want to delete is the one under "Properties" and has 3 rows: 'size', 'type' and 'material'

我已经这样做了,但它不起作用:

Deface::Override.new(:virtual_path => 'spree/layouts/spree_application',
         :name => 'product_page',
         :remove => '#product-properties'
        )

我认为虚拟路径是错误的。

1 个答案:

答案 0 :(得分:1)

包含#product-properties的模板是:

https://github.com/spree/spree/blob/v3.0.1/frontend/app/views/spree/products/_properties.html.erb

所以你想要的虚拟路径是:

spree/products/_properties