Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/style express piwoo 560 #961

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1904d91
Add apple express button
mmaymo Oct 10, 2024
9fae4de
Show selected method in apple window
mmaymo Oct 10, 2024
2dc86db
Show selected method in apple window on load
mmaymo Oct 10, 2024
1f5ff00
Remove log
mmaymo Oct 11, 2024
f00a94c
Update tests
mmaymo Oct 11, 2024
d0109d5
Fix cs
mmaymo Oct 11, 2024
a691410
Handle null shipping rates to prevent errors when they are unavailable
mmaymo Oct 14, 2024
71ff364
Remove empty complete and logs
mmaymo Oct 14, 2024
970d798
Remove empty complete
mmaymo Oct 14, 2024
6be2bf2
Add responsive styling for ApplePay button to adapt based on screen size
mmaymo Oct 14, 2024
962ea04
Prevent default form validation on clicking the button
mmaymo Oct 16, 2024
84e1681
Add new setting for the express button
mmaymo Oct 16, 2024
673d4b9
Show button only if enabled
mmaymo Oct 16, 2024
35f7b10
Fix CS
mmaymo Oct 17, 2024
45f5d84
Remove extra space & refactor variable assignment
mmaymo Oct 18, 2024
a282149
Squash and merge PIWOO-289
mmaymo Nov 4, 2024
e5969a9
Squash and merge PIWOO-319
mmaymo Nov 4, 2024
55dc2ea
Update modules bootstrap
mmaymo Nov 4, 2024
19dae4a
Update version
mmaymo Nov 4, 2024
9a03654
Move clear options to advanced section PIWOO-564
mmaymo Nov 4, 2024
4d467ec
Check keys before saving in all cases PIWOO-566
mmaymo Nov 4, 2024
39d2111
Fix CS
mmaymo Nov 4, 2024
62c1630
Merge branch 'release/7.9.0-beta' into feature/style-express-PIWOO-560
mmaymo Nov 5, 2024
836e2a9
Use styles from buttonAttributes
mmaymo Nov 5, 2024
f500cdb
Add notice for styling
mmaymo Nov 5, 2024
edf253f
Remove useMemo
mmaymo Nov 7, 2024
3bdd88b
Modify notice string
mmaymo Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
207 changes: 0 additions & 207 deletions inc/settings/mollie_advanced_settings.php

This file was deleted.

122 changes: 0 additions & 122 deletions inc/settings/mollie_applepay_settings.php
Original file line number Diff line number Diff line change
@@ -1,122 +0,0 @@
<?php

$pluginName = 'mollie-payments-for-woocommerce';
$title = 'Apple Pay';
$description = 'Apple description';
$pluginId = 'mollie-payments-for-woocommerce';
$applePayOption = get_option('mollie_wc_gateway_applepay_settings');

return [
[
'id' => $title . '_' . 'title',
'title' => __('Apple Pay', 'mollie-payments-for-woocommerce'),
'type' => 'title',
'desc' => '<p>' . __('The following options are required to use the Apple Pay gateway', 'mollie-payments-for-woocommerce') . '</p>',
],

[
'id' => 'enabled',
'title' => __('Enable/Disable', 'mollie-payments-for-woocommerce'),
/* translators: Placeholder 1: Gateway title */
'desc' => sprintf(__('Enable %s', 'mollie-payments-for-woocommerce'), $title),
'type' => 'checkbox',
'default' => 'yes',
'value' => isset($applePayOption['enabled']) ? $applePayOption['enabled'] : 'yes',

],
[
'id' => 'title',
'title' => __('Title', 'mollie-payments-for-woocommerce'),
'desc' => sprintf(
/* translators: Placeholder 1: Gateway title */
__(
'This controls the title which the user sees during checkout. Default <code>%s</code>',
'mollie-payments-for-woocommerce'
),
$title
),
'desc_tip' => true,
'type' => 'text',
'default' => $title,
'value' => isset($applePayOption['title']) ? $applePayOption['title'] : $title,

],
[
'id' => 'display_logo',
'title' => __('Display logo', 'mollie-payments-for-woocommerce'),
'desc' => __(
'Display logo',
'mollie-payments-for-woocommerce'
),
'desc_tip' => true,
'type' => 'checkbox',
'default' => 'yes',
'value' => isset($applePayOption['display_logo']) ? $applePayOption['display_logo'] : 'yes',

],
[
'id' => 'description',
'title' => __('Description', 'mollie-payments-for-woocommerce'),
'desc' => sprintf(
/* translators: Placeholder 1: Gateway description */
__(
'Payment method description that the customer will see on your checkout. Default <code>%s</code>',
'mollie-payments-for-woocommerce'
),
$description
),
'desc_tip' => true,
'type' => 'text',
'default' => $description,
'value' => isset($applePayOption['description']) ? $applePayOption['description'] : $description,
],
[
'id' => $pluginId . '_' . 'sectionend',
'type' => 'sectionend',
],
[
'id' => $title . '_' . 'title_button',
'title' => __(
'Apple Pay button settings',
'mollie-payments-for-woocommerce'
),
'type' => 'title',
'desc' => '<p>' . __('The following options are required to use the Apple Pay Direct Button', 'mollie-payments-for-woocommerce') . '</p>',
],
[
'id' => 'mollie_apple_pay_button_enabled_cart',
'title' => __('Enable Apple Pay Button on Cart page', 'mollie-payments-for-woocommerce'),
'desc' => sprintf(
/* translators: Placeholder 1: enabled or disabled */
__(
'Enable the Apple Pay direct buy button on the Cart page',
'mollie-payments-for-woocommerce'
),
$description
),
'type' => 'checkbox',
'default' => 'no',
'value' => isset($applePayOption['mollie_apple_pay_button_enabled_cart']) ? $applePayOption['mollie_apple_pay_button_enabled_cart'] : 'no',

],
[
'id' => 'mollie_apple_pay_button_enabled_product',
'title' => __('Enable Apple Pay Button on Product page', 'mollie-payments-for-woocommerce'),
'desc' => sprintf(
/* translators: Placeholder 1: enabled or disabled */
__(
'Enable the Apple Pay direct buy button on the Product page',
'mollie-payments-for-woocommerce'
),
$description
),
'type' => 'checkbox',
'default' => 'no',
'value' => isset($applePayOption['mollie_apple_pay_button_enabled_product']) ? $applePayOption['mollie_apple_pay_button_enabled_product'] : 'no',

],
[
'id' => $pluginName . '_' . 'sectionend',
'type' => 'sectionend',
],
];
Loading
Loading