Commit Graph

25271 Commits

Author SHA1 Message Date
Claudio Sanches b1fd3134c3 Introduces woocommerce_webhook_process_delivery hook 2017-12-01 14:33:30 -02:00
Claudio Sanches f2d2077c30
Merge pull request #17981 from ibndawood/master
Made common template functions pluggable
2017-12-01 14:12:11 -02:00
Claudio Sanches f5cddc4f36 Fixed webhook initial test delivery ping
Part of #12439
2017-12-01 14:04:59 -02:00
Claudio Sanches d6f54afbe5 Improve webhook delivery duration
Improved to conside the amount of time spent gathering all data and time sending request.

Closes #17010
2017-12-01 13:48:31 -02:00
Claudio Sanches 022f9a10a3 Updated webhook failed delivery code and introduced new hook 2017-12-01 12:08:13 -02:00
Claudio Sanches d5f871ad7e [REST API] Fixed errors while creating and updating webhooks 2017-12-01 11:57:29 -02:00
Claudio Sanches 5cda80330d Webhooks secret not mandatory in REST API 2017-12-01 11:48:38 -02:00
Claudio Sanches 46cfe9e3b6 Fixed docblocks 2017-12-01 11:47:45 -02:00
Ibrahim Ibn Dawood b1bef237d1 made function : woocommerce_template_loop_product_link_open, woocommerce_template_loop_product_link_close, woocommerce_template_loop_category_link_open, woocommerce_template_loop_category_link_close pluggable 2017-12-01 14:58:42 +05:30
claudiulodro 22031c5b56 Tag support in shortcode 2017-11-30 13:43:32 -08:00
Claudiu Lodromanean 4e2e64ad2e
Merge pull request #17975 from woocommerce/refactor/12439-trigger-webhook
Trigger webhook when delivery URL is changed
2017-11-30 11:12:51 -08:00
claudiulodro 8d6d4c4fd9 good tax approach 2017-11-30 10:57:33 -08:00
Claudio Sanches 270c0a200e Merge branch 'master' into feature/webhook-crud 2017-11-30 16:55:28 -02:00
Claudio Sanches bbc472d80d
Merge pull request #17548 from crstauf/add/webhook-status-action
Add action for webhook status change
2017-11-30 16:52:41 -02:00
Claudio Sanches 01b3f2bac4 Trigger webhook when delivery URL is changed 2017-11-30 16:48:16 -02:00
Claudio Sanches 6c45659e68
Merge pull request #17956 from vyskoczilova/master
Add zipcode validation for Czech republic and Slovakia
2017-11-30 16:47:40 -02:00
Karolína Vyskočilová 54f9bfafa1
CZ/SK zip - exchange space for \s 2017-11-30 19:33:16 +01:00
Claudio Sanches 4d9203b841 Soft deprecated webhook deliveries REST API endpoints 2017-11-30 16:20:20 -02:00
Claudio Sanches 9b5d5b684b Fixed coding standards 2017-11-30 16:05:36 -02:00
claudiulodro 97c5140c25 Clean up to make it easier to work 2017-11-30 09:58:39 -08:00
Rodrigo Primo 99c724a6ad
Merge pull request #17958 from woocommerce/feature/composer-scripts
Introduces a few composer scripts for PHPUnit and PHP_CodeSniffer
2017-11-30 10:35:25 -02:00
James Allan f6eb02806b Mark orders as payment complete if the order total is 0
Similar to how other payment gateways like Stripe call
payment_complete on orders with $0 totals.
2017-11-30 13:31:10 +10:00
Claudiu Lodromanean 9e15022370
Merge pull request #17960 from woocommerce/fix/17940
Allow woocommerce_form_field() have 'custom_attributes' equal 0
2017-11-29 14:35:54 -08:00
Claudiu Lodromanean 0dd4e3e5f2
Merge pull request #17963 from woocommerce/fix/17957-1
Remove "wc_error" query string after login process
2017-11-29 14:32:58 -08:00
claudiulodro 79458dd991 Fix template loading issues 2017-11-29 14:30:43 -08:00
Claudio Sanches 41335ae9b5 Remove "wc_error" query string after login process
Closes #17957
2017-11-29 19:57:59 -02:00
Claudio Sanches da6c9c769a Include 'product_url' wc_get_customer_available_downloads() results
Also required to fix #17925
2017-11-29 19:49:54 -02:00
claudiulodro 1f93ed5153 Initial implementation of archives 2017-11-29 13:46:37 -08:00
Claudio Sanches 777a004a1f Allow max of 15 products in Recent Viewed Products widget 2017-11-29 19:24:39 -02:00
Claudio Sanches 929eb48fcd Always save last viewed product ID into woocommerce_recently_viewed cookie
Currently if you already visited a product will not be listed at the top
of the "Recent Viewed Products" widget.

