0
我試圖更改主頁產品列表。 所以我想重寫文件路徑:Solidus/Spree覆蓋不起作用
https://github.com/solidusio/solidus/blob/master/frontend/app/views/spree/shared/_products.html.erb
Deface::Override.new(:virtual_path => 'spree/shared/products',
:replace_contents => "li#product_",
:name => "product_new",
:text => "text")
然而這段代碼的網頁上絕對0的變化。
該文件將在此覆蓋在被稱爲product_override.rb並在app /覆蓋
任何幫助,將不勝感激。 謝謝