Commit Graph

32773 Commits

Author SHA1 Message Date
Rodrigo Primo bfc469123f
Merge pull request #24441 from woocommerce/fix/24416
[Tracker] Prevent PHP warning when order date is empty
2019-08-21 16:14:49 -03:00
Rodrigo Primo 557e9aae95 Remove myclabs/deep-copy from the list of Composer dev dependencies
myclabs/deep-copy was added to composer.json directly as a workaround an issue in
the Travis build when running PHP 5.6 (#24079). Removing it in this commit to
check if the issue in Travis has been fixed as we don't really use this
package for WooCommerce development.
2019-08-21 15:55:18 -03:00
Rodrigo Primo 147307f1e6
Merge pull request #24442 from woocommerce/fix-error-log-notice
Check if error_get_last() is not null
2019-08-21 15:36:55 -03:00
Rodrigo Primo 31cc407a88
Merge pull request #24455 from woocommerce/renovate/phpunit-phpunit-7.x
Update dependency phpunit/phpunit to v7.5.15
2019-08-21 15:34:48 -03:00
Renovate Bot 4a7bd9dee9
Update dependency phpunit/phpunit to v7.5.15 2019-08-21 07:37:52 +00:00
Claudio Sanches 649b97b7a9
Merge pull request #24443 from itowhid06/master
update npm package version to 3.7.0
2019-08-20 17:39:23 -03:00
Claudio Sanches 3722c04156
Merge pull request #24445 from Spaggel/patch-1
Fix typo webhopk -> webhook in WC_Webhook
2019-08-20 17:38:29 -03:00
Claudio Sanches 2c02d21277 Remove Emoji from default additional email content 2019-08-20 11:54:21 -03:00
Renovate Bot b867a6c05c
Update dependency eslint to v6.2.1 2019-08-20 11:33:50 +00:00
Daniël van der Linden 0c885b8c24
Fix typo webhopk -> webhook in WC_Webhook 2019-08-20 08:43:50 +02:00
Nico Hauser 5c84557984
Updated filter name 2019-08-20 08:05:19 +02:00
Towhidul Islam 3aa14d3e6d update npm package version to 3.7.0 2019-08-20 11:41:32 +06:00
David Stone 1c47315b89 Fix trying to access array offset on a boolean notice 2019-08-19 20:11:43 -06:00
Claudio Sanches 8a278d3d96 Fixed coding standards 2019-08-19 20:42:42 -03:00
Claudio Sanches 6bc080fef0 Prevent PHP warning when date is null 2019-08-19 20:41:30 -03:00
Claudio Sanches 2e179fb3dc Updated wording of total of items in cart and review order 2019-08-19 19:47:02 -03:00
Claudio Sanches e50953bc24 Fixed Namibian currency symbol 2019-08-19 19:40:19 -03:00
Claudio Sanches 4b45905f18 Prevent load order twice 2019-08-19 18:19:36 -03:00
Claudio Sanches 500373f340
Merge pull request #24422 from woocommerce/renovate/husky-3.x
Update dependency husky to v3.0.4
2019-08-19 18:12:16 -03:00
Claudio Sanches 1845dab69a
Merge pull request #24423 from woocommerce/renovate/lint-staged-9.x
Update dependency lint-staged to v9.2.3
2019-08-19 18:11:59 -03:00
Michal Zdrojewski b2e9584a53 fix: show error message in myaccount if order does not exist. 2019-08-19 16:47:17 +01:00
Renovate Bot 41f618f716
Update dependency lint-staged to v9.2.3 2019-08-17 17:28:51 +00:00
Akeda Bagus 62b42893b2
Rename URL param from wccom-helper-nonce to wccom-connect-nonce. 2019-08-17 22:37:02 +07:00
Renovate Bot b109b76e94
Update dependency husky to v3.0.4 2019-08-17 13:34:10 +00:00
Akeda Bagus aae802f319
Add support to allow in-app purchase installation after connected. 2019-08-17 00:36:28 +07:00
Nico Hauser 5291767228
Add new filter in addition to existing action
Currently there is no way to change the data fed into the importer. An example use of it is the following filter:

    add_filter('woocommerce_product_import_before_process_item', "product_import_before_process_item", 10, 1);
    function product_import_before_process_item($data){
        //modify the data before importing e.g. prevent inserting an empty name!
        foreach($data as $key => $value){
            if(isset($data[$key]) && empty($value)){
                unset($data[$key]);
            }
        }
    return $data;
    }
2019-08-15 22:00:31 +02:00
Nico Hauser ee8f831909
Merge pull request #1 from woocommerce/master
Update to master
2019-08-15 21:56:07 +02:00
kolyasapphire fe3395cd6b Add 'applied_coupon' trigger to checkout.js
To check it’s working correctly:

add_action( 'woocommerce_after_checkout_form', 'alert_on_coupon');
add_action( 'woocommerce_after_cart', 'alert_on_coupon');

function alert_on_coupon() { ?>
<script type="text/javascript">
	jQuery(document).ready(function($) {
    $( document.body ).on( 'applied_coupon', function(event,code){
    	alert(code);
    });
});

$( document.body ).trigger( 'applied_coupon', [ data.coupon_code ] );
2019-08-14 19:09:18 +03:00
Renovate Bot 3fb1a2aef4
Update dependency grunt-sass to v3.1.0 2019-08-14 12:02:16 +00:00
Jonathan Moore d88fdb6adf
add $this param to woocommerce_email_additional_content_
add $this param to woocommerce_email_additional_content_ filter to be consistent with 'woocommerce_email_subject_' .  and 'woocommerce_email_heading_' .  filters.
2019-08-14 08:02:04 +01:00
Claudio Sanches 0adb229e96 Added ref link 2019-08-13 23:48:56 -03:00
David Stone d685964df6 Use correct parameter order for implode. Solves deprecation notice in PHP 7.4 2019-08-13 13:03:09 -06:00
David Stone 3a74d03705 Fix typo in function_exits check so function can be properly overridden 2019-08-12 16:55:08 -06:00
Claudio Sanches 5407c4bf75 Moved UG states to new i18n/states.php
i18n/states/ directory is deprecated since WooCommerce 3.6.
2019-08-12 19:08:29 -03:00
Gerhard 5a1615a152 PHPCS fix 2019-08-12 20:26:34 +02:00
Rodrigo Primo f687412acd
Merge pull request #24353 from woocommerce/fix/24334
Avoid PHP notice when getting order item type
2019-08-12 14:11:41 -03:00
Claudio Sanches 66dbb44100 Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean 2019-08-12 12:45:43 -03:00
Claudio Sanches 8ef99cf1de Check if order exists before create downloads hash 2019-08-12 12:18:35 -03:00
Gerhard 3d2d50f0fa Update grunt contributors command to take a branch input 2019-08-12 17:13:31 +02:00
Yash Kapoor 5b9b67ace1 Make matched shipping zone notice translatable (#24366)
* Update class-wc-shipping.php

Added translation.

* Update class-wc-shipping.php

Added translation.

* Update class-wc-shipping.php

Fixed phpcs error.

* Update class-wc-shipping.php
2019-08-12 10:32:44 -03:00
Gerhard Potgieter 8e5048bba6
Merge pull request #24382 from woocommerce/renovate/woocommerce-woocommerce-blocks-2.x
Update dependency woocommerce/woocommerce-blocks to v2.3.0
2019-08-12 15:17:56 +02:00
Renovate Bot 67abaef097
Update dependency woocommerce/woocommerce-blocks to v2.3.0 2019-08-12 11:52:22 +00:00
Janak Kaneriya 77e4ed9b40 fixed the security check error while previewing the email template 2019-08-12 12:55:39 +05:30
itzmekhokan 148f22ac1d Added a filter for reposition shipping calculator 2019-08-10 19:22:32 +05:30
Claudio Sanches 1b2b9d528a Fixed Netherlands postcode formatting (#24284)
* Fixed Netherlands postcode formatting

Trim all spaces, fixes issues when postcode is empty.

* Always trim spaces

* Updated unit test for test_wc_format_postcode()
2019-08-09 15:00:40 -03:00
Rodrigo Primo 6c263c97b6
Merge pull request #24239 from Chouby/fix/delete_variations_actions
Fire related actions when deleting all product variations
2019-08-08 16:47:39 -03:00
Rodrigo Primo 7cea80a86a
Merge pull request #24291 from woocommerce/prod-shipping-class-alphabetical
Sort shipping classes under products alphabetically
2019-08-08 16:41:30 -03:00
Rodrigo Primo 353945f638
Merge pull request #23384 from CasperBraske/CasperBraske-patch-1
Moved HTML from widget code to template file
2019-08-08 15:46:45 -03:00
Rodrigo Primo 3039d84736
Merge pull request #24336 from shoheitanaka/patch-16
Update address setting for Japanese
2019-08-08 15:27:12 -03:00
Rodrigo Primo e6394ace27 Add note about using the ISO 3166-2 standard for states names 2019-08-08 15:12:57 -03:00