Commit Graph

28527 Commits

Author SHA1 Message Date
Claudio Sanches daf6650d5d /reports/customers/count endpoint 2018-09-08 20:32:39 -03:00
Claudio Sanches a0145c0265 Fixed schema to include instance_id for shipping_lines 2018-09-08 19:12:40 -03:00
Claudio Sanches 30a2e87cf5 Fixed schema to include instance_id for shipping_lines 2018-09-08 19:10:45 -03:00
Claudio Sanches ca36e368c5 Added /reports/products/totals endpoint 2018-09-08 19:02:29 -03:00
Claudio Sanches 5d67b474ed Load product types 2018-09-08 19:02:22 -03:00
Edi Amin 39b7450cd6 Update quick edit logic to show/hide Stock qty and Backorders fields 2018-09-08 21:39:09 +06:00
Claudiu Lodromanean 0cc137be1e
Merge pull request #20848 from woocommerce/fix/20844
Make wc_get_attachment_image_attributes do what it is suppose to.
2018-09-07 12:08:34 -07:00
claudiulodro 08a76e1eea Add srcset handling 2018-09-07 11:36:03 -07:00
Claudiu Lodromanean 2da0c5715c
Merge pull request #21292 from woocommerce/fix/21091
Tax display in cart now depends on whether customer is tax exempt.
2018-09-07 11:01:42 -07:00
Claudiu Lodromanean d9b5cf7b6f
Merge pull request #21244 from rubn-g/fix/variable-product-cache-miss
Fix/variable product cache miss
2018-09-06 15:17:27 -07:00
Ruben 0a0f733a6e
fix lint code style issue 2018-09-06 22:52:48 +02:00
Claudiu Lodromanean 5ee82ce9c0
Merge pull request #21270 from jessepearson/add/system-tools-action
Add action for when system tools are run
2018-09-06 13:17:09 -07:00
Claudiu Lodromanean 552adaae13
Merge pull request #21274 from woocommerce/fix/21215
Improve performance of the query to delete version transients
2018-09-06 12:48:28 -07:00
Claudiu Lodromanean 35feb7aa92
Merge pull request #21261 from franticpsyx/remove-mini-cart-template-space
Remove unnecessary space in mini-cart template
2018-09-06 12:00:10 -07:00
Manos Psychogyiopoulos d4f6d173d5 Bump template version 2018-09-06 21:05:31 +03:00
Claudiu Lodromanean d6cbf78825
Merge pull request #21193 from woocommerce/add/21182
Add hidden, screen-reader label on address line 2 input on checkout
2018-09-06 10:32:36 -07:00
Claudiu Lodromanean dbbf31c99d
Merge pull request #21234 from woocommerce/update/obw-shipping-step-fulfillment
OBW: Remove live rates from shipping step, promote label printing.
2018-09-06 10:31:02 -07:00
Peter Fabian 028db78960 Updated tests. 2018-09-06 17:41:24 +02:00
Peter Fabian cf3f54ec64 Made tax display in cart depend on whether customer is tax exempt. 2018-09-06 17:40:21 +02:00
Jeff Stieler 1dc6a1c66d OBW: fix PHPCS errors. 2018-09-06 09:13:58 -06:00
Claudio Sanches 017b44693b Updated names 2018-09-05 10:30:14 -03:00
Claudio Sanches f13deab00a /reports/orders/count 2018-09-05 10:28:22 -03:00
Claudio Sanches 25ed037fb0 Include new reports endpoints results 2018-09-05 09:36:19 -03:00
Claudio Sanches 9fd386155f Allow to easy manipulate /reports endpoint results 2018-09-05 09:28:58 -03:00
Claudio Sanches f0e6ec7a6c Register reports 2018-09-05 09:25:56 -03:00
Claudio Sanches c271fca508 Restored reports endpoints 2018-09-05 09:24:02 -03:00
Jesse Pearson fe7817163c Moved action call 2018-09-05 07:34:52 -04:00
Peter Fabian 2ba13d06fd Fixed PHPCS. 2018-09-05 11:38:14 +02:00
Peter Fabian 43e3957bd5 Switched the variations to parent products to fix product counts for shipping classes. 2018-09-05 11:37:11 +02:00
Peter Fabian ab4630111b Fixed posts query to include parent products if variations have the shipping class assigned. 2018-09-05 11:35:05 +02:00
Rodrigo Primo b4b7062d7b Improve performance of the query to delete version transients
This commit removes the `ORDER BY option_id` part of the query to remove the version transients from the `wp_options` table. This change should help users having performance issues with this query (see for example #21215) and, as far as I can see, ordering is not necessary in this context.

Removing the `ORDER BY` from the query means that MySQL won't have to use filesort:

```
MySQL [wccore]> explain DELETE FROM wp_options WHERE option_name LIKE '\\_transient\\_%1510258328' ORDER BY option_id LIMIT 1000;
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
| id | select_type | table      | partitions | type  | possible_keys | key         | key_len | ref   | rows | filtered | Extra                       |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
|  1 | DELETE      | wp_options | NULL       | range | option_name   | option_name | 766     | const |   67 |   100.00 | Using where; Using filesort |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
1 row in set (0.02 sec)

MySQL [wccore]> explain DELETE FROM wp_options WHERE option_name LIKE '\\_transient\\_%1510258328' LIMIT 1000;
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
| id | select_type | table      | partitions | type  | possible_keys | key         | key_len | ref   | rows | filtered | Extra       |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
|  1 | DELETE      | wp_options | NULL       | range | option_name   | option_name | 766     | const |   67 |   100.00 | Using where |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
1 row in set (0.00 sec)
```
2018-09-04 17:20:35 -03:00
Rodrigo Primo b7cc3077ca Remove unneeded usage of @codingStandardsIgnoreStart 2018-09-04 16:03:02 -03:00
Claudiu Lodromanean 77f78415e4
Merge pull request #21248 from robertdevore/add/template-form-action-hooks
Add/template form action hooks
2018-09-04 11:47:25 -07:00
Robert DeVore 348307eb5e
Update spacing 2018-09-04 14:20:14 -04:00
Robert DeVore e4ec0cb148
Spacing update 2018-09-04 14:19:28 -04:00
Claudiu Lodromanean 9abbbb4c48
Merge pull request #21242 from woocommerce/fix/obw-payment-step-email-validation-on-hidden-field
OBW: Avoid Payment form breaking due to email validation on hidden field
2018-09-04 11:18:47 -07:00
Claudiu Lodromanean 24d9133a6b
Merge pull request #21266 from woocommerce/feature/21117
REST API] Make product's created date editable
2018-09-04 10:46:26 -07:00
Jesse Pearson 2faadce24f Add action for when system tools are run 2018-09-04 09:33:16 -04:00
Claudio Sanches bf69627cb1 Unit tests 2018-09-03 11:05:17 -03:00
Claudio Sanches 6a3483fa8a [REST API] Make product's created date editable 2018-09-03 10:57:28 -03:00
Manos Psychogyiopoulos 74ca1ebe6a Remove unnecessary space in mini-cart template 2018-09-03 13:50:48 +03:00
Robert DeVore 4a71ce4659 Add action hook to register form tag 2018-09-01 11:24:33 -04:00
Robert DeVore 03900a43cb Add action hook to edit account form tag 2018-09-01 11:24:04 -04:00
Rodrigo Primo 2740a686dc Change wp_woocommerce_sessions primary key
This commit changes wp_woocommerce_sessions primary key to the bigint field session_id. Before it was the char(32) field session_key. Doing this change primarily as it should reduce the occurrence of deadlocks, but also because it is not a good practice to use a char(32) field as the primary key of a table.
2018-08-31 16:56:30 -03:00
Ruben 081125043d
wordpress coding standards 2018-08-31 19:12:12 +02:00
Ruben d0db74edd5
Fix variable product cache misses
If the child product doesn't have weight or dimensions, the value is not being cached correctly as a ```false``` value is being stored and it always recheck that on every page load.
2018-08-31 19:10:32 +02:00
Paul Dechov a486f50cfd OBW: Avoid form breaking due to email validation on hidden field 2018-08-31 11:36:41 -04:00
Jeff Stieler 412a3fb17f OBW: render the product dimension and weight units selection inline in a sentence. 2018-08-30 15:36:08 -06:00
Jeff Stieler b3532dc4de OBW: hook up WCS / ShipStation install in shipping step save handler. 2018-08-30 15:36:08 -06:00
Jeff Stieler c179f7c5c6 OBW: remove live rates method setup from shipping step save handler. 2018-08-30 15:36:08 -06:00