vedanshujain
6f2d64dcb4
Check for max discount to be -ve to prevent overwriting fee.
...
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee.
This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total.
This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total.
2019-09-03 20:45:33 +05:30
Gerhard Potgieter
3685171c52
Merge pull request #23701 from sandrodz/master
...
Consistent register/login submit button css class names
2019-09-03 13:45:56 +02:00
Gerhard Potgieter
1feefe164c
Merge pull request #24552 from woocommerce/renovate/cross-env-5.x
...
Update dependency cross-env to v5.2.1
2019-09-03 13:40:25 +02:00
Renovate Bot
eb7063c363
Update dependency cross-env to v5.2.1
2019-09-03 11:39:34 +00:00
Gerhard Potgieter
25a8a72bd5
Merge pull request #24547 from woocommerce/renovate/eslint-6.x
...
Update dependency eslint to v6.3.0
2019-09-03 13:38:44 +02:00
Claudio Sanches
4a88834daf
Merge pull request #24557 from woocommerce/renovate/husky-3.x
...
Update dependency husky to v3.0.5
2019-09-02 10:38:30 -03:00
itzmekhokan
dcf3d71c79
Fixed issue #24458
2019-09-02 12:40:44 +05:30
Renovate Bot
e276b25f3b
Update dependency husky to v3.0.5
2019-09-01 16:25:33 +00:00
Renovate Bot
363c62bd88
Update dependency eslint to v6.3.0
2019-08-30 20:17:15 +00:00
Claudio Sanches
0ea56e0bab
Fixed coding standards
2019-08-30 14:33:59 -03:00
Claudio Sanches
49af62ba8b
Allow some HTML markup on addons banner
2019-08-30 14:29:08 -03:00
Claudio Sanches
282d6073ff
Fixed add to cart link for simple products on feed
2019-08-30 14:22:28 -03:00
Claudio Sanches
e70b2369bc
Merge pull request #24383 from woocommerce/update/grunt-contributors
...
Update grunt contributors command to take a branch input
2019-08-30 14:11:05 -03:00
Claudio Sanches
0461ac3b5f
Exclude renovate-bot
2019-08-30 14:10:37 -03:00
Rodrigo Primo
1e0ff37d70
Merge pull request #24364 from woocommerce/remove-states-dir
...
Remove deprecated i18n/states directory
2019-08-30 13:47:10 -03:00
Claudio Sanches
e814105728
Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' )
2019-08-30 13:06:50 -03:00
Claudio Sanches
90a7057a88
Updated docblock
2019-08-30 12:46:52 -03:00
Claudio Sanches
2e53447ea3
Applied new method into WC_Payment_Tokens and updated filter name
2019-08-30 12:43:56 -03:00
Claudio Sanches
e9978cfa77
Fixed coding standards
2019-08-30 12:40:50 -03:00
Claudio Sanches
f32da45b7e
Introduced WC_Payment_Tokens::get_token_class
2019-08-30 12:40:13 -03:00
Rodrigo Primo
b1c9243c1e
Merge pull request #24505 from webdados/patch-2
...
wc_mail returning the same as $mailer->send
2019-08-30 10:08:25 -03:00
Rodrigo Primo
e7b8e3ed7b
Fix typo in order note
...
PR #24501 fixed a typo in a order note string. This commit fix the same
problem in another place where the same string is used.
2019-08-30 10:01:55 -03:00
Nikhil Chaudhary
47e3f9bd3b
Update html-admin-page-status-report.php
...
Added the missing post type count section.
2019-08-30 11:46:04 +05:30
itzmekhokan
a21c18ee9c
Fixed coding standards for this comment.
2019-08-30 07:35:17 +05:30
Claudio Sanches
a7cd0c1fff
Fixed incorrect docs URL for failed order emails
2019-08-29 17:31:10 -03:00
Claudio Sanches
df887bccc8
Merge pull request #24518 from pinalj/master
...
Add new hook for add-order-item
2019-08-29 16:48:13 -03:00
Claudio Sanches
9bb72ecf34
Merge pull request #24529 from nikhil-webkul/patch-2
...
Update class-wc-admin-duplicate-product.php
2019-08-29 16:46:42 -03:00
Claudio Sanches
c0edc7b9af
Merge pull request #24486 from woocommerce/renovate/woocommerce-woocommerce-sniffs-0.x
...
Update dependency woocommerce/woocommerce-sniffs to v0.0.7
2019-08-29 16:44:59 -03:00
Claudio Sanches
527a7261bd
Merge pull request #24530 from webdados/master
...
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() so that the woocommerce_get_cart_url is usable
2019-08-29 16:42:36 -03:00
Marco Almeida
231394967b
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:49:43 +01:00
Marco Almeida
1df96da7f8
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:49:11 +01:00
Marco Almeida
238e0f2337
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:47:31 +01:00
Marco Almeida
80c2ecd692
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:46:25 +01:00
Marco Almeida
4800fda66c
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:45:41 +01:00
Marco Almeida
7dc5f0d4c1
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:43:42 +01:00
Pinal
7418ed123f
Hook name changes
...
Updated the hook name as suggested.
2019-08-29 12:42:33 +05:30
Nikhil Chaudhary
f2f0db602b
Update class-wc-admin-duplicate-product.php
...
Add escaping where required.
2019-08-29 12:39:09 +05:30
itzmekhokan
c572d26170
Fixed wordpress coding standard
2019-08-29 10:25:32 +05:30
itzmekhokan
5234b85144
Fixed issue #24430
2019-08-28 22:25:14 +05:30
Claudio Sanches
386e4e6e7a
Merge pull request #24485 from woocommerce/php-7.4
...
Remove call to get_magic_quotes_runtime() as it is deprecated as of PHP 7.4
2019-08-28 12:53:02 -03:00
Claudio Sanches
97082fb47a
Merge pull request #24525 from yash-webkul/patch-23
...
Update mini-cart.php
2019-08-28 12:52:37 -03:00
Claudio Sanches
e545833c0a
Merge pull request #24524 from yash-webkul/patch-22
...
Update html-variation-admin.php
2019-08-28 12:51:58 -03:00
Claudio Sanches
866a48db00
Merge pull request #24523 from yash-webkul/patch-21
...
Update class-wc-admin-addons.php
2019-08-28 12:45:24 -03:00
Claudio Sanches
ec1ba8db9c
Merge pull request #24522 from yash-webkul/patch-20
...
Update html-admin-page-addons.php
2019-08-28 12:45:06 -03:00
Claudio Sanches
0453cca9fd
Merge pull request #24521 from yash-webkul/patch-18
...
Update class-wc-admin-setup-wizard.php
2019-08-28 12:44:29 -03:00
Claudio Sanches
e002a4f798
Merge pull request #24520 from yash-webkul/patch-19
...
Update html-admin-page-shipping-zone-methods.php
2019-08-28 12:44:09 -03:00
Yash Kapoor
09cbc61521
Update mini-cart.php
...
Fixed escaping function for attribute value.
2019-08-28 19:51:21 +05:30
Yash Kapoor
be141f3231
Update html-variation-admin.php
...
Fixed escaping function for attribute value.
2019-08-28 19:43:02 +05:30
Yash Kapoor
84d2fb7df5
Update class-wc-admin-addons.php
...
Fixed escaping function for attribute value.
2019-08-28 19:31:58 +05:30
Yash Kapoor
18208163d6
Update html-admin-page-addons.php
...
Fixed escaping function for attribute value.
2019-08-28 19:26:36 +05:30