This happens because we only include new items if they are not already
in the list of viwed products.

This code changes a little the logic excluding the ID from viewed
products list and adding again.

Closes #17951
2017-11-29 19:21:04 -02:00
Claudio Sanches d438a68300 Allow woocommerce_form_field() have 'custom_attributes' equal 0
array_filter() by default will remove all null values, also 0 or false,
but if trying to declare something like array( 'min' => '0', 'max' =>
'10' ) this will be a problem. So including added strlen() as callback
function will allow keep some strings but still remove null and false
values.

Ref #17940
2017-11-29 18:45:44 -02:00
Claudio Sanches d9da796f11 Introduces a few composer scripts for PHPUnit and PHP_CodeSniffer 2017-11-29 18:10:54 -02:00
Claudio Sanches 5e2628c06b REST API v2 webhooks CRUD implementation 2017-11-29 18:08:08 -02:00
Jonathan Belcher 9983352d60 Account for user searching on featured tab 2017-11-29 14:50:38 -05:00
Jonathan Belcher 2d6638a156 Small css fix with margins 2017-11-29 14:48:58 -05:00
Claudio Sanches bc86192120 REST API v1 webhooks CRUD implementation 2017-11-29 17:44:09 -02:00
Jonathan Belcher 76dba4f022 Add compiled assets 2017-11-29 14:38:41 -05:00
Claudiu Lodromanean b05cd3f3a7
Merge pull request #17934 from woocommerce/fix/17925
Display product URL only if is not hidden in downloads list
2017-11-29 10:33:34 -08:00
Jonathan Belcher 7296f69e54 Fix comments to follow standard 2017-11-29 13:03:22 -05:00
Karolína Vyskočilová 864c41c35a
Add zipcode validation for Slovakia 2017-11-29 18:55:35 +01:00
Karolína Vyskočilová deb00803b5
Add zipcode validation for Czech republic 2017-11-29 18:48:15 +01:00
Jonathan Belcher 3d86535c6d Adds geo and install plugin control to extensions featured page 2017-11-29 12:41:08 -05:00
Jonathan Belcher 01ed1bea76 Remove testing code 2017-11-29 10:25:34 -05:00
Claudio Sanches 64ffa22e16
Merge pull request #17948 from woocommerce/add/17920-httponly-cookie-filter
Introduce woocommerce_cookie_httponly filter
2017-11-29 11:20:19 -02:00
Gerhard Potgieter 220abd97eb Pass all args of function to filter 2017-11-29 15:12:24 +02:00
Claudio Sanches 563466c0eb
Merge pull request #17950 from yratof/remove-variation-whitespace
Removed whitespace in variations
2017-11-29 10:52:58 -02:00
Claudio Sanches 53b3c56a63
Merge pull request #17947 from woocommerce/update/17943-category-image-schema
Update REST API product categories image schema
2017-11-29 10:42:58 -02:00
Claudio Sanches c0a7f0eef0 Fixed category images schema in REST API v1 2017-11-29 10:42:06 -02:00
Claudio Sanches d3a5a1bfd4 Fixed bugs caused after fixing coding standards 2017-11-29 10:32:35 -02:00
Claudio Sanches ae67b3b404
Merge pull request #17945 from woocommerce/fix/17944-remove-add-to-cart-pagination
Exclude add-to-cart from pagination link
2017-11-29 10:24:28 -02:00