Alexander Minza
2307febfa1
Fixed Moldova states
2017-12-30 14:34:12 +02: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
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
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
Jason Kytros
a21ada68cd
Fix coupon 'Excluded Categories' restriction evaluation
2017-12-22 11:21:47 +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
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
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
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
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
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
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
lipemat
c4cb7d146a
support --date_created and --date_created_gmt via wp-cli wc product_review create
2017-12-20 09:54:42 -05:00
Alexander Minza
fca5ef8dd8
Added Moldova states
2017-12-19 23:44:25 +02:00
Claudiu Lodromanean
5349ffbb47
Merge pull request #18233 from woocommerce/fix/18232
...
Fixed file log dates and implement better date formatting
2017-12-19 11:53:06 -08:00
Claudio Sanches
068418124e
Merge pull request #18203 from AdamQuadmon/wc-exporter-limit-filter
...
Add WC Product CSV Exporter limit filter
2017-12-19 15:42:38 -02:00
Claudio Sanches
f40f3291f8
Fixed file log dates and implement better date formatting
...
Closes #18232
2017-12-19 15:38:50 -02:00
Luciano Amodio
bec2e939b4
change filter name
2017-12-19 18:25:16 +01:00
Luciano Amodio
8983b38598
change filter name and position `woocommerce_product_export_get_limit`
2017-12-19 17:18:55 +01:00
Luciano Amodio
f383886fb5
fix not needed double quotes
2017-12-19 14:51:23 +01:00
Luciano Amodio
4d267c0dbb
Rename exporter filter to `woocommerce_product_export_init`
...
moving it in the abstract constructor and let it be more generic now is possible to do:
```
add_filter( 'woocommerce_product_export_init', function ( $exporter ) {
if( 'product' === $exporter->export_type ) {
$exporter->set_limit(100);
}
});
2017-12-19 13:50:37 +01:00
Fulvio Notarstefano
e718d7bd40
[ #18223 ] Rename var to a more apt name
2017-12-19 17:19:10 +08:00
Fulvio Notarstefano
ee123fb739
[ #18223 ] Add argument to woocommerce_product_related_posts_query filter
2017-12-19 10:18:33 +08:00
Claudiu Lodromanean
e898623668
Merge pull request #18174 from woocommerce/fix/18170
...
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-18 11:13:44 -08:00
Claudiu Lodromanean
b494e45865
Merge pull request #18193 from woocommerce/fix/16940
...
Do not load SESSION class during CRON events
2017-12-18 10:47:07 -08:00
Claudiu Lodromanean
aa85dd03d6
Merge pull request #18214 from WPprodigy/fix-duplicate-checkout-ids
...
Prevent duplicate IDs on checkout page
2017-12-18 08:49:40 -08:00
Mike Jolley
6fd3d9c100
Compare the date modified when loading session data.
2017-12-18 16:43:18 +00:00
Claudiu Lodromanean
052fbc73c6
Merge pull request #18212 from WPprodigy/hide-add-coupon
...
Only show 'Apply coupon' in admin if coupons are enabled
2017-12-18 08:41:12 -08:00
Claudio Sanches
d2404a9e63
Fixed chmod
2017-12-18 14:12:53 -02:00
Shiva Poudel
0432b58182
Remove unwanted transient then were not set
2017-12-18 20:03:08 +05:45
Caleb Burks
82c5975b37
Prevent duplicate IDs on checkout page
2017-12-17 22:43:51 -06:00
Caleb Burks
0d9e55d2ec
Hide Apply coupon in admin if coupons are disabled
2017-12-17 22:21:08 -06:00
Luciano Amodio
27dd962be7
Add WC Product CSV Exporter limit filter
...
with tons of products is nice to have an way to change the limit for the exporter (now is set to 50)
'''php
function wc_exporter_set_limit($limit) {
return 1000;
}
add_filter( 'woocommerce_product_export_product_default_limit', 'wc_exporter_set_limit');
'''
2017-12-16 13:49:21 +01:00
Claudiu Lodromanean
906efe1ffc
Merge pull request #18189 from woocommerce/fix/17897
...
Add getter for tax_display_cart variable, with filter
2017-12-15 08:44:43 -08:00
Mike Jolley
1901493eee
Should be pulic.
2017-12-15 15:18:17 +00:00
Mike Jolley
4eaf1afb88
Cleanup session callback.
2017-12-15 15:14:05 +00:00
Mike Jolley
df04d0c4a2
phpcs
2017-12-15 15:13:48 +00:00
Mike Jolley
15089fc432
Added init method and phpcs changes.
2017-12-15 15:13:24 +00:00
Mike Jolley
b84f9fa112
A session should not be generated on cron requests.
2017-12-15 15:13:06 +00:00
Mike Jolley
01871fd2c8
Add getter for tax_display_cart variable, with filter
2017-12-15 13:39:35 +00:00
Mike Jolley
47b39caf83
phpcs
2017-12-15 13:19:23 +00:00
Mike Jolley
ea8681280a
Only get ID when it's not empty so 0 and '' is ignored
2017-12-15 12:59:54 +00:00
Mike Jolley
fd2c676837
Merge pull request #18184 from woocommerce/fix/18182-storefront-wizard-notice
...
Storefront in wizard for non WC themes and default themes
2017-12-15 12:51:19 +00:00
Gerhard Potgieter
4ba9af1c2f
Change WC::is_active_theme into a global function wc_is_active_theme. Clean up the conditional checks to read better.
2017-12-15 14:32:54 +02:00
Mike Jolley
7c029d18e9
Merge pull request #18186 from woocommerce/fix/no-strict-array-select-settings
...
Option value comparison when saving select settings
2017-12-15 12:18:26 +00:00
Gerhard Potgieter
89d21a50a4
Convert allowed options to string values for comparison, html options have no data type distiction.
2017-12-15 13:39:05 +02:00
Gerhard Potgieter
30398a65f1
Do not use strict comparison when doing in_array on select settings as wp_unslash on the raw_value will return a string that fails comparison with int values.
2017-12-15 13:21:01 +02:00
Mike Jolley
d14d3afc2e
Merge pull request #18162 from WPprodigy/downloads-logging-enhancements
...
[3.3] New download logging reports enhancements
2017-12-15 11:09:21 +00:00
Caleb Burks
5130740aca
Escaping
2017-12-15 04:26:22 -06:00
Gerhard Potgieter
2907725e5c
Display storefront theme in wizard when theme does not support woocommerce, or a default theme.
...
Closes #18182
2017-12-15 10:23:31 +02:00
Claudiu Lodromanean
204a990976
Merge pull request #18173 from woocommerce/fix/18168
...
Add ID orderby fallback for when prices are the same across multiple products.
2017-12-14 09:16:37 -08:00
Claudiu Lodromanean
5bf6ff0d48
Merge pull request #18172 from woocommerce/fix/18164-includes
...
Only show includes text when there are taxes
2017-12-14 09:14:38 -08:00
Claudiu Lodromanean
9cfc587d2e
Merge pull request #18160 from WPprodigy/hide-stock-status-on-variations
...
[3.3] Hide variation stock status setting conditionally
2017-12-14 09:05:01 -08:00
Mike Jolley
e3b61f6203
Merge pull request #18151 from woocommerce/fix/18149
...
Save offline gateways in wizard
2017-12-14 16:45:20 +00:00
Mike Jolley
9bf677d48d
Merge pull request #18143 from woocommerce/fix/18142
...
Fix order of functions in wc_get_post_data_by_key
2017-12-14 16:42:21 +00:00
Mike Jolley
1555507756
Merge pull request #18123 from woocommerce/update/setup-wizard-omit-paypal-standard
...
Setup wizard: Omit PayPal Standard unless plugins cannot be installed
2017-12-14 16:42:03 +00:00
Mike Jolley
5ed3c9e37e
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-14 15:21:49 +00:00
Mike Jolley
a1f5e2be95
Merge pull request #18163 from woocommerce/fix/plugin-override-warnings
...
Fix warning for plugins that override this method with the specified …
2017-12-14 14:48:39 +00:00
Boro Sitnikovski
59c1aa0928
Add since tag
2017-12-14 15:43:35 +01:00
Boro Sitnikovski
080ece9588
Change method name
2017-12-14 15:37:42 +01:00
Mike Jolley
1df3af081c
Add ID orderby fallback for when prices are the same across multiple products.
2017-12-14 14:17:20 +00:00
Mike Jolley
a6594d6880
Only show includes text when there are taxes
2017-12-14 14:04:20 +00:00
Mike Jolley
bfe7b835a3
Merge pull request #18157 from WPprodigy/customizer-string-updates
...
[3.3] Customizer string updates
2017-12-14 13:00:09 +00:00
Mike Jolley
3204e39a90
Merge pull request #18156 from WPprodigy/fix-18155-image-cropping
...
[3.3] Use correct image options in customizer settings
2017-12-14 12:56:52 +00:00
Shiva Poudel
3353505be5
Tweak - Duplicate relevance orderby for catalog
2017-12-14 15:37:12 +05:45
Boro Sitnikovski
e1b753122e
Deprecate the function as a whole
2017-12-14 10:23:51 +01:00
Boro Sitnikovski
e061cb122c
Fix warning for plugins that override this method with the specified parameter
2017-12-14 10:09:25 +01:00
Caleb Burks
b8e208269e
Adjust download reporting active filters display
2017-12-14 00:13:53 -06:00
Caleb Burks
76a2e5fe87
Capitalization fix
2017-12-13 23:59:20 -06:00
Caleb Burks
cb154b5d40
Add button for copying DL link
2017-12-13 23:57:47 -06:00
Caleb Burks
345376bc20
Add customer download report section
2017-12-13 23:29:12 -06:00
Caleb Burks
c7f5ee97db
Hide variation stock status setting conditionally
2017-12-13 22:38:03 -06:00
Caleb Burks
fdd6e8be15
Update image descriptions
2017-12-13 21:22:38 -06:00
Caleb Burks
ca0a921dbf
Change Product Grid to Product Catalog
2017-12-13 21:04:52 -06:00
Caleb Burks
75dd3f1abf
Update some text strings for clarity
2017-12-13 21:01:40 -06:00
Caleb Burks
1b64314e35
‘Show subcategories’ is the better text to use
2017-12-13 20:49:47 -06:00
Caleb Burks
6902e2517b
Update correct image options
2017-12-13 20:41:53 -06:00
claudiulodro
cf86647de3
Save offline gateways in wizard
2017-12-13 13:38:33 -08:00
Beka Rice
f0a33bfa79
[WC 3.3] Fix fatal if gateway is deactivated
2017-12-13 13:59:07 -05:00
claudiulodro
5aab643146
Fix parens
2017-12-13 09:56:01 -08:00
claudiulodro
2a17ad9a2b
Flip arguments to prevent errors when key doesn't exist
2017-12-13 09:54:35 -08:00
Claudiu Lodromanean
1296d6e087
Merge pull request #18141 from woocommerce/helper-connect-prompt
...
Helper: Prompt connection to WooCommerce.com for updates/support
2017-12-13 09:43:41 -08:00