Commit Graph

1737 Commits

Author SHA1 Message Date
Nicolae Vartolomei c415d1554c Remove downloadable permissions on permanent order deletion 2015-09-18 16:41:50 +03:00
Mike Jolley a175638032 [2.4] unslash file URL 2015-09-17 16:18:11 +01:00
Claudio Sanches ab921ea82c Merge pull request #9088 from khag7/khag7-patch-1
Filter the array which determines what classes are applied to an order note
2015-09-15 20:01:33 -03:00
Claudio Sanches ebedba7906 Merge pull request #9081 from helgatheviking/filter-admin-order-item-thumbnails
Add `woocommerce_admin_order_item_thumbnail` filter in admin
2015-09-15 19:58:23 -03:00
Claudio Sanches 7e63374aaf Merge pull request #8735 from shivapoudel/backbone-modal
Allow support for variable in backbone modal template in extensions
2015-09-15 19:44:50 -03:00
James Koster 82f8b61418 make it clearer that variation drag/drop only applies to the backend. closes #9104 2015-09-15 17:05:55 +01:00
Mike Jolley 4e063fb069 Merge pull request #8925 from shivapoudel/hidden-meta-boxes
Hides 'custom fields' section by default in product
2015-09-15 16:47:05 +01:00
Mike Jolley cc875d7b94 Merge pull request #8939 from SiR-DanieL/_x
Added some comments on translations
2015-09-15 16:45:39 +01:00
Mike Jolley 96814b992f Show more variations per page 2015-09-14 16:54:58 +01:00
Mike Jolley fc78f85bc6 Merge branch 'pr/9034' 2015-09-14 15:56:38 +01:00
Mike Jolley 53c6bebbd0 Select 1=1 instead of '1' when using get_var
Fixes #9102
2015-09-10 16:49:51 +01:00
Kevin Hagerty 1c6dad110e improved spacing, filter name more conventional, added esc_attr 2015-09-09 10:11:09 -04:00
Mike Jolley 71b8f0ddff Change loops wording
Closes #8818
2015-09-09 11:26:11 +01:00
Mike Jolley a0411e7d8b Apparently allowing full screen fixes wistia notices
Fixes #9052
2015-09-09 11:06:26 +01:00
Kevin Hagerty 849a3598c9 add a filter to the array of the html classes for an order note
allow plugins to hook into the display of order notes to add classes.
2015-09-08 20:11:04 -04:00
Kathy Darling 9571b8827e Add `woocommerce_admin_order_item_thumbnail` filter in `html-order-item.php`. 2015-09-08 13:41:12 -04:00
Mike Jolley 14ee9e2daa Merge pull request #9074 from khag7/khag7-patch-1
fix HTML for the order total column
2015-09-08 10:24:19 +01:00
matttallan bbe11fdd6b Don't try add/remove download permissions if order does not exist 2015-09-08 15:28:38 +10:00
Kevin Hagerty a59b3482e8 fix HTML for the order total column
the HTML generated now uses get_formatted_order_total, same solution used for issue #9047
2015-09-07 17:30:55 -04:00
Florian Ludwig 35655f8544 Fixed all inefficient selector usages
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Mike Jolley 3e0986bce0 Merge pull request #9053 from khag7/khag7-patch-1
Improve order total formatting
2015-09-07 14:43:49 +01:00
Mike Jolley 50e4a68235 Merge pull request #9028 from LeGaS/patch-1
Count only published variations
2015-09-07 14:43:01 +01:00
Mike Jolley 13b85f89a6 Tweak wc_create_page to work with trashed pages...
… and to check post IDs are valid pages with correct post statuses.
Fixes #9061

Closes #9062
Closes #9063
2015-09-07 14:17:22 +01:00
James Koster 4aff861626 responsive orders table in dashboard. closes #8996
Also removes unnecessary tooltip on order row.
2015-09-07 12:35:30 +01:00
Kevin Hagerty 3671bcf39d Improve order total formatting
The function get_formatted_order_total already provides formatted HTML with indication of a prior refund. No need to do that logic and formatting again.
2015-09-05 07:48:24 -04:00
Mike Jolley 991bd96fb6 Redirect 'not right now' to referer 2015-09-04 16:02:44 +01:00
Mike Jolley b111331686 Allow line breaks in non-variation attributes 2015-09-04 14:00:42 +01:00
Florian Ludwig 6f3a221c62 Removed senseless sprintf argument 2015-09-03 22:21:23 +02:00
Florian Ludwig 2b6aecb262 Don't use translated key for name in bulk action checkbox
Otherwise the translation will break the code in
https://github.com/woothemes/woocommerce/blob/master/includes/admin/clas
s-wc-admin-api-keys.php#L122

