Claudio Sanches
f23a529329
[REST API] Throw messages when trying to manipulate variations in products endpoint
2016-11-08 13:55:33 -02:00
Claudio Sanches
e1b914d227
Reverted changes that allowed manipulate variations on products endpoint ( #12255 )
2016-11-08 11:14:01 +00:00
Justin Shreve
52aedb5fc4
Remove context param on set_props
2016-11-08 02:28:00 -08:00
Justin Shreve
c7fdb061c3
Implement get/set proxy code.
2016-11-08 02:16:16 -08:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08:00
Rami Yushuvaev
9469673c05
a11y: remove unneeded `title` attributes
2016-11-04 17:40:15 +02:00
Rami Yushuvaev
6cc301e58c
add translators comments
2016-10-29 13:16:03 +03:00
Claudio Sanches
ad349ad89c
Restored context for From: price string
2016-10-25 15:04:59 -02:00
Rami Yushuvaev
f27499b501
i18n Improvements ( #12078 )
...
* use %s in translations strings
* merge simmilar error strings
* i18n: use sprintf() in translation strings to make them easier to understand for translators
* i18n: remove sprintf() function from translation string with unused parameter
* i18n: move colons and brackets into the translation strings
* revert comit addaa5d
* Fix broken sprintf()
* i18n: move colons into the translation strings on error messages
* Fix Travis-CI Error: operator must be surrounded by a single space
2016-10-24 08:33:32 +01:00
Rami Yushuvaev
4375618438
i18n context functions ( #12156 )
...
* Replace some context function with translation comments
* Remove two more context function
* Replace another context function with translation comments
2016-10-24 08:31:07 +01:00
Claudio Sanches
842c39b525
Make easy to add query_meta
2016-10-14 11:15:11 +01:00
Manos Psychogyiopoulos
4658245625
Revise the stock + stock status saving logic ( #11858 )
...
* use set_stock to reset stock meta when not managing stock
Ensures that the 'woocommerce_{ variation | product }_set_stock' hooks fire to refllect the fact that stock becomes infinite.
* track state of Manage Stock? option
* quick/bulk edit fixes
* reapply quick and bulk edit fixes
* improve conditional reset logic that prevents actions from *_set_stock actions from firing with every save
2016-10-12 12:51:40 +01:00
Mike Jolley
705dc18991
Merge branch 'pr/12064'
2016-10-12 11:54:40 +01:00
Mike Jolley
e6d4729453
Code standards
2016-10-12 11:54:21 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Lucas Stark
3e11e168cd
Only display price meta when price is not empty
2016-10-11 09:15:45 -04:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Justin Shreve
c1d7111240
Implement separate variation endpoints for managing a product's variations. Also adds tests.
2016-09-29 14:44:14 -07:00
Mike Jolley
f9b2ed88c2
Merge branch 'pr/11883'
...
# Conflicts:
# includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley
e7fb89be5f
Protocol relative images
...
Closes #11884
2016-09-12 13:03:44 +01:00
Aristeides Stathopoulos
831b4463d0
Merge pull request #5 from woothemes/master
...
sync
2016-09-09 16:49:48 +03:00
Justin Shreve
c8ddca0635
Merge pull request #11882 from woothemes/settings-and-api-fixes
...
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos
7a509f53d4
Merge pull request #4 from woothemes/master
...
sync
2016-09-09 03:17:28 +03:00
Justin Shreve
a36b25a68f
Add setting validation to the REST API
2016-09-08 15:20:15 -07:00
Justin Shreve
9889222bd1
Swap "doesn't" with "does not" in 404 error messages.
2016-09-08 15:17:02 -07:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Job
ff9c553b1b
coding standards
2016-09-07 13:34:37 +02:00
Job
ffa2c4dec2
crucial update
2016-09-07 13:25:34 +02:00
Job
d086cf3248
update function
2016-09-07 13:12:18 +02:00
Job
50fe611cdb
again small update after review
2016-09-07 13:01:55 +02:00
Job
a0274e9dc5
small update
2016-09-07 12:47:24 +02:00
Job
d0aaf68f27
Update UX for disabled taxes
...
If taxes are disabled in the “General settings tab”, then the “Tax” tab
disappears, and the suffix can no longer be edited, but is still
displayed in the store
This fix makes sure that the suffix is only displayed if taxes are
enabled
2016-09-07 12:38:38 +02:00
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
cf59524dd7
Fix order total race condition in CRUD
2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos
39d4d4bd69
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
8fe4cd65a4
PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket
2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
402d0ff077
Merge branch 'master' into pr/11797
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Mike Jolley
d9a0d0988b
Handle meta data and fix unit tests
2016-08-31 15:43:34 +01:00
Justin Shreve
de4296dd15
Add some missing API pieces:
...
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
9543c7fe1c
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00