PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.3.1
Pay with Vipps and MobilePay for WooCommerce v6.3.1
6.3.1 6.2.6 6.3.0 6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 All 190 releases
← All changes | payment/src/admin/settings/src/components/admin-settings/advanced-options-tab.tsx +15 -26 6.0.1 → 6.3.1 View file →
@@ -13,8 +13,9 @@
13 13 */
14 14 export function AdminSettingsAdvancedOptionsTab(): JSX.Element {
15 15 const { getOption, setOption } = useWP();
16 16 const [error, setError] = useState<string | null>(null);
17 + const [showSpecialPageTemplates] = useState(getOption('vippsspecialpagetemplate'));
17 18
18 19 /**
19 20 * Removes the image from the options and clears the image URL.
20 21 */
@@ -72,32 +73,23 @@
72 73 titleKey="vippsorderattribution.title"
73 74 descriptionKey="vippsorderattribution.description"
74 75 />
75 76
76 - {/* Renders a checkbox to override the page template used for the special Vipps pages */}
77 - <SelectFormField
78 - name="vippsspecialpagetemplate"
79 - titleKey="vippsspecialpagetemplate.title"
80 - descriptionKey="vippsspecialpagetemplate.description"
81 - options={Object.entries(gettext('vippsspecialpagetemplate.options')).map(([templateid,templatename]) => ({
82 - label: templatename,
83 - value: templateid ? templateid : ""
84 - }))}
85 - />
77 + {/* Renders a checkbox to override the page template used for the special Vipps pages.
78 + From now (2026-08-27) on the special page is now a real page, so hide this setting if its unset/default. But if changed, still show it so users can change it. LP 2026-08-27
79 + */}
80 + {showSpecialPageTemplates &&
81 + <SelectFormField
82 + name="vippsspecialpagetemplate"
83 + titleKey="vippsspecialpagetemplate.title"
84 + descriptionKey="vippsspecialpagetemplate.description"
85 + options={Object.entries(gettext('vippsspecialpagetemplate.options')).map(([templateid,templatename]) => ({
86 + label: templatename,
87 + value: templateid ? templateid : ""
88 + }))}
89 + />
90 + }
86 91
87 - {/* Renders a checkbox to use a real page ID for the special Vipps pages */}
88 - <SelectFormField
89 - name="vippsspecialpageid"
90 - titleKey="vippsspecialpageid.title"
91 - descriptionKey="vippsspecialpageid.description"
92 - options={Object.entries(gettext('vippsspecialpageid.options')).map(([pageid,pagename]) => ({
93 - label: pagename,
94 - value: pageid ? pageid : ""
95 - })
96 -
97 - )}
98 - />
99 -
100 92 {/* Renders a checkbox to enable the sending of receipts */}
101 93 <CheckboxFormField
102 94 name="sendreceipts"
103 95 titleKey="sendreceipts.title"
@@ -138,11 +130,8 @@
138 130 <small>{gettext('receipt_image_size_requirement')}</small>
139 131 </span>
140 132 </div>
141 133 </WPFormField>
142 -
143 - {/* Renders a checkbox to enable the use of flock() */}
144 - <CheckboxFormField name="use_flock" titleKey="use_flock.title" descriptionKey="use_flock.description" labelKey="use_flock.label" />
145 134
146 135 {/* Renders a checkbox to delete (reset) plugin settings on plugin deactivation. LP 2025-10-06 */}
147 136 <CheckboxFormField
148 137 name="delete_settings_on_deactivation"