We shouldn’t use the translated string here in my opinion.
2015-09-03 22:12:55 +02:00
Mike Jolley 889d40b8aa Add data attribute to leave options visible
Closes #9017
2015-09-03 15:38:42 +01:00
Szabolcs Légrádi 6bb0dd864b Do not count trashed product variations 2015-09-02 23:11:28 +02:00
Szabolcs Légrádi 68460063a0 Count only published variations 2015-09-02 22:58:07 +02:00
Mike Jolley dd7c32c22c Added 'false' check in variation admin
@claudiosmweb Closes #8966
2015-09-01 16:35:13 +01:00
Caleb Burks c53248896e Allow for multiple email recipients
Allow multiple emails to be used for the low stock / out of stock email.
2015-09-01 07:11:41 -05:00
Mike Jolley 07237d9a09 Set charset when doing html_entity_decode
@claudiosmweb  Closes #8964
2015-08-31 12:29:36 +01:00
Mike Jolley 7643712a52 Sync after save 2015-08-29 13:45:58 +01:00
Mike Jolley 4849d7d56e Sync stock status during save
Closes #8950
2015-08-26 13:51:51 +01:00
Mike Jolley 1f3e8b984e use empty to check to see if attributes for variations exist
Closes #8959
2015-08-26 12:56:44 +01:00
Nicola Mustone 6f7b534493 missing comma 2015-08-24 17:27:23 +02:00
Nicola Mustone 657728d778 _x for the order details admin page 2015-08-24 17:15:19 +02:00
Mike Jolley 5e984faebc Allow HTML in store notice. 2015-08-24 16:15:16 +01:00
Nicola Mustone beb97b279e _x for refund reports 2015-08-24 17:13:04 +02:00
Mike Jolley 14b0c20bf2 Ensure variable stock status is based only on variations 2015-08-24 15:03:44 +01:00
Mike Jolley 3c7290a765 During updates, only recreate .htaccess if not using redirect download method.
Fixes #8923
2015-08-24 13:50:14 +01:00
Mike Jolley d9e8787198 WC Setup wizard: Fix manual setting of decimal/thousand separator.
Closes #8930
2015-08-24 12:54:09 +01:00
Shiva Poudel 9cf86e8494 Cleanup docblocks 2015-08-22 02:57:03 +05:45
Shiva Poudel 4018ca4ed3 Tweak - Hide default Custom Fields Meta-Boxes, Closes #8924 2015-08-22 02:52:05 +05:45
Mike Jolley 04a68ad925 Add spinner/loading indication between onboarding steps
Closes #8816
2015-08-21 19:12:36 +01:00
Mike Jolley 393bb012c1 Tweak gateway wording
@mjepson
2015-08-21 19:01:21 +01:00
Mike Jolley 87534d683b Update tweets!
@MarinaWoo
2015-08-21 18:57:14 +01:00
Mike Jolley 714cd8dc9a Merge branch 'pr/8901' 2015-08-21 15:32:11 +01:00
Mike Jolley 574c0b2936 Update wording 2015-08-21 15:25:03 +01:00
Mike Jolley 296d9a8850 Merge pull request #8915 from shivapoudel/fix-site-icon
WC Setup wizard and site icon
2015-08-21 14:09:40 +01:00
Mike Jolley 2d8b3f0c1f menu_order notices on IIS. 2015-08-21 14:08:32 +01:00
Shiva Poudel 7cd88cfa30 Fixed - WC Setup wizard site icon display on WP 4.3 2015-08-21 13:31:10 +05:45
Claudio Sanches 1c348ebc27 Merge pull request #8904 from woothemes/wizard-language-download
Wizard language download, closes #8895
2015-08-20 12:16:01 -03:00
Claudio Sanches d81cea3ab6 Properly escape WC_Admin_Setup_Wizard::get_next_step_link() 2015-08-20 12:15:12 -03:00
Mike Jolley 0f40e8cdf7 Language install prompt 2015-08-20 16:03:29 +01:00
Tor Morten Jensen f6b7ab97b1 Adds tooltips to explain 'tax class' and 'tax status' in product admin. Addresses #8817 2015-08-20 14:33:25 +02:00
JeroenSormani c25cc886ae Add tiptip dependency to wc-admin-meta-boxes 2015-08-20 13:46:52 +02:00
Mike Jolley 24c7f56b03 move attribute code above selector 2015-08-20 10:52:59 +01:00
Lucas Stark 00be9b1324 Update class-wc-admin-settings.php
Reset the $value to array when processing image_width.  Strange bug if the value is a string and the array is not explicitly created.
2015-08-19 13:39:38 -04:00
Claudio Sanches 186257fcd1 Removed the forced redirect 2015-08-19 12:43:13 -03:00
Claudio Sanches aa8e469a9d Download translations in setup wizard 2015-08-19 12:36:59 -03:00
Mike Jolley ac90660f7d Add expand/close links for attributes and match variation UI
Closes #8875
2015-08-19 14:00:26 +01:00
Mike Jolley 57bb0ebe25 Record manual order status change 2015-08-18 16:33:38 +01:00
Mike Jolley c6d6a6b439 Merge pull request #8866 from woothemes/fix/pinking-shears
Pinking Shears.
2015-08-18 14:36:52 +01:00
Mike Jolley dc37e49c02 Suppress set_time_limit errors to prevent issues in some environments
“Warning: Cannot set max_execution_time above master value of 30 (tried
to set unlimited) in
/var/www/web1043/html/wordpress/wp-content/plugins/woocommerce/includes/
class-wc-download-handler.php on line 337</p>”
2015-08-18 13:16:25 +01:00
George Stephanis ffd2b2de30 Pinking Shears. 2015-08-17 17:35:10 -04:00
George Stephanis 81804d8d3b Don't show the `pre` displaying the changes by default. 2015-08-14 11:07:35 -04:00
George Stephanis 2aa1650f54 Rearrange things to get ajax working.
Spread them out throughout WooCommerce.
2015-08-13 17:49:59 -04:00
George Stephanis ec287f116f Add ajax submission processing.
Not quite finished yet, as the add_action isn’t catching.
2015-08-13 16:57:54 -04:00
George Stephanis 2d097a8f4c Minified version of new js file. 2015-08-13 14:29:01 -04:00
George Stephanis 3a87b98ba6 Rewrite onAddNewRow for Backbone models. 2015-08-13 14:10:47 -04:00
George Stephanis b4bd433342 Update the unsaved message to give better data. 2015-08-13 11:58:09 -04:00
Nicola Mustone 51c4599b59 replacing deprecated functions 2015-08-13 17:49:25 +02:00
Mike Jolley 7552704e75 double encode attributes 2015-08-13 12:16:08 +01:00
Mike Jolley a545a3aa02 wp_json_encode is 4.1 + 2015-08-13 12:07:12 +01:00
Claudio Sanches 275849b5da [2.4] Fixe order by user and sorting by total, closes #8803 2015-08-13 00:33:56 -03:00
George Stephanis e10064d0fe Revert back to passing in array values. We can indexBy in JS 2015-08-12 17:17:39 -04:00
George Stephanis f77b77e335 New template for empty set. 2015-08-12 15:29:17 -04:00
George Stephanis 220550621a Populate the search field value attribute 2015-08-12 14:38:25 -04:00
George Stephanis 3ee43646ae Pass in the current page's base url to js for appending. 2015-08-12 14:18:49 -04:00
George Stephanis 4aedda5eb8 Indent the template file properly. 2015-08-12 13:52:04 -04:00
George Stephanis 56218b0824 Add in a notification for unsaved changes. 2015-08-12 12:59:13 -04:00
George Stephanis 8dc2126718 Update the tablenav so the gotos are never out of range. 2015-08-12 12:59:12 -04:00
George Stephanis 837931f99a Check for truthiness.
This avoids silliness where `’0’` evaluates to true.  Just parse it as
an int and evaluate that.
2015-08-12 12:59:11 -04:00
George Stephanis 2a0951e4e5 Add more data attributes to the rows and fields. 2015-08-12 12:59:11 -04:00
George Stephanis 1a066ebbe0 Swap to associative array for model. 2015-08-12 12:59:11 -04:00
George Stephanis ce7cb1f65d Add a `beforeunload` event to prompt before leaving with unsaved changes. 2015-08-12 12:59:10 -04:00
George Stephanis c6e3a577c0 Set backbone and underscore as script dependencies. 2015-08-12 12:59:10 -04:00
George Stephanis 8a416f105b Should be comparing to `'1'` not `1`. 2015-08-12 12:59:10 -04:00
George Stephanis ddba588987 Migrate the logic and queries out of the template file.
Move them where they belong, in the class that calls it.
2015-08-12 12:59:09 -04:00
George Stephanis 5f4cbf78d0 Remove the legacy pagination. 2015-08-12 12:59:09 -04:00
George Stephanis 4df13e6ffb Don't set them for unexistent rates. 2015-08-12 12:59:09 -04:00
George Stephanis 7bebbaff9e Pagination now works by first, prev, next, last.
Still need to get number based pagination working.
2015-08-12 12:59:09 -04:00
George Stephanis cf59aec17d Add in and populate pagination template.
The buttons don’t actually do anything yet, but it outputs accurately
and inherits core styles.
2015-08-12 12:59:09 -04:00
George Stephanis be4c7db8bd Pass rates in as an array, not an associative array, so it's an Array in js. 2015-08-12 12:59:08 -04:00
George Stephanis c9a1ba2f39 A default placeholder to show until the rendering code replaces it. 2015-08-12 12:59:08 -04:00
George Stephanis 536402c183 Insert placeholder divs for search and pagination. 2015-08-12 12:59:07 -04:00