deface

    0熱度

    1回答

    我是新手,並試圖通過使用deface刪除某些字段來在結帳時更改地址表單。現在我將使用哪個選擇器,id值是erb格式。下面是從形式部分的代碼示例 <% address_id = address_type.chars.first %> <p class="form-group" id=<%="#{address_id}zipcode" %>> <%= form.label :zi

    1熱度

    2回答

    我想從邊欄添加分類到主頁面,而不是產品列表,但是我的破損不起作用。 Deface::Override.new( :virtual_path => 'spree/shared/_products', :name => 'change view', :replace => "[data-hook='homepage_products']", :text => " <% max_le

    1熱度

    2回答

    我正在使用Spree在Rails電子商務商店工作。有兩種編輯前端的方法。 使用污損 與默認視圖 我知道,有污損,我們有狂歡升級設施工作。但是當我考慮使用Deface時,我有點困惑,如果它爲我提供充分的寬容來編輯任何html元素或不。 我有一個令人不安的想法,即Deface用於小的改變,但如果你必須徹底改變前端,你必須使用默認視圖進行操作,因爲在我的工作地點他們正在操作默認視圖,所以認爲如果他們正在

    0熱度

    1回答

    我試圖在spree管理頁面添加一個功能來重新發送裝運郵件。 我得到這個錯誤, ActionView::Template::Error (undefined method `resend_shipment_email_admin_order_url' for #<#<Class:0x0000000668cf80>:0x00000006683700>): 16: </ul>

    0熱度

    1回答

    我是Spree的新手。我想要毀掉扶手助手link_to。 我有spree/checkout/_new_user文件,它包含以下內容: <%= link_to Spree.t(:login_as_existing), spree.login_path %> 我想用抹掉上面link_to添加remote: true到。 請幫忙。

    0熱度

    1回答

    所以在我的代碼有14行如下: 應用程序/視圖/大禮包/共享/ _search.html.erb <%= submit_tag Spree.t(:search), name: nil, class: "btn btn-danger" %> 和: 應用程序/重寫/ edit_header.rb Deface::Override.new( :virtual_path => "spree/sh

    0熱度

    1回答

    我試圖使用抹掉來覆蓋大禮包登錄頁面,但使用下面的代碼 Deface::Override.new( :virtual_path => 'spree/shared/_login', :name => 'override login', :replace=> "body", :text=> "<body><h1>loin<h1></body>", :disabled => false )

    0熱度

    1回答

    我試圖用毀損覆蓋一些看法,但我得到這個錯誤和警告在控制檯: Deface: 1 overrides found for 'spree/shared/_header' Deface: 'header_background' matched 1 times with 'div#spree-header' Deface: [WARNING] No :original defined for 'hea

    0熱度

    1回答

    我正在學習Spree,因爲我想用它創建電子商務。我成功安裝了Spree,現在我想用deface定製標準狂歡模板。我試圖刪除產品頁面中的「產品屬性」標識表。 我這樣做的方式,但它不工作: Deface::Override.new(:virtual_path => 'spree/layouts/spree_application', :name => 'product_page',

    0熱度

    1回答

    Deface :: Override.new(:virtual_path =>'admin/shared/_sidebar',:name =>'blog',:insert_after =>'#main-sidebar',:text =>'text message') 請幫我解決一下這個。