Commit Graph

12458 Commits

Author SHA1 Message Date
Rami Yushuvaev ff289f3bf4 i18n: Avoid using HTML tags in translation strings
This PR moves the `<code>` HTML tags from the translation strings.

It also moves the server variables outside of the translation string, because translators can accidentally translate it wrong.
2017-08-23 16:22:52 +03:00
Mike Jolley 714c4c672e unused prop 2017-08-23 14:21:42 +01:00
Mike Jolley be042ee8f3 Set to amount before calc 2017-08-23 12:24:33 +01:00
Mike Jolley 804feb9333 Store fee amount and prevent totals going negative 2017-08-23 12:15:06 +01:00
Mike Jolley d9e455b9c6 Merge branch 'master' into update/apply-fees 2017-08-23 11:26:13 +01:00
Mike Jolley f18a146d0f Prompt to apply fee in admin 2017-08-23 11:22:18 +01:00
Mike Jolley 22813663d7 Merge pull request #16569 from woocommerce/update/fees-api-class
WC_Cart_fees and negative fee calculations
2017-08-23 10:59:19 +01:00
Mike Jolley b3e92869f9 Imported non-published variations should be private, not draft
Fixes #16577
2017-08-23 10:45:18 +01:00
Frédéric Demarle 04b6e80065 Add action woocommerce_product_import_before_import 2017-08-23 09:37:41 +02:00
Claudiu Lodromanean 95130b2403 Merge pull request #16574 from woocommerce/feature/16554
Allow import/export product position (menu_order)
2017-08-22 14:13:52 -07:00
Claudiu Lodromanean bdba4f7636 Merge pull request #16572 from woocommerce/fix/16559
Introduces woocommerce_get_product_id_by_sku filter
2017-08-22 13:31:45 -07:00
Claudio Sanches 7ad0dd55f9 Allow import 'menu_order' 2017-08-22 17:22:39 -03:00
Claudio Sanches 0b3811bd11 Change Position key from 'position' to 'menu_order' 2017-08-22 16:46:09 -03:00
Claudio Sanches af23ad42d7 Included "position" (menu_order) to exported products 2017-08-22 16:33:19 -03:00
Claudio Sanches 02a7f4d5ab Merge pull request #16561 from woocommerce/fix/16557
API v1 should create v1 webhooks
2017-08-22 15:19:16 -03:00
Claudio Sanches 03a189726e Introduces woocommerce_get_product_id_by_sku filter
Closes #16559
2017-08-22 15:04:21 -03:00
Claudiu Lodromanean 6c2a944b74 Merge pull request #16570 from woocommerce/fix/16568
Add product to cart on each iteration for BW compat.
2017-08-22 09:31:21 -07:00
Claudiu Lodromanean 8a9a51643e Merge pull request #16563 from woocommerce/fix/16560
Prevent regular price being lower than the sale price
2017-08-22 09:08:09 -07:00
Mike Jolley 559982fbe7 Unused variable 2017-08-22 17:02:48 +01:00
Mike Jolley 56c0c1e259 remove old set 2017-08-22 16:41:03 +01:00
Mike Jolley a70e9bbf9b Add product to cart on each iteration for BW compat.
Closes #16568
2017-08-22 16:39:51 +01:00
Mike Jolley c41fb8f00c docblock 2017-08-22 16:31:45 +01:00
Mike Jolley 8dbd9b88a7 Admin calc 2017-08-22 16:26:35 +01:00
Mike Jolley 00cb48a5fe Pass through to order 2017-08-22 16:20:23 +01:00
Mike Jolley 367f08d79f Negative fee logic for cart 2017-08-22 16:12:37 +01:00
Mike Jolley 57865204aa Cart fees class and legacy 2017-08-22 15:17:58 +01:00
Mike Jolley 0bad6b3e52 add_db_table_prefix method for 5.2 support 2017-08-22 13:51:50 +01:00
Mike Jolley 56f2dc6005 Merge pull request #16562 from Umangvaghela/Update-condition
Update condition
2017-08-22 11:45:46 +01:00
Mike Jolley fb2d8cb394 Prevent regular price being lower than the sale price
Closes #16560
2017-08-22 11:43:48 +01:00
Umangvaghela 5794a9cb34 Update condition 2017-08-22 15:23:34 +05:30
Mike Jolley 2a5a47016f API v1 should create v1 webhooks
Fixes #16557
2017-08-22 10:40:35 +01:00
Gregory Karpinsky 73b20bfece Update class-wc-admin-settings.php
Typo: visbility --> visibility
2017-08-21 22:00:23 -04:00
Mike Jolley d68291b3ac Merge pull request #16086 from woocommerce/improvement/versions
Extensions version check.
2017-08-21 18:18:04 +01:00
Mike Jolley 9ee732d68c Text 2017-08-21 18:11:47 +01:00
Claudio Sanches e0e0092f9a Merge pull request #16549 from woocommerce/fix/16547
Handle isset for legacy props, and adjust free shipping logic
2017-08-21 12:38:08 -03:00
Claudio Sanches 37352b60c4 Merge pull request #16546 from woocommerce/fix/16539
Improve email directory writable checking
2017-08-21 12:36:17 -03:00
Claudio Sanches 1cfdaaa108 Merge pull request #16548 from woocommerce/fix/16524
Swap to text input for tax rate %, and format as decimal.
2017-08-21 12:32:53 -03:00
Claudio Sanches 237d5b646a Merge pull request #16544 from woocommerce/fix/16537
If auth cannot occur, don't send request.
2017-08-21 12:31:46 -03:00
Mike Jolley 95fe91e622 Tweak version code 2017-08-21 16:04:06 +01:00
Mike Jolley b20ef5dcac Styling 2017-08-21 15:53:08 +01:00
Mike Jolley 5c271af844 Handle isset for legacy props, and adjust free shipping logic
Closes #16547
2017-08-21 13:01:20 +01:00
Mike Jolley 95cc51ae5c Swap to text input for tax rate %, and format as decimal.
Closes #16524
2017-08-21 12:49:23 +01:00
Mike Jolley 6ee0ef1ee8 Copy update for c6ca8a6024 2017-08-21 12:38:14 +01:00
Mike Jolley 3886987346 Merge pull request #16543 from mihaigrigori/master
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:57:16 +01:00
Mike Jolley c6ca8a6024 Update copy with plugins page link
Closes #16496
2017-08-21 11:53:34 +01:00
Mike Jolley 05dc9d3c0f Improve email directory writable checking
Closes #16539
2017-08-21 11:32:21 +01:00
Mike Jolley bf2ca1f3d3 If auth cannot occur, don't send request.
Fixes #16537
2017-08-21 10:49:00 +01:00
Mihai Grigori f6a6cef1d9 \WC_Legacy_Cart::get_cart_for_session must return a value 2017-08-21 11:58:29 +03:00
rspublishing 9ed2f7544f Updated XAF and XOF denominators 2017-08-20 21:48:18 +02:00
Claudio Sanches 56b8829f46 Merge pull request #16530 from woocommerce/fix/query_names
Rename filters to be unique
2017-08-18 14:33:58 -03:00
claudiulodro 4ed359d336 Rename filters to be unique 2017-08-18 10:25:21 -07:00
Mike Jolley 0dc1754b91 Merge branch 'master' into update/store-owner-newsletter
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-08-18 18:21:55 +01:00
Mike Jolley fcef2c7f71 Copy update 2017-08-18 18:21:23 +01:00
Claudio Sanches b93a95423f Use wc_strtolower() to format coupon code
Improves #16519
2017-08-18 14:11:33 -03:00
Mike Jolley 36f5827bc0 Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Claudiu Lodromanean 07d5e2e7ca Merge pull request #16525 from woocommerce/update/tax-class-setter
Only set valid tax classes in product abstract
2017-08-18 09:27:03 -07:00
Mike Jolley db62f4c567 Merge pull request #16526 from JPry/bug/docblocks
Update some docblocks with proper parameters
2017-08-18 17:24:43 +01:00
Claudio Sanches 105388e9b2 Merge pull request #16527 from woocommerce/fix/importer-att
Fix importer fatal error
2017-08-18 13:23:40 -03:00
Mike Jolley 3d002f842f Fix get totals method 2017-08-18 17:18:41 +01:00
Jeremy Pry 2d4b7356df Update some docblocks with proper parameters 2017-08-18 12:18:19 -04:00
claudiulodro 24e9f80f1a wc_get_attribute_taxonomies returns objects 2017-08-18 09:17:04 -07:00
Mike Jolley d9f9e74bd9 Only set valid tax classes in product abstract 2017-08-18 17:06:22 +01:00
Claudiu Lodromanean b0f190fa1d Merge pull request #16517 from woocommerce/integrate-cart-sessions-class
Integrate cart sessions, getters and setters
2017-08-18 08:41:57 -07:00
Mike Jolley 313a797f23 Merge branch 'master' into integrate-cart-sessions-class 2017-08-18 16:37:25 +01:00
Mike Jolley 4567169aa9 Fix remove from cart 2017-08-18 16:37:24 +01:00
Claudiu Lodromanean 4d715d7f54 Merge pull request #16509 from woocommerce/cart-sessions-class
Added WC_Cart_Session class
2017-08-18 08:30:36 -07:00
Claudiu Lodromanean a4d3518a61 Merge pull request #16508 from woocommerce/remove-manual-discounts
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Claudiu Lodromanean 4b23d5c5ba Merge pull request #16523 from woocommerce/fix/16481
Change password label
2017-08-18 08:29:10 -07:00
Claudiu Lodromanean db8ee8d306 Merge pull request #16519 from woocommerce/fix/16497
Format coupon code with mb_strtolower
2017-08-18 08:28:40 -07:00
Mike Jolley 97f9a4037a Change password label 2017-08-18 16:18:49 +01:00
Mike Jolley f957546cc4 Format coupon code with mb_strtolower
Fixes #16497
2017-08-18 15:43:34 +01:00
Mike Jolley 1f692ffb64 Merge pull request #16485 from Korkey128k/master
Wrapped 'Delete selected row(s)' button in condition
2017-08-18 15:38:14 +01:00
Mike Jolley c22fb01903 Merge pull request #16516 from Umangvaghela/issue-16515
update Yoda condition
2017-08-18 15:06:44 +01:00
Mike Jolley 1c8ad67a9e Fix tests and tax merges 2017-08-18 15:05:01 +01:00
Mike Jolley b854c1775c Tests 2017-08-18 13:53:22 +01:00
Mike Jolley 302512e51f Combine taxes correctly 2017-08-18 13:48:53 +01:00
Umangvaghela b994ea69ca update Yoda condition 2017-08-18 17:58:58 +05:30
Mike Jolley a2858245fe Remove call - it's hooked 2017-08-18 12:52:29 +01:00
Mike Jolley d2e3839d99 Use getters and setters in cart class 2017-08-18 12:51:45 +01:00
Mike Jolley a190dc79c3 Legacy getters/setters 2017-08-18 12:24:17 +01:00
Mike Jolley b34b7bf850 Merge pull request #16512 from Umangvaghela/issue-16511
Yoda condition is missing in class-wc-ajax.php
2017-08-18 12:08:06 +01:00
Mike Jolley b9fea8419b getters and setters for totals 2017-08-18 12:05:18 +01:00
Umangvaghela 5e8723b99e Set Yoda condition 2017-08-18 16:26:21 +05:30
Mike Jolley 0c751087f9 Cast to arrays 2017-08-18 11:44:07 +01:00
Mike Jolley aefb9c4705 Moved magic method to legacy 2017-08-18 11:37:22 +01:00
Mike Jolley c0368362ce First pass 2017-08-18 11:29:26 +01:00
Mike Jolley a9a93436fc rename ajax method 2017-08-18 10:59:55 +01:00
Mike Jolley 1d95593131 Localise message 2017-08-18 10:58:11 +01:00
Mike Jolley a55716eed4 WC_Cart_Session 2017-08-18 10:54:41 +01:00
Mike Jolley e99471c0cd Removed manual discounts code 2017-08-18 10:36:10 +01:00
Claudio Sanches 909c3f6c8f Fixed extra "!" and ")" on #16489 2017-08-17 19:05:46 -03:00
Claudio Sanches 3fb17f23e7 Merge pull request #16478 from ramiy/patch-1
i18n: Rewrite the translation string logic
2017-08-17 13:59:37 -03:00
Alex James Bishop d4a02819a7 Add filter to woocommerce_order_again_button to match WC_Form_Handler->order_again
This commit adds the `woocommerce_valid_order_statuses_for_order_again` filter to the conditional check
before displaying the order-again button.

