Commit Graph

65 Commits

Author SHA1 Message Date
Michael P. Pfeiffer 19cd1e6ee6 Remove P2 reference 2021-06-09 14:14:21 +02:00
Michael P. Pfeiffer a54ccf01b4 FSE: add link to Customizer WooCommerce panel in block-based themes 2021-06-09 14:14:21 +02:00
Christopher Allford 070954c888 Revert #28187
The default functionality within the `ThemeSupport` class has an unintended
side-effect of breaking the existing default functionality within the
`wc_get_theme_support()` function. Since the default set in the support
class is prioritized over the one given to `ThemeSupport::get_option()`,
the WordPress options set in the Customizer are never used for images.
2021-05-21 12:10:15 -07:00
roykho 387e095a01 Update deprecated jQuery functions in includes folder 2021-04-28 16:21:59 -05:00
Nestor Soriano 3a895c9eed
Move ThemeSupport class to Internal namespace, and use in 2021 theme. 2021-04-21 12:57:56 +02:00
Nestor Soriano d11a20b5b4
Merge branch 'trunk' into fix/25900-take-2 2021-04-20 16:08:45 +02:00
Lee Willis a6334370a8 Fix visibility of checkout field settings in customizer 2021-01-06 16:01:37 +00:00
Nestor Soriano d620f1d232 Fix #25900 - image size customisation controls not shown
- Added the `ThemeSupport class`, with methods to add and get
  theme support options.
  - It also has a new `add_default_options` method that adds the
    options under a `_defaults` key.
- The `WC_Twenty_*` classes now use `ThemeSupport` instead of
  the `add_theme_support` function to define image and thumbnail sizes.
  - The values are defined as default options.
- The `WC_Shop_Customizer` class now uses `ThemeSupport` instead of
  `wc_get_theme_support` to check if image and thumbnail sizes UI
  should be rendered.
  - The check is made excluding default values.

With these changes the UI to change the image and thumbnail sizes
is hidden only if the options are added as non-defaults elsewhere.

Additional changes:

- The code of the `wc_get_theme_support` function is replaced with
  a simple call to `get_option` in `ThemeSupport`.
- Added the utility class `ArrayUtil`.
2020-11-04 13:01:53 +01:00
Nestor Soriano cd443581cf Fix code sniffer errors 2020-11-04 12:39:45 +01:00
roykho 8c73c5f2f8
Replace jQuery.ready function with recommended way since jQuery 3.0 closes #27945 2020-10-19 06:47:55 -07:00
azzy9 c6d31e5459
Fix the error message shown for the max setting
Fix the error message shown when the max setting for rows is shown. before it stated "The minimum allowed setting is 8" when it should be "The maximum allowed setting is 8"
2020-07-10 12:58:57 +01:00
Ron Rennick a88a708286 remove privacy page dropdown 2020-06-18 10:40:17 -03:00
Rodrigo Primo 7337ab60c2 Fix PEAR.Functions.FunctionCallSignature violations
This commit fixes all violations of the PEAR.Functions.FunctionCallSignature sniff automatically using phpcbf.
2019-12-20 15:25:23 -03:00
Mike Jolley be63fb152a Preview checkout without dummy product 2018-05-22 11:19:09 +01:00
Mike Jolley 2f8f30cd29 Make some strings easier to translate for translators 2018-05-03 14:50:39 +01:00
Mike Jolley ccff8ecd17 Fix policy text preview in customizer. 2018-04-26 12:11:11 +01:00
Mike Jolley d73d15a73d Phone was required in 3.3 - set default 2018-04-26 11:52:36 +01:00
Mike Jolley 8a19c5962b Further simplified customiser options 2018-04-16 17:56:44 +01:00
Mike Jolley 6c14ad9a88 More wording tweaks 2018-04-11 17:12:48 +01:00
Mike Jolley 592605f071 Wording 2018-04-11 16:45:41 +01:00
Mike Jolley cdd5b25bd8 Privacy page and default text handling 2018-04-11 16:41:39 +01:00
Mike Jolley e190d354b4 Page selection for privacy/terms 2018-04-11 15:01:21 +01:00
Mike Jolley 0f8e1cd705 Use placeholders 2018-04-11 14:07:50 +01:00
Mike Jolley 4e58d756f0 Tweak checkbox placement 2018-04-11 13:50:28 +01:00
Mike Jolley 4e9984718d Simplify required field option 2018-04-11 13:40:42 +01:00
Mike Jolley eb3b1dbee6 Add dummy product to cart when viewing preview 2018-04-11 13:19:39 +01:00
Mike Jolley 212a8a180f Back compat 2018-04-06 11:51:03 +01:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Mike Jolley 46815d1d01 Add controls to control if address 2, company, and phone fields are optional, required, or hidden. 2018-04-05 17:51:43 +01:00
Mike Jolley 3a6c3e002b Add option to choose if the checkout marks either required or optional fields, and style these options. 2018-04-05 14:12:59 +01:00
Mike Jolley 0091d7a18c Adds checkout section to the customizer under `woocommerce` 2018-04-05 13:55:15 +01:00
Gerhard Potgieter b4ec1d372c PHPCS passing for class-wc-customizer-controll-cropping.php 2018-03-06 07:31:20 +02:00
Mike Jolley 74f9e16ac3 Unbind on display 2018-02-28 11:58:04 +00:00
Tiago Noronha 28b99e6970 Prevent full refresh when editing store notice and checkbox is off 2018-02-27 19:52:31 +00:00
Mike Jolley 00ed016bf1 Implement selective_refresh for store notice 2018-02-27 12:46:36 +00:00
Mike Jolley d841cf3f27 Conditionally add messages in customiser 2018-02-14 17:25:52 +00:00
Mike Jolley 9499b63e01 Register gallery_thumbnail size 2018-02-13 11:16:42 +00:00
Anh Hoang Nguyen 0ec546427e
Catalog rows: cast min, max, and value to int 2018-02-06 14:50:23 +07:00
claudiulodro 14fa87ab1f Dont show row settings if something is managing the number of products per page 2018-01-31 15:50:48 -08:00
Mike Jolley 1f2046a3e3 Revert columns to 4 2018-01-31 17:55:17 +00:00
Gerhard Potgieter 6a7f00ce89 Fix grammer 2018-01-31 08:06:51 +02:00
Mike Jolley 2d952b1597 base 10 2018-01-26 15:54:34 +00:00
Mike Jolley 36bce5f939 Cast min, max, and value to int
Fixes #18613
2018-01-26 15:53:23 +00:00
Mike Jolley 76a37fa0d2 Feedback 2018-01-25 15:14:02 +00:00
Mike Jolley 9b155d53d4 Feedback; show panels at all times and redirect to store. 2018-01-25 11:48:45 +00:00
Mike Jolley 845c667e77 phpcs 2018-01-25 11:38:05 +00:00
Mike Jolley 371f504964 Helpers for theme support vars and error messages. 2018-01-08 18:48:57 +00:00
Caleb Burks 54fd171f04 Set default catalog_orderby in customizer 2017-12-24 23:39:44 -06:00
Mike Jolley bfe7b835a3
Merge pull request #18157 from WPprodigy/customizer-string-updates
[3.3] Customizer string updates
2017-12-14 13:00:09 +00:00
Caleb Burks fdd6e8be15 Update image descriptions 2017-12-13 21:22:38 -06:00