Commit Graph

225 Commits

Author SHA1 Message Date
Claudio Sanches c4ccc38780 Fixed use __DIR__ for relative paths 2020-08-26 18:46:44 -03:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Ron Rennick 5ee0eccb7b add/update correct deprecated notices on existing deprecations 2020-07-16 17:13:08 -03:00
Job c2a8af8331
Tweak explanation for coupon discounts
There was still some unclarity on the function. The explanation and tooltips were updated.
2020-04-24 15:47:02 +02:00
Julia Amosova 2b95f7b795 Update the string next to `coupons discounts` checkbox 2020-04-21 12:45:25 -04:00
Julia Amosova 8845b9a5c2 Update `Ignore coupons discounts` title & description for Free Shipping 2020-04-21 11:25:12 -04:00
vedanshujain 861b9de692 Send dummy parameters so that cost is evaluated correctly.
Also added a warning for subclasses that cost and qty are required keys.
2020-03-17 16:54:01 +05:30
Rodrigo Primo 1910420896
Merge pull request #24776 from boghy933/feature/24754
Option for free shipping if should ignore discounts or not
2020-03-06 13:10:45 -03:00
TimBHowe e7a575222a Updated if statment to allow 0 values 2020-01-28 10:44:37 -05:00
Tim Howe 3b5e44ccf1 Added a call to the evaluate_cost function in the sanitize_cost function to throw an exception if there is an illegal character in the input. 2020-01-28 10:44:35 -05: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
boghy933 97c609d75c Round total value only once 2019-10-09 00:17:49 +02:00
boghy933 3bf721b023 Option for free shipping if should ignore discounts or not 2019-10-06 02:11:01 +02:00
Peter Fabian a6a26633a4 Removed extra check if the code is executed within admin. 2019-06-20 14:07:52 +02:00
Peter Fabian 91839ce078 Moved the JS enqueue from get_instance_form_fields to admin_footer action hook.
This should prevent multiple enqueues.
2019-05-20 12:56:01 +02:00
Martin Snajdr 1c678372d4 Shipping cost filters removed & added two additional parameters get_option function filters 2019-02-20 15:59:40 +01:00
Martin Snajdr 89016f1e70 WP coding standards fix. 2019-02-20 11:57:03 +01:00
Martin Snajdr a6499d83ab Flat rate shipping cost / class cost filters added.
Allows to tweak flatrate shipping cost / class cost before it gets
calculated and applied to shipping. Very useful for multicurrency
plugins, because you can add field for fixed shipping cost in another
currency and use this value instead of the default value from cost
field.
2019-02-19 15:49:35 +01:00
JeroenSormani f4775ccd90 Use shipping method instead of property through magic + doc return statements 2019-01-04 12:41:38 +00:00
Rodrigo Primo 85436b1c56 Fix phpcs violations in includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 2018-03-07 15:30:26 -03:00
Rodrigo Primo 9492d28bf5 Fix phpcs violations in includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php 2018-03-07 15:30:15 -03:00
Rodrigo Primo 9c23fd85d6 Fix phpcs violations in includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php 2018-03-07 15:30:00 -03:00
Rodrigo Primo 1088d45c80 Fix phpcs violations in includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php 2018-03-07 15:29:48 -03:00
Rodrigo Primo 90d27c65da Fix phpcs violations in includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php 2018-03-07 15:29:36 -03:00
Rodrigo Primo 16510b0e73 Fix phpcs violations in includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php 2018-03-07 15:29:23 -03:00
Rodrigo Primo 3d1c6b1f7d Fix phpcs violations in includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php 2018-03-07 15:29:10 -03:00
Rodrigo Primo 09c42033a0 Fix phpcs violations in includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 2018-03-07 15:28:57 -03:00
Rodrigo Primo a4bdfddaa5 Fix phpcs violations in includes/shipping using phpcbf 2018-03-07 15:04:56 -03:00
Mike Jolley a8957bd7a3 Strip currency 2018-01-22 14:13:08 +00:00
Mike Jolley 3ce51d9791 JSON context 2018-01-22 14:11:43 +00:00
Mike Jolley 96db283ae3 phpcs 2018-01-22 11:03:13 +00:00
Mike Jolley a205eadb7e sanitize_callback 2018-01-22 10:59:25 +00:00
Mike Jolley 1ab8d795f6 phpcs 2018-01-22 10:57:55 +00:00
Mike Jolley 01871fd2c8 Add getter for tax_display_cart variable, with filter 2017-12-15 13:39:35 +00:00
Mike Jolley 5c271af844 Handle isset for legacy props, and adjust free shipping logic
Closes #16547
2017-08-21 13:01:20 +01:00
Mike Jolley d2e3839d99 Use getters and setters in cart class 2017-08-18 12:51:45 +01:00
Mike Jolley aefb9c4705 Moved magic method to legacy 2017-08-18 11:37:22 +01:00
Beka Rice c54b0ecd9d Pass WC_Shipping_Method instance to availability filters 2017-08-11 16:36:18 -04:00
Jaydeep Rami 46d3638089 Fix missing return statement (#16148)
* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement
2017-07-20 18:01:14 +01:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00
Rasmus Bengtsson 185934fad9 Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
Akeda Bagus 0b416439c8
Fixed all typos of all files in includes/ directory.
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell.
2017-03-29 00:58:51 +07:00
Justin Sternberg 37a387a391 Add the shortcode name param to the WC_Shipping_Legacy_Flat_Rate fee shortcode. 2017-01-03 13:12:00 -05:00
Justin Sternberg 6f5617eb2e Add the shortcode name param to the fee shortcode.
Re: #11447 and #12741
2017-01-03 13:05:43 -05:00
Mike Jolley 56fef5b4f6 More styling settings tweaks 2016-12-21 11:36:48 +00:00
Mike Jolley 13086ba7cd no class cost logic should only kick in if store has shipping classes. 2016-12-20 15:40:05 +00:00
Rami Yushuvaev 8ab8bef52e add translators comments 2016-10-29 13:51:56 +03:00
Claudio Sanches fa0c710802 i18n <a> links, closes #12195 2016-10-27 15:36:24 -02:00
Rami Yushuvaev 140d0efb99 i18n: Avoid using HTML tags in translation strings (#12166)
* i18n: Remove some HTML tags from translation strings

* i18n: simpler translation string

* i18n: translations strings with surrounding `<strong>` HTML tags should be moved outside the translation string

* i18n: Avoide using `<code>' HTML tags in translation strings

* i18n: Split the notice to avoide using HTML tags in translation strings
2016-10-24 21:56:37 -02:00
Rasmus 58eaa70424 Only print js for free shipping fields in admin
Since WC_Shipping_Method->get_option() runs $this->get_instance_form_fields it prints out the JS even when getting the option outsite admin.
2016-10-21 12:38:35 +02:00