The purpose is to enable consistency when altering the valid order again statuses - in the past a dev would
need to use this filter to let the order through the form handler, and then override the template file for a really
trivial reason just to get the button to display.
2017-08-17 11:31:06 +09:30
Corey Smith a6cf08d8cf Wrapped 'Delete selected row(s)' button in condition 2017-08-16 11:56:30 -05:00
Claudiu Lodromanean 5ff7704db4 Merge pull request #16476 from woocommerce/fix/16455
Fix breadcrumbs for regular categories
2017-08-16 08:49:01 -07:00
Rami Yushuvaev 4ae42313ce i18n: Rewrite the translation string logic
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.

A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
ragulka d73e7e4f9d Prevent unwanted double cart notices (#16460)
* Don't add shipping zone debug message when doing ajax

Prevent an issue where the "Customer matched zone" debug message is shown twice after first selecting a shipping method and then changing a product's quantity in cart and clicking Update cart.

* Don't pass event object to cart.update_cart

Prevent accidentally preserving cart notices when `wc_update_cart` event is triggered on body. If the event object is passed to update_cart() as the first param, it evaluates to true, forcing existing notices to be preserved.

* Pass custom arguments to cart.update_cart()

Instead of simply not passing the event object, pass any custom arguments, so it's possible to do something like: $( body ).trigger( 'wc_update_cart', true ); to still preserve notices if needed.
2017-08-16 11:34:35 +01:00
Mike Jolley 201b3bc056 Merge pull request #16466 from woocommerce/fix/rounding
Fix discounts rounding issues
2017-08-16 11:28:09 +01:00
Mike Jolley 38ab37597c Merge pull request #16467 from ramiy/patch-1
i18n: Simpler translation string with placeholders
2017-08-16 11:26:06 +01:00
Mike Jolley 34ae983cc9 Merge pull request #16470 from ramiy/patch-4
i18n: Simpler translation string with placeholders
2017-08-16 11:25:48 +01:00