0

我了解自定义狂欢的基本方法(污损、覆盖视图文件等)。我无法弄清楚 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

有谁知道它是怎么做的?

4

1 回答 1

0

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。

于 2013-10-22T15:46:06.110 回答