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
Mike Jolley
bfa599ef0b
More friendly/less blunt "no shipping" messages.
...
Closes #5276
2014-04-07 10:48:48 +01:00
Brent Shepherd
c7e6a779cb
Add wc_cart_totals_taxes_total_html()
...
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
2014-03-20 17:54:42 -07:00
Mike Jolley
54a7c11dd3
Use protocol relative URLs in the cart widget because it gets cached and can display on https or http pages Closes #5135
2014-03-17 10:53:54 +00:00
Mike Jolley
256b1e011c
Tweak shipping language Closes #5030
2014-03-04 12:39:39 +00:00
Patrick Rauland
f3d1f5aa7d
correcting cart template class names
2014-02-24 16:42:40 -06:00
Mike Jolley
3ab6acc495
wc_cart_totals_coupon_label function and filter to override coupon labels
2014-02-21 15:16:47 +00:00
Nathan
c1f7706d44
Added the type attribute to the coupon input on the cart page
2014-02-20 09:22:55 -05:00
splashingpixels
e85a7d2352
added filter for empty cart return to shop link
2014-02-18 22:28:19 -08:00
James Koster
a078b942e7
removed a ↓ closes #4598
2014-01-31 15:31:35 +00:00
claudiosmweb
1d332b67dd
added extra class to cart item data, fixes #4600
2014-01-30 19:02:52 -02:00
splashingpixels
454b97080a
coding standards fixes
2014-01-22 20:36:24 -08:00
splashingpixels
b16d5195c8
coding standards fixes
2014-01-14 21:53:37 -08:00
splashingpixels
6f5bcb8d1b
added coupon text for clarity
2014-01-14 21:13:47 -08:00
Mike Jolley
956de3ce53
Merge pull request #4483 from daverogers/master
...
Add coupon code placeholder to cart template
2014-01-10 05:11:46 -08:00
justinstern
e131804d7a
Notice fix and Checkout Shipping Method classes
...
Fixes an admin notice. Adds a single class to the checkout shipping
method elements for convenience in collecting all of them via CSS
selector
2013-12-29 04:31:44 -05:00
Mike Jolley
690c5f7842
Resolve permalink issues Fixes #4400
2013-12-24 13:57:07 +00:00
Dave Rogers
b42f49c581
Add coupon code placeholder to cart template
2013-12-18 00:00:11 -08:00
Roy Ho
2dcd0149db
missing ending semicolons on wp_nonce_field()
2013-12-07 10:49:53 -08:00
Mike Jolley
e0779b0f06
Global templates make more sense than shop templates, and re-use quantity inputs for cart and single products Closes #4210
2013-11-28 17:23:45 +00:00
Coen Jacobs
4afbd0b556
Merge branch 'function-call-refactor'
...
Conflicts:
includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
includes/shortcodes/class-wc-shortcode-cart.php
includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00