Paul Dechov
6824b2a923
Merge branch 'master' into fix/setup-wizard-service-style-tweak
2017-12-29 13:02:19 -05:00
Fulvio Notarstefano
b8beb703ef
[ #18223 ] Filter results for related products
2017-12-29 12:18:50 +08:00
Fulvio Notarstefano
3045e01f4e
[ #18223 ] Store related posts query arguments in transient
2017-12-29 12:12:26 +08:00
Andrew Minion
40d9efc4b8
add button for creating coupons to coupon blank state
...
Makes it more user-friendly for someone unfamiliar with WordPress/WooCommerce, and even for those who are familiar and don’t immediately see the typical “Add Coupon” button in the top left corner by the header.
2017-12-27 11:53:20 -05:00
Caleb Burks
0192fb9ef0
Add woocommerce_loop_product_link filter
2017-12-25 02:20:40 -06:00
Caleb Burks
2b4a756438
Update docs.
2017-12-25 02:16:10 -06:00
Caleb Burks
54fd171f04
Set default catalog_orderby in customizer
2017-12-24 23:39:44 -06:00
Paul Dechov
a87183503f
Fix api_subject option being set even when reroute_requests unchecked
2017-12-22 14:57:50 -05:00
claudiulodro
09ef2195be
Manual set order tests
2017-12-22 11:35:52 -08:00
Claudiu Lodromanean
eb60a17818
Merge pull request #18265 from Miller-Media/millermedia/scheduled_sales_actions
...
Added actions before & after scheduled sales initiation and completion
2017-12-22 10:23:02 -08:00
Matt Miller
69d9f1f6ff
Updated spacing
2017-12-22 09:58:05 -08:00
claudiulodro
611ca58d09
Change sanitize function
2017-12-22 09:46:57 -08:00
Rodrigo Primo
bd10f77e1d
Merge pull request #18268 from woocommerce/fix/18245
...
Added WooCommerce-Core sniffs
2017-12-22 15:35:17 -02:00
Claudiu Lodromanean
20f698db2b
Merge pull request #18219 from woocommerce/fix/18197
...
Compare the date modified when loading session data.
2017-12-22 08:17:14 -08:00
Mike Jolley
e12838810c
Merge pull request #18267 from woocommerce/fix/18226
...
Remove Postcode field for Suriname
2017-12-22 12:32:49 +00:00
Jason Kytros
a21ada68cd
Fix coupon 'Excluded Categories' restriction evaluation
2017-12-22 11:21:47 +02:00
Claudio Sanches
61b5c7a445
Added WooCommerce-Core sniffs
2017-12-21 21:29:49 -02:00
Claudio Sanches
d69f67bfd5
Auto fixed minor coding standards with PHPCBF
2017-12-21 18:18:04 -02:00
Claudio Sanches
514087e4aa
Fixed coding standards
2017-12-21 18:10:55 -02:00
Claudio Sanches
2198eb136c
Remove Postcode from Suriname
2017-12-21 17:49:56 -02:00
Claudio Sanches
2f1c00b773
Merge pull request #18256 from woocommerce/fix/18246
...
Use text color for email links
2017-12-21 17:34:38 -02:00
claudiulodro
7fcbceaae5
Refactor logic
2017-12-21 11:31:58 -08:00
Claudio Sanches
1d132b8b9d
Merge pull request #18263 from woocommerce/fix/18244
...
Process embed shortcode in short description
2017-12-21 17:27:34 -02:00
claudiulodro
d0bc5964ea
Actually use correct template version
2017-12-21 11:25:22 -08:00
claudiulodro
59a174985b
Use correct template version and phpcs
2017-12-21 11:20:30 -08:00
claudiulodro
2d88654a0a
Always use contrasting color for links
2017-12-21 11:14:14 -08:00
Mike Jolley
e9105bd37d
Fix tests
2017-12-21 19:00:55 +00:00
claudiulodro
90dd9179ac
Remove duplicate unautop
2017-12-21 10:43:02 -08:00
Claudiu Lodromanean
c4e5556368
Merge pull request #18262 from woocommerce/fix/18100
...
Format prices while exporting products
2017-12-21 10:39:49 -08:00
Matt Miller
4b83514e28
Added actions before and after the scheduled sales initiation and completion
2017-12-21 10:33:08 -08:00
claudiulodro
9dc9fffc3a
Process embed shortcode in short description
2017-12-21 10:19:15 -08:00
Claudio Sanches
f539a77282
Merge pull request #18259 from woocommerce/update/add-package-lock-json
...
Add package-lock.json to the repository
2017-12-21 16:14:07 -02:00
Claudio Sanches
71a1fd319e
Fixed coding standards
2017-12-21 15:53:12 -02:00
Claudio Sanches
c18cc47286
Format prices while exporting products
2017-12-21 15:43:45 -02:00
Rodrigo Primo
8768e1decd
Bump WC version in package.json
2017-12-21 13:26:58 -02:00
Rodrigo Primo
ea0d95abbd
Bump minimum required Node and NPM version to latest stable versions
...
We need to make sure everyone is running Node 8 to avoid package-lock.json related issues for people running Node 6.
2017-12-21 13:23:53 -02:00
Rodrigo Primo
5523747053
Add package-lock.json to the repository
...
As recommended by NPM documentation and to make sure everyone is using the same versions of all dependencies.
https://docs.npmjs.com/files/package-lock.json
2017-12-21 13:18:14 -02:00
claudiulodro
28db1c270a
Use text color for links
2017-12-21 06:35:55 -08:00
Claudiu Lodromanean
4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
...
Add product export row action hook
2017-12-21 06:02:56 -08:00
Shiva Poudel
0ec0ca29a2
Only load session handler class on frontend not during cron
...
Ref: #18193
CC @mikejolley
2017-12-21 10:16:13 +05:45
Luciano Amodio
1b42973b75
Add export ajax query args and filename filter hooks
...
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
claudiulodro
1c8dd6acbb
Proposed fix for api coupon recalculating
2017-12-20 11:37:35 -08:00
Luciano Amodio
865efa3736
Add product export row action hook
...
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter
```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');
// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );
function export_custom_product() {
$args = [
'show_option_all' => 'Custom',
'taxonomy' => 'pa_custom',
'name' => 'custom',
'orderby' => 'name',
'order' => 'ASC',
'selected' => isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
'show_count' => true,
'hide_empty' => true,
'menu_order' => false
];
?>
<tr>
<th scope="row">
<label for="custom">Filter by Custom</label>
</th>
<td>
<?php wp_dropdown_categories($args); ?>
</td>
</tr>
<?php
}
function export_product_query_args($args) {
$args['custom'] = 'default';
if ( ! empty( $_POST['form'] ) ) {
$values = explode('=', $_POST['form']);
if('custom' === $values[0]) {
$args['custom'] = wp_unslash( $values[1] );
}
}
return $args;
}
function handle_custom_query_var( $query, $query_vars ) {
if ( ! empty( $query_vars['custom'] ) ) {
$query['tax_query'][] = array(
'taxonomy' => 'pa_ custom',
'field' => 'id',
'terms' => esc_attr( $query_vars['custom'] )
);
}
return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudiu Lodromanean
59ccb00e49
Merge pull request #18242 from lipemat/fix/date-args-wpcli-wc-product_review
...
Fix --date_created and --date_created_gmt args for wc product_review
2017-12-20 10:07:18 -08:00
Claudio Sanches
8bdc9a6a1d
Fixed coding standards
2017-12-20 15:49:50 -02:00
Claudiu Lodromanean
0c29a301a4
Merge pull request #18243 from iamchetanp/patch-1
...
Remove space before comma in function call
2017-12-20 09:37:20 -08:00
Claudiu Lodromanean
6766ba2549
Merge pull request #18208 from MannyC/master
...
Allow back end to pass adhoc options to the product flexslider
2017-12-20 09:36:29 -08:00
Claudio Sanches
3877c82677
Merge pull request #18237 from alexminza/master
...
Added Moldova states
2017-12-20 15:10:36 -02:00
Claudio Sanches
1cd6fa5fae
Merge pull request #18234 from woocommerce/add/order-item-tests
...
More WC_Order_Item_Product tests
2017-12-20 15:05:42 -02:00
Chetan Prajapati
325cbf443d
Remove space before comma in function call
...
There is PHPCS error about "Remove space before comma in function call". That needs to be removed.
2017-12-20 22:07:48 +05:30