Fredrik Forsmo
da2e0ac950
Add missing phpdoc param tags to all WC_Meta_Box_* classes
2016-01-04 22:31:36 +01:00
Mike Jolley
0b678ab2af
Tweak save logic to set _price for variables/groups via sync functions only
...
Closes #9892
2015-12-23 13:08:45 +00:00
Mike Jolley
4b87b0fbdc
[2.4] Fix SKU slash madness
...
Fixes #9721
2015-12-02 11:22:11 +00:00
Mike Jolley
28dcb9ddbc
Tweak how sale and regular prices are handled
...
Prevents issue with PHP 5.6 and Suhosin sending NULL values. Fixes #9698
2015-11-25 18:40:49 +00:00
Florian Ludwig
1d87c0c827
Bugfix: Used wrong date format for database
2015-11-20 18:09:47 +01:00
Florian Ludwig
787ebb0ef5
Bugfix: use "post_modified" instead of "post_date"; Moved modified_date update to woocommerce_update_product_variation code path
...
We should only set „post_modified“ if we are updating the variation
2015-11-20 18:00:10 +01:00
Florian Ludwig
477da091db
Bump modified date of variation on update
2015-11-20 16:26:33 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
efa19f799d
Fixed some coding standards for docblocks
2015-11-03 10:28:01 -02:00
Claudio Sanches
b85ae9056c
Rename wc_add_help_tip() function to wc_help_tip()
2015-10-23 13:09:08 -02:00
Claudio Sanches
2e95a68357
Use new "question" mark icon font
...
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]
We'll keep the old image and styles in order to maintain backwards
compatibility
Closes #9381
2015-10-23 01:40:52 -02:00
Claudio Sanches
1ea5b8433f
Escape normalized for the woocommerce_variation_option_name filter
2015-10-18 10:42:44 -06:00
Mike Jolley
f1c6b3628a
Pass mimes when checking file type
...
#9207
2015-10-06 15:01:41 +01:00
Mike Jolley
7b751dc622
Clean post cache after variation update
...
Closes #9173
2015-10-01 16:48:41 +02:00
Mike Jolley
a175638032
[2.4] unslash file URL
2015-09-17 16:18:11 +01:00
Mike Jolley
96814b992f
Show more variations per page
2015-09-14 16:54:58 +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
b111331686
Allow line breaks in non-variation attributes
2015-09-04 14:00:42 +01: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
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
Mike Jolley
14b0c20bf2
Ensure variable stock status is based only on variations
2015-08-24 15:03:44 +01:00
Mike Jolley
574c0b2936
Update wording
2015-08-21 15:25:03 +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
Mike Jolley
24c7f56b03
move attribute code above selector
2015-08-20 10:52:59 +01:00
Mike Jolley
ac90660f7d
Add expand/close links for attributes and match variation UI
...
Closes #8875
2015-08-19 14:00:26 +01:00
George Stephanis
ffd2b2de30
Pinking Shears.
2015-08-17 17:35:10 -04:00
Mike Jolley
7552704e75
double encode attributes
2015-08-13 12:16:08 +01:00
George Stephanis
c938fa24da
More missing esc_attr calls, :(
2015-08-05 15:17:52 -04:00
George Stephanis
95e6b84fbb
Make sure we esc_attr translation results
...
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
Mike Jolley
b0ee9a8cc6
Handle text vs select attribute names vs slugs
2015-07-29 10:58:28 +01:00
Claudio Sanches
b0ce578541
Show errors for admin ajax variations
2015-07-27 14:16:52 -03:00
Mike Jolley
8d6858bb80
Sanitize not needed
2015-07-27 16:43:05 +01:00
Mike Jolley
2ea6a2efab
Merge branch 'pr/8607'
2015-07-27 13:17:27 +01:00
Brent Shepherd
c8405d3d29
Remove deprecated comments and commented out code
...
Because WC_Meta_Box_Product_Data::save_variations() doesn't need to be
deprecated.
2015-07-23 22:24:07 -07:00
Brent Shepherd
4100204344
Match the two save_variations()
...
Specifically, match WC_Meta_Box_Product_Data::save_variations() to the newer,
almost identical, WC_Ajax::save_variations(), added in SHA: ae18af8c
(so that
we can eventually replace the newer WC_Ajax::save_variations().
2015-07-23 22:12:31 -07:00
Claudio Sanches
0eac4914df
[2.3] Fix check for relative downloadable product path, closes #8612
2015-07-20 13:56:28 -03:00
Claudio Sanches
791c20ae51
Added param for exclude posts from wc-product-search, closes #8613
2015-07-20 13:41:14 -03:00
Manos Psychogyiopoulos
18a7c6b7fb
back-compat with text-based attributes: defaults don't work in WC2.4
2015-07-18 12:34:41 +03:00
Josh Koberstein
38856b29c4
Correcting indentation
2015-07-16 16:02:33 -07:00
Josh Koberstein
922715791c
Passing array of term ids to wp_set_object_terms instead of term names.
2015-07-16 15:31:14 -07:00
Claudio Sanches
0806a66fc5
Fixed Grouping select, stop select if do not have parent_post and allow clear the selection, closes #8586
2015-07-16 12:51:38 -03:00
Mike Jolley
0f7342a70d
Fix grouped product label
2015-07-15 13:33:45 +01:00
Mike Jolley
015ace770d
Split up bulk edit ajax methods
2015-07-14 11:39:48 +01:00
Claudio Sanches
9e4dc64f55
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-10 20:17:27 -03:00
Claudio Sanches
b8a28bdab4
Admin variations - Cancel button reset the default form values
...
@mikejolley
2015-07-10 20:16:35 -03:00
Mike Jolley
86e0aa106e
bulk_edit
2015-07-11 00:05:13 +01:00
Mike Jolley
3ec4003bbb
Move add variation button and toolbars
2015-07-11 00:04:16 +01:00
Claudio Sanches
987a789367
Admin variations - Show link all variations bulk action
2015-07-10 00:49:52 -03:00
Claudio Sanches
a64695b7f5
Admin variations - Added new triggers and removed data-product_id
2015-07-09 17:31:48 -03:00
Mike Jolley
fedfa53754
expand/close
2015-07-08 23:46:19 +01:00
Mike Jolley
a219243e60
Move link all variations to bulk actions
2015-07-08 23:34:21 +01:00
Claudio Sanches
042a6644e2
Ajaxify grouped product option, closes #7751
2015-07-08 18:38:17 -03:00
Claudio Sanches
0a820f055f
Admin variations - Add cancel changes button #6995
2015-07-08 16:10:45 -03:00
Claudio Sanches
064af9a54c
Admin variations - Split the save button from the link/add buttons #6995
2015-07-08 15:53:00 -03:00
Claudio Sanches
843a55a6b5
Admin ajax variations
2015-07-07 20:53:36 -03:00
Claudio Sanches
4f3fb07dc9
Added new styles for variable pagenav
2015-07-07 19:06:51 -03:00
Claudio Sanches
de01133142
Save only updated/edited variations and fixed the variations sync and product cache/transients
2015-07-06 19:07:01 -03:00
Claudio Sanches
af0b786104
Improved relative path check #8503
2015-07-06 15:02:15 -03:00
Claudio Sanches
e888294caa
[2.3] Fixed download URL for relative paths, closes #8503
2015-07-06 15:00:04 -03:00
Claudio Sanches
ae18af8cc7
Added method to save variations via ajax
2015-07-06 01:50:20 -03:00
Claudio Sanches
2dc0ef3f86
Added method to set the pagenav fields when add and remove variations
2015-07-06 01:09:36 -03:00
Claudio Sanches
c3b5ad2337
Refactored the link all variations, remove variation and add variation methods
2015-07-05 23:55:08 -03:00
Claudio Sanches
ee437bb646
Improved the navigation and tested if variations have some edition
2015-07-05 22:31:56 -03:00
Claudio Sanches
3de8405cc9
Created variations ajax pagination
2015-07-05 22:00:38 -03:00
Claudio Sanches
b16b026647
Load initial variations when click on variations tab
2015-07-05 20:19:45 -03:00
Claudio Sanches
3d59933d6b
Created initial methods to load variations by ajax
2015-07-02 17:42:22 -03:00
Justin Shreve
8ae228f535
Do a less than or equals to check in meta-box-product-data in the case of $date_from being exactly the current time.
2015-06-17 12:18:57 +00:00
Justin Shreve
e1130005a5
When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty.
2015-06-16 20:00:16 +00:00
Justin Shreve
5d8b17bd6f
Update the help text to mention that we expect already encoded URLs.
2015-06-16 15:48:05 +00:00
Mike Jolley
f8151f416c
Merge branch 'text-attribute-handling'
2015-06-16 15:11:58 +01:00
Mike Jolley
622b11ae9f
Add version check to prevent pre-2.4 logic kicking in when not needed
...
@claudiosmweb
2015-06-16 15:10:53 +01:00
Mike Jolley
75b01c5201
[2.3] woocommerce_downloadable_file_allowed_mime_types filter
...
#8362
2015-06-15 15:37:34 +01:00
Mike Jolley
753a22734f
Prevent Manage stock being forced on
...
Closes #8336
2015-06-12 11:22:54 +01:00
Mike Jolley
12396f4296
Attempted bw compat by comparing sanitised text to real text
2015-06-11 15:42:18 +01:00
Mike Jolley
89f7e15052
Save full version of text based attributes when dealing with variations
2015-06-11 14:43:02 +01:00
Mike Jolley
922ca47cc1
[2.3] woocommerce_downloadable_file_exists filter
2015-06-09 15:27:28 +01:00
Mike Jolley
eb4b9a7cd1
Merge pull request #8304 from krautnerds/quick-fix-variation-admin-stock-display
...
Quick fix stock display for product variations
2015-06-09 12:24:55 +01:00
Claudio Sanches
0b861d6587
Fixed filetype check for digital downloads, closes #8316
...
@mikejolley
2015-06-07 22:39:32 -03:00
Florian Ludwig
2b4e19d0b4
Quick fix stock display for product variations
...
This fixes bug #8302 in a very ugly way (in my opinion)
2015-06-05 19:22:32 +02:00
Mike Jolley
a4c2a73050
Max array keys
2015-06-05 13:37:45 +01:00
Mike Jolley
1505424469
Define allowed_file_types
...
#13
2015-06-01 13:37:43 +01:00
Mike Jolley
527311d553
Validate file types when saving products. Closes #13
...
Handles 3 possible types of file;
1. Relative path on server
2. Absolute URL
3. Shortcodes
URLs without extensions are not validated.
2015-06-01 13:37:39 +01:00
roykho
54b0a0ca54
changed dynamic variation description to allow limited HTML and some sanitized tweaks
2015-05-28 14:31:45 -07:00
Mike Jolley
e51eae80c6
Merge pull request #8167 from roykho/dynamic-variation-description
...
Dynamic variation description
2015-05-28 15:53:03 +01:00
Mike Jolley
c01bc43369
Adjust #8165 to deal with 0
2015-05-19 12:53:03 -04:00
Mike Jolley
a08b2e5968
Loop over all posted attributes by referencing max posted key
...
Closes #8165
2015-05-19 12:46:32 -04:00
roykho
b812b2fd94
add dynamic variation description feature
2015-05-14 10:56:26 -07:00
Nicola Mustone
85fd634861
fix scrutinizer issues
2015-04-01 15:33:56 +02:00
Claudio Sanches
931679bc82
Fixed the _wc_file_urls sanitization
2015-03-23 11:43:34 -03:00
Claudio Sanches
f058d43556
Allowed paths for file url, closes #7746
2015-03-17 14:20:51 -03:00
Remi Corson
fd80f61609
fix variable product docs URL
2015-03-13 17:51:50 +01:00
Claudio Sanches
37882756d3
Fixed HTML entities for up-sells and cross-sells fields, closes #7553
2015-02-25 10:27:53 -03:00
pjv
1cdc3174ca
fix BadMethodCallException
...
receiving lines like this in the php error log:
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function get_formatted_name() on a non-object (boolean)' in /var/www/example.com/htdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:484\nStack trace:\n#0 /var/www/example.com/htdocs/wp-admin/includes/template.php(1044): WC_Meta_Box_Product_Data::output()\n#1 /var/www/example.com/htdocs/wp-admin/edit-form-advanced.php(600): do_meta_boxes()\n#2 /var/www/example.com/htdocs/wp-admin/post.php(209): include()\n#3 {main}
The error resulted in a WSOD when trying to edit some products.
2015-02-22 09:01:37 -07:00
Mike Jolley
2a90208f93
Cross/up-sells should not search variations.
...
Closes #7502
2015-02-20 12:12:03 +00:00
Mike Jolley
82ac0fc11e
Detect shortcodes when saving URLs.
...
Fixes #7474
2015-02-19 11:05:04 +00:00