0

我正在学习 Spree,因为我想用它创建一个电子商务。我成功安装了 Spree,现在我想自定义带有 deface 的标准 spree 模板。我正在尝试在产品页面中删除具有“产品属性”ID 的表。

我要删除的表是下面的表

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

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

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

4

1 回答 1

1

包含#product-properties 的模板是:

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

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

spree/products/_properties
于 2015-06-22T13:40:48.570 回答