Claudio Sanches
f08ad38f12
Added fixes suggested by WP CodeSniffer #11954
2016-09-20 22:24:03 -03:00
matheusgimenez
6ddd09098b
change echo __() to _e() on cart/proceed-to-checkout.php
2016-09-20 21:38:25 -03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +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
047242515d
Make API and CRUD use consistent keys and make use of data
2016-08-30 17:50:35 +01:00
Aristeides Stathopoulos
2101dae5a0
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen
2016-08-27 07:35:04 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
4a23c41ab2
Hook in woocommerce_widget_shopping_cart_buttons for greater flexibility
2016-07-28 15:06:55 +01:00
Chunkford
1586dfc0bd
Update mini-cart.php
2016-07-25 14:15:44 +01:00
Chunkford
eaf528ce92
Update mini-cart.php - New Hook
...
Adding the ability to add content before the mini cart contents but with the <ul> element
2016-07-23 18:10:20 +01:00
Claudio Sanches
14eeee15ee
Welcome to docs.woocommerce.com
2016-07-19 07:30:31 -03:00
Claudio Sanches
dc941aab59
Merge pull request #11470 from corsonr/internationalization_fix
...
Internationalization fix : dots should be part of the translatable string
2016-07-19 07:27:37 -03:00
corsonr
6a7242821b
fixes the dots
2016-07-19 11:44:22 +02:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
6e94df6ee5
must be > 0 to exist
2016-05-13 17:57:50 +01:00
Mike Jolley
668d3fa517
Only show return to shop link if shop page is set
2016-05-13 15:51:37 +01:00
Mike Jolley
3aa07c08e3
woocommerce_cart_item_permalink filter
...
Closes #10690
2016-04-15 15:44:52 +01:00
Justin Shreve
ffc80ccd15
Start updating some usage, and start implementing the actual CRUD functions, and some new get/setters for username, email, etc.
2016-03-17 09:41:12 -07:00
Mike Jolley
726728071b
[2.5] Hide shipping row when calculator is disabled, and shipping costs are hidden
...
Fixes #10519
2016-03-10 12:26:52 +00:00
Mike Jolley
eefbc053c9
escape data-title
...
Fixes #10490
2016-03-08 13:41:34 +00:00
Mike Jolley
a778c0b234
Give loops names, and set class outside of template files
...
Closes #10028
2016-02-12 13:32:58 +00:00
Mike Jolley
bd4c90dbec
Docblocks
...
Fixes #10336
2016-02-12 11:28:44 +00:00
Mike Jolley
a2fbfec5bf
[2.5] Show user country rather than base country in "estimated for" messages
...
#10148
2016-01-25 10:16:39 +00:00
sergeyrozenblat
31948045f8
Removed extra space
...
Removed extra space from 'a href' tag which in some cases may influence proper styling of elements
2016-01-25 00:03:55 +06:00
Mike Jolley
90d472a0fe
set $method
2015-12-17 10:15:58 +00:00
roykho
0825b5001e
Fix undefined variable when there is only one available method
2015-12-16 18:23:56 -08:00
Mike Jolley
8aec02f625
Remove shipping select box option, tidy up logic and add filters from #9797
...
closes #9797
2015-12-16 13:00:16 +00:00
mitogh
f902b1fc8e
Break large lines into more manable and indent lines
2015-11-20 20:46:55 -06:00
mitogh
d4c3710994
Separate HTML from PHP for easier update of the button template
2015-11-20 20:45:19 -06:00
roykho
9078e30ea4
Fix acronym zip to be all capitals fixes #9641
2015-11-18 15:32:23 -08:00
Mike Jolley
e94c2b86ca
Remove shipping/tax estimation notice and show in context when needed.
...
Avoids needing complex logic for something which could easily be typed
onto the page by store owner if needed.
Also adjusts line height and padding in cart collaterals
Closes #9578
2015-11-16 15:59:47 +00:00
mitogh
f8f70f294a
Update strict comparission and update to Yoda condition
...
In order to follow one of the best practices from the Wordpress
handbook:
- https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#yoda-conditions
2015-11-14 20:35:29 -06:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
James Koster
2b05a493f6
Makes the order payment table responsive. #9015
2015-11-02 13:59:07 +00:00
James Koster
c114489d5b
Responsive cart and cart totals tables. #9015
2015-11-02 13:59:07 +00:00
Claudio Sanches
0ff88deb98
Improved wc_coupons_enabled() name and description
2015-10-29 17:23:10 -02:00
Claudio Sanches
e61b162355
Escaped urls in templates/cart/mini-cart.php when mini cart is empty
2015-10-28 15:58:40 -02:00
Claudio Sanches
3ab4e76cd0
Replaed old WC_Cart methods to the new functions
2015-10-28 15:56:31 -02:00
Claudio Sanches
ddc6baf07d
Use curly bracket when don't have any HTML around
...
Ref: #9411
2015-10-22 14:43:34 -02:00
JeroenSormani
ebb65c23ff
Filter the shipping name in the totals table
2015-10-22 18:22:03 +02:00
Mike Jolley
da8cae596b
Simplify cart shipping template + text
...
Also prevents calculate shipping showing multiple times when multiple
packages are present.
@jameskoster @claudiosmweb
2015-10-13 15:41:21 -06:00
James Koster
a2ab735cda
add `data-title` attribute to cart table. #9015
2015-10-08 16:56:04 +01:00
Caleb Burks
ee2757c08f
Specific template override paths
2015-10-03 02:58:08 -05:00
Claudio Sanches
3a536ac8b7
Sanitize shipping method label/title, closes #9159
2015-10-01 17:17:45 +02:00
Mike Jolley
de4a80f950
Add disclaimer to template files
...
Closes #8942
2015-10-01 16:07:35 +02:00
Claudio Sanches
0c82d431df
Fixed method returning value in write context
2015-08-20 14:20:20 -03:00
JeroenSormani
922226e280
Show the right 'no shipping availalbe' message when a country doesn't have a state.
2015-08-18 07:37:46 +02: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
George Stephanis
c7ee929325
Partial _e() => esc_attr_e() changeover.
...
There’s a lot of them, so I’m breaking them into multiple commits.
This is safeguarding stuff in case some translation uses a double
quote, it will no longer risk breaking out of the attribute.
2015-08-05 14:10:09 -04:00
Claudio Sanches
c63faa76a8
Escape proceed-to-checkout-button.php template
2015-07-10 16:42:33 -03:00
Mike Jolley
45d89438c7
Ensure cart item key is set
2015-07-04 15:25:08 +01:00
Justin Shreve
48a89c83c3
For the remove links (in both the dedicated cart page and the mini cart widget), add ID and SKU as data attributes.
2015-06-30 19:56:36 +00:00
Mike Jolley
049c95e724
Filter all item data
...
Closes #8361
2015-06-30 13:40:32 +01:00
Claudio Sanches
80e8bd94ad
Escape return to shop url
2015-06-19 17:29:37 -03:00
Ben Bidner
c8dd2b6268
fixes usage of void return value from `wc_cart_totals_taxes_total_html()`
2015-06-01 12:54:07 +01:00
Claudio Sanches
b2a612dba2
[2.3] Revert some changes from a65616c
2015-05-29 12:27:38 -03:00
James Koster
8c1e452514
proceed to checkout button template. closes #7507
2015-05-28 11:48:37 +01:00
Mike Jolley
5920b88d5d
Add classes to tax and shipping labels/notices
...
Closes #8189
2015-05-27 16:17:36 +01:00
Claudio Sanches
b06428a63a
Updated some templates versions to 2.4.0
2015-05-21 14:26:15 -03:00
Claudio Sanches
e559452c28
[2.3] Escape product titles, closes #8197
2015-05-21 14:20:37 -03:00
Mike Jolley
0b58a840e2
Merge pull request #8168 from Nikker/master
...
Added method to check if cart is empty
2015-05-19 11:41:48 -04:00
Mike Jolley
0dcadc668e
Hide tax totals based on wc_tax_enabled()
2015-05-15 14:04:13 +01:00
Nikki DelRosso
940c2369b0
Added method to check if cart is empty
2015-05-14 14:18:53 -07:00
James Koster
11313fe229
[2.3] template version
2015-04-17 14:30:30 +01:00
Benedict
5fc10ad757
Update cart.php
...
In the `woocommerce_cart_item_quantity` filter the `$cart_item_key` is useless without the `$cart_item`, which is included in all the other relevant filters in this file. NB. Added here as last argument so not to break existing code.
2015-04-16 15:11:30 +02:00
Mike Jolley
f9d1da2081
Merge pull request #7854 from franticpsyx/mini_cart_item_class
...
Filterable mini cart item class for consistency with cart/order templates
2015-04-13 10:54:35 +01:00
James Koster
aad06e7f1c
[2.3] cart totals hooked into action
2015-04-09 15:15:37 +01:00
Manos Psychogyiopoulos
96208eac73
mini cart item class
2015-03-31 11:40:26 +03:00
Mike Jolley
3b547c4218
sanitize coupon class names
...
Closes #7802
2015-03-27 15:38:57 +00:00
James Koster
4372fdbad4
tweak message styles in cart totals table
2015-03-10 17:02:54 +00:00
Mike Jolley
8554796c4b
Show calculate total when shipping is needed, but shipping is hidden.
...
Closes #7650
2015-03-10 16:57:43 +00:00
Mike Jolley
0ed3ce9023
Revert "Merge remote-tracking branch 'origin/shipping-costs'"
...
This reverts commit acc239cd1c
, reversing
changes made to b0e0bdcfad
.
2015-03-10 16:43:02 +00:00
Mike Jolley
acc239cd1c
Merge remote-tracking branch 'origin/shipping-costs'
2015-03-10 16:33:55 +00:00
James Koster
c9fff65365
shipping costs. #7650
2015-03-06 13:23:18 +00:00
Mike Jolley
66e6366be0
Shipping calculator - Made state/postcode respect country locale like checkout.
...
Fixes #7637
2015-03-06 12:37:21 +00:00
Mike Jolley
7c279f278b
Add space after item name
2015-02-26 11:59:50 +00:00
Mike Jolley
b75034ae38
Tweak language based on feedback in #7462
...
Closes #7462
2015-02-19 10:45:20 +00:00
Paul Wilde
c913316f8b
Introduce wc_get_page_permalink.
2015-02-15 19:13:22 +00:00
Mike Jolley
d2040eca4d
When updating shipping in cart, keep shipping calculator in DOM.
2015-02-11 23:25:31 +00:00
Michael Tieso
4750b68c01
Remove "any"
...
Sorry for the second PR. "any" is unnecessary.
Also corrected version number.
2015-02-02 20:54:20 -08:00
Michael Tieso
b4a83c471f
Fix grammer issue
...
doesn't= singular
don't= plural
2015-02-02 20:41:08 -08:00
Claudio Sanches
88d5997cda
Moved the "cart notes" before the "proceed to checkout" button, closes #6935
2014-12-19 10:12:31 -02:00
Claudio Sanches
7450828304
Show the shipping calculator only in cart page
2014-12-10 15:40:18 -02:00
James Koster
ddc856880a
shipping calculator. #6412
2014-12-09 16:20:43 +00:00
Mike Jolley
eba8206540
Merge branch 'tax-coupon-handling' Closes #6830
...
Conflicts:
assets/js/admin/meta-boxes-order.min.js
includes/api/class-wc-api-coupons.php
includes/class-wc-cart.php
templates/checkout/review-order.php
2014-12-03 12:33:15 +00:00
Mike Jolley
3415b5d7c0
In the cart, add variation selected data to the permalink.
...
Closes #6060
2014-11-27 15:04:24 +00:00
Mike Jolley
c3fb83d443
Append query string when removing item from cart to bust cache
...
Closes #6544
2014-11-26 10:56:51 +00:00
Mike Jolley
549d7ab2c0
Removed 'apply before tax' options for coupons - this should be the default core behaviour
2014-11-24 17:24:25 +00:00
claudiosmweb
5cb26c7ae4
Added remove link in cart widget #6754
2014-11-14 10:24:51 -02:00
James Koster
ef28c43862
move proceed to checkout button. closes #5496
2014-10-06 12:33:39 +01:00
shivapoudel
fbf0314bb6
Absolute path should have curly braces - part 1
2014-09-22 22:16:03 +05:45
claudiosmweb
063d1eb349
fixed the access permissions
2014-09-01 12:44:51 -03:00
Geert De Deckere
24d588544b
Removed unused global $woocommerce variable from the templates
...
The WC() function is to be used since v2.1
2014-08-17 22:29:51 +02:00
Andrew Benbow
2fcda12ea1
Update mini-cart.php
...
$_product->is_visible()
2014-06-22 13:39:10 +01:00
claudiosmweb
80f44d2d1a
defined a min value to cart quantity input
2014-05-06 21:49:30 -03:00
Mike Jolley
8c4f7dc8d1
Reverse calculator check Closes #5323
2014-04-23 14:30:45 +01:00