【问题标题】:How does Spree Fancy theme turn the expiration field into month / year selects?Spree Fancy 主题如何将过期字段变成月/年选择?
【发布时间】:2013-10-22 06:08:50
【问题描述】:

我了解自定义 spree 的基本方法(污损、覆盖视图文件等)。我不知道 Spree Fancy 主题如何用月/年选择字段替换信用卡到期输入文本字段。

似乎没有任何影响该字段的污损覆盖、视图覆盖或 javascript。

以下是付款篡改覆盖:https://github.com/spree/spree_fancy/tree/2-0-stable/app/overrides/spree/checkout/_payment

这是主要的 js 文件:https://github.com/spree/spree_fancy/blob/2-0-stable/app/assets/javascripts/store/spree_fancy.js

没有与付款流程相关的完整视图覆盖:https://github.com/spree/spree_fancy/tree/2-0-stable/app/views/spree

有人知道它是怎么做的吗?

【问题讨论】:

    标签: ruby-on-rails spree


    【解决方案1】:

    Spree 2-0-stable 为这些使用选择框:

    https://github.com/spree/spree/blob/2-0-stable/frontend/app/views/spree/checkout/payment/_gateway.html.erb#L17-L18

    它们没有被覆盖,并且在默认主题中显示为选择框,而不仅仅是 spree_fancy。

    【讨论】:

      猜你喜欢
      • 2014-06-18
      • 1970-01-01
      • 2011-05-06
      • 2019-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多