Commit Graph

1535 Commits

Author SHA1 Message Date
Mike Jolley f4791be088 Merge branch 'pr/10432' 2016-03-30 17:10:01 +01:00
Mike Jolley 84d3fe2d82 wc_format_localized_decimal on dimensions 2016-03-30 13:19:01 +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
James Koster 42ed4e0301 adds info class to 'no saved methods' notice in the account section. 2016-03-16 19:05:00 +00:00
Mike Jolley ee0798047e Merge branch 'wc-get-orders-10500' 2016-03-14 16:09:01 +00: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 2e0f151039 Merge branch 'master' into wc-get-orders-10500
# Conflicts:
#	includes/wc-order-functions.php
#	includes/wc-template-functions.php
#	templates/myaccount/my-orders.php
#	templates/myaccount/orders.php
2016-03-09 16:23:01 +00:00
Mike Jolley cc97de2315 Revert "Implement wc_get_orders() function"
This reverts commit 5075d4bab3.
2016-03-09 16:16:22 +00:00
Mike Jolley d3f98dce03 More advanced customer filter
#10500
2016-03-09 14:50:34 +00:00
Mike Jolley 5075d4bab3 Implement wc_get_orders() function
#10500
2016-03-09 13:25:42 +00:00
Nicola Mustone c7756187e0 Added bool param for email order items hooks 2016-03-09 12:55:28 +01:00
Mike Jolley 054252ec24 Remove full stop after username
Closes #10511
2016-03-09 11:04:33 +00:00
Mike Jolley eefbc053c9 escape data-title
Fixes #10490
2016-03-08 13:41:34 +00:00
James Koster b26941309c Adds `required` attribute to required rating fields. closes #10339
Also changes the email input type to `email`.

Unfortunately wp core adds `novalidate` to the opening form tag and I
can’t see an easy way to change that, so this won’t do anything for
now. cc @mikejolley
2016-03-07 16:14:01 +00:00
James Koster 850134fc20 Makes the review template easier to customise without forcing a template override. #10339
* Adds `woocommerce_review_before`,
`woocommerce_review_before_comment_meta`, `woocommerce_review_meta` and
`woocommerce_review_comment_text` actions.
* Adds `woocommerce_review_display_gravatar()`,
`woocommerce_review_display_rating()`,
`woocommerce_review_display_meta()` and
`woocommerce_review_display_comment_text()` template functions.
* Adds template files for review rating and meta.
2016-03-07 15:33:47 +00:00
Justin Shreve cb68f41ed0 Fix up based on Mike's feedback:
* Made CVC field form-row-last
* Make CC & EC methods abstract
* Change label on add new payment method button
* remove groupings in account settings
2016-03-04 04:32:38 -08:00
Justin Shreve e3d7e206d0 Create a function for getting correctly formatted credit card type labels (MasterCard, American Express, etc) 2016-03-01 11:49:42 -08:00
Justin Shreve 31bae0c19e Hook up the tokenization API to the "add payment method" button in my account settings. 2016-03-01 11:49:41 -08:00
Justin Shreve 9db1f65196 Hook up the payment token API to the my account > payment methods tab 2016-03-01 11:49:41 -08:00
Jon Koops bc097553c6 Add order_schema_markup action to output Schema markup for order emails. 2016-03-01 13:02:56 +01:00
Mike Jolley 14e03038e3 Show customer details for logged in users only.
Possibly for [2.5] after confirming with @claudiosmweb and
@justinshreve.

#10433
2016-02-29 12:43:19 +00:00
Mike Jolley d916eb5118 Merge branch 'pr/10423' 2016-02-26 14:36:59 +00:00
Mike Jolley e9ff396348 Only add when using intval for stock amounts 2016-02-26 14:36:53 +00:00
Mike Jolley e4932415c9 Improved tracking template 2016-02-26 14:25:06 +00:00
Jon Koops 111b72c159 Add attributes to quantity input to show numeric keyboard on mobile devices.
This commit adds both a `pattern` attribute to restrict user's input to numerical characters, and the forwards compatible `inputmode` attribute to hint at the keyboard layout to use. These attributes combined make sure that the numerical keyboard shows instead of the normal keyboard on most mobile devices (tested on the latest versions of Android and iOS).

Possible Caveats:
- Due to the nature of the numeric keyboard on iOS it is impossible to add a decimal point.

Further Reading:
https://stackoverflow.com/questions/6178556/iphone-numeric-keyboard-for-text-input
https://www.smashingmagazine.com/2015/05/form-inputs-browser-support-issue/
http://danielfriesen.name/blog/2013/09/19/input-type-number-and-ios-numeric-keypad/
2016-02-25 17:48:06 +01:00
Mike Jolley c3282bfe42 Remove unused case 2016-02-17 11:21:44 +00:00
Dan - Lucian Ștefancu 9176861959 Result count for languages with multiple plurals
There are languages with two or more plural forms.

For example in Romanian plural forms can be defined like this:
`Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);`

 `_n()` and `_nx()` can handle all those special cases for results count texts.

This fix will not add any extra strings in the i18n package, just allows for better translations.
2016-02-16 21:37:18 +02:00
Claudio Sanches 50d087b9ba Do not render payment methods yet, waiting for Payment Token API 2016-02-16 14:36:52 -02:00
Claudio Sanches c60722f65c Updated header text of my account templates 2016-02-16 14:11:50 -02:00
Claudio Sanches 3d41a7d544 New actions for account downloads template 2016-02-16 13:57:46 -02:00
Claudio Sanches bcc9dd4658 Introduces new actions for account orders 2016-02-16 13:57:46 -02:00
Claudio Sanches ad16a26af5 Deprecated my-downloads 2016-02-16 13:57:46 -02:00
Claudio Sanches 2de00c61ff Added account endpoint for customer payment methods 2016-02-16 13:57:46 -02:00
Claudio Sanches daf2f92a8c Added dashboard menu item and created function to get menu item classes 2016-02-16 13:50:06 -02:00
Claudio Sanches d193caa987 Better pagination for account > orders 2016-02-16 13:50:06 -02:00
Claudio Sanches 36c0b6047a Less "my" and more "ours" 2016-02-16 13:50:06 -02:00
Claudio Sanches 564f882fee Fixed typos 2016-02-16 13:50:06 -02:00
Claudio Sanches 3a3380e4ab Created account downloads endpoint 2016-02-16 13:50:06 -02:00
Claudio Sanches 08048b6d1c Added better links for orders pagination 2016-02-16 13:50:06 -02:00
Claudio Sanches 489000a3c2 Improved variables in myaccount/orders.php template 2016-02-16 13:50:06 -02:00
Claudio Sanches 02e3c6362d Created my account > orders template 2016-02-16 13:50:06 -02:00
Claudio Sanches 42454179b6 Deprecated my-account actions and added new dashboard action 2016-02-16 13:50:06 -02:00
Claudio Sanches 211c379af6 My account initial navigation 2016-02-16 13:50:06 -02: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 fab8a871aa Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/admin/class-wc-admin-assets.php
2016-02-10 14:12:39 +00:00
Mike Jolley cae1fe6b85 Refactors/improvements to layered nav to support slugs
#7806
2016-02-09 14:41:17 +00:00
Mike Jolley 971f6a3dee Added email for on-hold orders.
Closes #9792
2016-02-08 13:20:19 +00:00
djenggoat 7d3e4b1778 mismatch end tag wrapper for twentysixteen
mismatch end tag wrapper end for WordPress twentysixteen templates/global/wrapper-end.php
2016-02-06 20:12:05 +08:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley 54260cf7a4 Merge pull request #10248 from tivnet/patch-5
Suggestion: before and after actions on terms.php
2016-02-05 12:23:28 +00:00
Claudio Sanches 563a557909 [2.5] Removed extra tab from plain email shipping address, closes #10253 2016-02-03 15:19:19 -02:00
Gregory Karpinsky 029217e207 Suggestion: before and after actions on terms.php
For example, to write an intro sentence: "Please check the box below to proceed:"
2016-02-02 16:53:14 -05:00
Claudio Sanches 12cd0d824a [2.5] Pass $category to wc_product_cat_class() in content-product_cat.php 2016-02-01 13:36:52 -02:00
Mike Jolley e49c288e8f [2.5] false to add_args
Fixes #10231
2016-02-01 12:19:11 +00:00
Mike Jolley 25e02ac6f1 Alt text is set by WP
Fixes #10215
2016-01-29 11:25:43 +00:00
Mike Jolley 2a6ea6e137 [2.5] Fix passed image_size variable 2016-01-27 15:29:27 +00:00
Gregory Karpinsky 17b16b4dd2 Omit closing PHP tag to avoid "Headers already sent" issues. 2016-01-26 18:35:24 -05: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
Claudio Sanches 4f3ef79b8c Added password strength meter to my account > edit account page
Closes #10103
2016-01-22 17:33:35 -02:00
Mike Jolley 8093194a44 [2.5] Qty button can be hidden for variables sold individually 2016-01-22 17:53:12 +00:00
Mike Jolley 4cfd8ff214 [2.5] Don't show downloads in admin email 2016-01-20 16:58:58 +00:00
Mike Jolley f5e2717b6f [2.5] Show sku in admin emails
Closes #10107
2016-01-20 11:05:10 +00:00
Mike Jolley b5d7f1de10 [2.5] Only show payment method button when needed, and check for required fields
Fixes #10112

@thenbrent @claudiosmweb
2016-01-20 10:47:36 +00:00
Mike Jolley 0049415797 [2.5] get_currentuserinfo() is deprecated in WP 4.5 2016-01-18 14:42:01 +00:00
Mike Jolley b76813d369 Add ID to search field
Fixes #10090
2016-01-18 09:47:12 +00:00
Mike Jolley 1076854608 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/class-wc-shipping.php
#	includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
#	includes/shipping/flat-rate/includes/class-wc-eval-math.php
#	includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Kathy Darling 67c06f313e add filter for reset variations link html 2016-01-07 09:43:34 -05:00
Mike Jolley 1093d2f64c Check passed in variables are set
#9983
2016-01-06 11:52:18 +00:00
Mike Jolley 97d47fb576 Move zones to main settings 2016-01-05 11:23:15 +00:00
Mike Jolley 89ede21ff2 Terms before button
@jameskoster any problem using that float?

Closes #9880
2015-12-18 22:11:45 +00: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
Andrew Minion b296962ca8 update grammar 2015-12-16 13:14:18 -06: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
Mike Jolley 0ebba8b0be flip desc and price 2015-12-04 13:34:38 +00:00
Mike Jolley b7d8091a44 pass full variation object into script instead of parts 2015-12-04 13:31:36 +00:00
Mike Jolley 2c023a2847 Pass the wp.template to the script and append so its added to the page once when needed 2015-12-04 13:26:44 +00:00
Mike Jolley 948a8f5c47 Filters for loop add to cart
Closes #9753
2015-12-04 11:50:37 +00:00
Mike Jolley dcef386d6c form pay hooks before and after button Closes #9746 2015-12-03 12:06:14 +00:00
Mike Jolley 86c9d7c4b8 Changed terms alignment and added *
Fixes #9650
2015-12-03 09:49:36 +00:00
Mike Jolley b5a2c2a9d5 Unify all order email tables to use a single template
Closes #9587

@claudiosmweb @jameskoster
2015-11-30 15:16:23 +00:00
Mike Jolley ec01c3d76f Made "my orders" columns fully customisable for filters.
woocommerce_my_account_my_orders_columns filter used to define columns
and woocommerce_my_account_my_orders_column_ID to add content to said
column.

Removes the need for and thus Closes #9634 and closes #9633

@claudiosmweb
2015-11-27 12:54:28 +00:00
Mike Jolley 4b47f98132 Merge pull request #9682 from iamtakashi/twentysixteen
[2.4] Edit for Twnety Sixteen
2015-11-23 18:50:45 +00:00
Mike Jolley 31a7c7df99 Show meta data on form-pay
Fixes #9674
2015-11-23 18:22:31 +00:00
Takashi Irie d88ba80f84 Edits for Twnety Sixteen 2015-11-23 11:55:50 +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
Nicola Mustone ef3410ea2e format text for better understanding 2015-11-16 12:39:44 +01: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
mitogh 4d86d8a6ad Add strict comparission on another templates 2015-11-14 20:35:00 -06:00
mitogh d3804dc16c Forece strict comparisons on single products template 2015-11-14 20:31:23 -06:00
Claudio Sanches 1f24a22de6 Escape price.php template 2015-11-09 00:57:36 -02:00
Mike Jolley 1b38f380af Merge remote-tracking branch 'origin/master'
Conflicts:
	includes/emails/class-wc-email.php
2015-11-03 16:09:01 +00:00
Claudio Sanches a0d266640a Looks better with single quotes, closes #9493 2015-11-03 13:58:05 -02: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
Mike Jolley 48b93b937f Added admin order/payment failed notification
Closes #8617
2015-11-02 14:45:24 +00:00
James Koster 1d0f52f6db revert order pay responsive table. #9015
Would require a conditional colspan for handheld. Not worth the
overhead for this small table which should perform adequately already.
2015-11-02 13:59:07 +00:00
James Koster 2b39c78ce8 No need for customer details table to be responsive. #9015
Like several other tables, it’s small enough to degrade gracefully on
handheld devices
2015-11-02 13:59:07 +00: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
Mike Jolley 798cf9a50b Merge pull request #9485 from helgatheviking/email-ids-on-hooks
pass email object to email templates and template hooks
2015-11-02 13:02:04 +00:00
Mike Jolley 7fdb93329c Merge branch 'revised-single-variation-cart-template'
Conflicts:
	includes/admin/views/html-admin-page-status-report.php
2015-11-02 11:26:49 +00:00
Mike Jolley c29517e87e Merge branch 'pr/9471' 2015-11-02 11:24:01 +00:00
Mike Jolley aec0e0e327 supports() method which mirrors gateways
Closes #9471
2015-11-02 11:23:50 +00:00
Mike Jolley 3ca5022649 Added template files for the customer details list in emails. emails/email-customer-details.php
Closes #9253
2015-11-02 10:41:05 +00:00
Kathy Darling f893d73af6 pass email object to email templates and template hooks 2015-10-31 23:04:59 -05:00
Kathy Darling 856d192bff Use generic `ajax_add_to_cart` class for adding items in the loop to the cart via ajax. 2015-10-30 12:54:49 -05:00
Mike Jolley 77054e11fa Improve appearance when only 1 gateway is active.
Closes #8982
2015-10-30 15:23:16 +00:00
Claudio Sanches 0ff88deb98 Improved wc_coupons_enabled() name and description 2015-10-29 17:23:10 -02:00
Mike Jolley d1d9ff1b59 Adjust how the 'clear' link appears 2015-10-29 16:51:05 +00:00
Claudio Sanches f64ea948f1 Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only() 2015-10-28 16:03:24 -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 245c36e9eb Removed duplicated woocommerce_get_checkout_url filter on form-checkout.php 2015-10-28 15:56:58 -02:00
Claudio Sanches 3ab4e76cd0 Replaed old WC_Cart methods to the new functions 2015-10-28 15:56:31 -02:00
Mike Jolley edd2e4f2cb wp.template is not required for cart button 2015-10-28 14:59:40 +00:00
Mike Jolley 6a64f3ba7a Remove global 2015-10-28 14:19:44 +00:00
Mike Jolley 1ff6a27951 Split button from variation display 2015-10-28 13:09:34 +00:00
Mike Jolley f050c804e1 Use wp.template for variation and variation button 2015-10-28 13:04:28 +00:00
Claudio Sanches ad29047d3c Created woocommerce_review_before_comment_text hook on templates/single-product/review.php #9432 2015-10-27 11:13:22 -02:00
Claudio Sanches e9fb395471 Introduce two new actions on templates/single-product/review.php
New actions:
- woocommerce_review_before_comment_meta
- woocommerce_review_after_comment_text

Closes #9432
2015-10-26 13:36:02 -02:00
Mike Jolley 22890c4f94 Thanks page classes
Closes #9398
2015-10-23 12:42:17 +01:00
Claudio Sanches ddc6baf07d Use curly bracket when don't have any HTML around
Ref: #9411
2015-10-22 14:43:34 -02:00
Claudio Sanches bf61ed004b Merge pull request #9411 from JeroenSormani/shipping-package-name
Filter the shipping name in the totals table
2015-10-22 14:42:06 -02:00
JeroenSormani ebb65c23ff Filter the shipping name in the totals table 2015-10-22 18:22:03 +02:00
Mike Jolley 002bfa45e4 Ensure grouped product exists
Fixes #9382
2015-10-22 16:35:29 +01:00
Mike Jolley d46e57d9d6 Merge pull request #9318 from woothemes/issue/8458-refactor-verified-purchase-review-meta
Refactor "verified owner" logic to reduce queries and transients.
2015-10-22 09:00:38 -06:00
Brad Parbs d7d306432b Fix spacing of do_action in customer-processing-order.php 2015-10-21 14:47:08 -05:00
Jeff Stieler 58ec17f76d Use new review verification status retrieval method on single review template and in APIs. 2015-10-20 22:05:17 -06:00
Jeff Stieler cfdef778bf Use review comment meta to determine if the customer bought the product. 2015-10-20 22:03:29 -06:00
Claudio Sanches fe95c2f8a1 Merge pull request #9343 from brenoalvs/master
Fixed order review heading when have no checkout fields
2015-10-17 00:06:11 -06: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
Breno Alvs eda81121b4 Fixed order review heading when have no checkout fields 2015-10-11 15:37:28 -03:00
Claudio Sanches 455c076788 Removed extra more spaces #9319 2015-10-09 11:16:25 -03:00
Claudio Sanches 2942ae41e6 Removed extra spaces from templates/checkout/form-billing.php #9319 2015-10-09 11:15:26 -03:00
Claudio Sanches c4bd6b25c1 Merge pull request #9319 from nishitlangaliya/Issue-8938
Issue 8938
2015-10-09 11:12:56 -03:00
James Koster a2ab735cda add `data-title` attribute to cart table. #9015 2015-10-08 16:56:04 +01:00
nishitlangaliya a45ef9f814 fixes: done changes using dom operation. ref #8938 2015-10-08 20:14:53 +05:30
nishitlangaliya 2dcd391c21 fixes: If password field is enabled, enforce strong passwords ref #8938 2015-10-07 16:47:13 +05:30
Mike Jolley cf54ea8fc0 esc_attr does not double encode
fixes #9287
2015-10-07 12:03:10 +01:00
Mike Jolley 277dbeb029 Merge branch 'WPprodigy-patch-2' 2015-10-06 12:33:55 +01:00
Mike Jolley 5ec400e514 Validate terms and conditions and improve templates 2015-10-06 12:33:45 +01:00
Caleb Burks ee2757c08f Specific template override paths 2015-10-03 02:58:08 -05:00
James Koster 2c00927c0b Remove the product loop title template
Provides consistency with the product category template. This template
was really too simple to require it’s own file. It can be plugged or
unhooked to edit.
2015-10-01 17:58:33 +01:00
Claudio Sanches 3a536ac8b7 Sanitize shipping method label/title, closes #9159 2015-10-01 17:17:45 +02:00
James Koster b8d6ee4928 only display the coupon form on the checkout if a coupon hasn't been input already. closes #9099 2015-10-01 16:14:10 +01:00
James Koster 018bcc9d2d hook the product category links in, instead of hard coding into the template. #8575 2015-10-01 15:28:57 +01:00
James Koster fe689d3d24 Let's not create template files for such simple code. #8575
Also removes pluggability of code that simply shouldn’t have any need
to be overwritten.
2015-10-01 15:20:05 +01:00
James Koster 9de9f87c17 product category title is now hooked in rather than hard-coded into template 2015-10-01 15:12:56 +01:00
Mike Jolley de4a80f950 Add disclaimer to template files
Closes #8942
2015-10-01 16:07:35 +02:00
James Koster 02ddb7fc4d product archive anchors are now hooked into templates rather than hard coded. #8575 2015-10-01 14:49:40 +01:00
Claudio Sanches 0dfa047f93 Added template head and version for templates/product-searchform.php 2015-09-23 17:14:56 -03:00
Claudio Sanches dfd7a0493a Added version and improved the templates/content-widget-product.php 2015-09-23 17:13:26 -03:00
WPExplorer b2d1964b5a Update content-widget-product.php
- Add version number so its part of the "system status".
- Exit if accessed directly since we are calling the global product
2015-09-23 12:39:11 -07:00
Claudio Sanches ad80f2188b Updated the /single-product/add-to-cart/variable.php version 2015-09-22 13:53:19 -03:00
Claudio Sanches 605db1cf3a hijax for variations on frontend 2015-09-22 13:22:12 -03:00
Mike Jolley d754ad79c8 Merge pull request #9082 from bekarice/purchase-note-improvements
[2.5] Filter when purchase note is showed
2015-09-15 16:21:49 +01:00
Mike Jolley 8e19abe368 Check if $breadcrumb is empty 2015-09-14 15:56:58 +01:00
Beka Rice bef88f2e82 [2.5] Filter when purchase note is showed
For WooCommerce 2.5: adds `woocommerce_purchase_note_order_statuses`
filter and pulls purchase note logic up from
/order/order-details-item.php
2015-09-08 14:01:49 -04:00
Caleb Burks 84f8d606b3 Add Terms and Conditions checkbox 2015-09-07 10:10:28 -05:00
Kevin Hagerty e419d073d5 Use the needs_payment function
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:11:15 -04:00
James Koster d86b64a61a changelog update and template bump.
Updated the template version due to
https://github.com/woothemes/woocommerce/pull/9045
2015-09-04 13:49:14 +01:00
Shiva Poudel 47b440fcc6 Remove the unnecessary clear to payment section
CC @jameskoster
2015-09-04 17:32:20 +05:45
James Koster 69d151ab2a Remove the unnecessary clear and update changelog 2015-09-04 11:06:19 +01:00
Shiva Poudel 1e8460fa34 Payment heading tag removed in pay for order form 2015-09-03 18:41:26 +05:45
Claudio Sanches 0c82d431df Fixed method returning value in write context 2015-08-20 14:20:20 -03:00
Mike Jolley d493e0fafa Merge pull request #8870 from JeroenSormani/no-shipping-message-fix
Show the right 'no shipping availalbe' message when a country doesn't…
2015-08-18 14:55:11 +01: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 ffd2b2de30 Pinking Shears. 2015-08-17 17:35:10 -04:00
Mike Jolley 1999dbe92d Improve display_item_downloads numbering and use same function in emails. 2015-08-17 12:17:56 +01:00
Mike Jolley a3eec05b0c Remove strip tags from invoice template
#8793
2015-08-12 18:31:21 +01:00
Mike Jolley 318f399081 Small tidy for scruitinizer 2015-08-10 14:56:02 +01:00
George Stephanis c938fa24da More missing esc_attr calls, :( 2015-08-05 15:17:52 -04: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
Mike Jolley 1b45bcde0b URL encode to preserve text attributes in permalinks 2015-07-28 10:37:24 +01:00
Mike Jolley 808c01cb90 Added woocommerce_single_variation hook for variation data and cart button to reduce code in template file and used hooks. @claudiosmweb
Removed woocommerce_before_variations_button @Ninos. Use
woocommerce_single_variation
2015-07-28 10:32:28 +01:00
Mike Jolley 15327ef268 Fix borders by limiting length of the styles per line
Closes #8655
2015-07-27 18:34:51 +01:00
Mike Jolley 9a7893ba23 Moved variation dropdowns logic into wc_dropdown_variation_attribute_options() 2015-07-27 16:42:22 +01:00
Mike Jolley 2ea6a2efab Merge branch 'pr/8607' 2015-07-27 13:17:27 +01:00
Andrew Minion 4155c34794 fix case to match other titles on my-account.php 2015-07-21 10:56:18 -04:00
Claudio Sanches f0b3d2fd9b Code tweaks for #8620 2015-07-20 14:36:12 -03:00
Jodi Warren 2d63d4fc94 fix version number 2015-07-20 18:12:41 +01:00
Jodi Warren 2fb5f5bf78 Change product title to a hooked function. Fixes #8601 2015-07-20 18:10:56 +01:00
Manos Psychogyiopoulos 18a7c6b7fb back-compat with text-based attributes: defaults don't work in WC2.4 2015-07-18 12:34:41 +03:00
Claudio Sanches 066aff5222 Escape checkout cart-errors.php 2015-07-14 11:20:48 -03:00
Vignesh e702d47a17 get_permalink to wc_get_page_permalink Updated 2015-07-14 17:51:40 +05:30
Claudio Sanches 2cc7fcfa3f Fixed missing textdomains 2015-07-13 11:03:03 -03:00
James Koster 043294b5ed template versions 2015-07-13 11:44:18 +01:00
thenbrent 571b4a5238 Use wc_cart_totals_taxes_total_html()
The order-review.php template was printing the tax total directly, which
meant extensions could not filter the tax total. This changes the tax total
to use the wc_cart_totals_taxes_total_html() similar to the cart-totals.php
template, which applies the 'woocommerce_cart_totals_taxes_total_html' filter.
2015-07-10 18:10:19 -07:00
Claudio Sanches c63faa76a8 Escape proceed-to-checkout-button.php template 2015-07-10 16:42:33 -03:00
Ninos Ego 147c589bda Add hook e.g. for wgm 2015-07-10 16:37:52 +02:00
Mike Jolley eaed944048 Tweak template logic to load variations when needed 2015-07-09 15:58:58 +01:00
Mike Jolley 65f19d5ca7 Ajax variation handling
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Claudio Sanches 89cef9ff02 Introduces methods to WC_Abstract_Order for get customer full name
New methods:

WC_Abstract_Order::get_formatted_billing_full_name()
WC_Abstract_Order::get_formatted_shipping_full_name()

closes #8535

cc: @mikejolley
2015-07-08 18:00:19 -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 af3dfce73f Escape tabs key and title, closes #8449
@mikejolley
2015-06-26 13:21:26 -03:00
Claudio Sanches ec0783f382 Fixed deprecated woocommerce_lostpassword_url() and lost password url on myaccount/form-login.php
ref #8459
2015-06-25 15:17:06 -03:00
Justin Shreve d383e3bfd0 Use wp_lostpassword_url instead wc_lostpassword_url. The WC function is just meant to be a filter. 2015-06-25 16:54:36 +00:00
Mike Jolley 8dbd30e76b Merge branch 'add-email-notification-for-partial-refunds-issue-8278' 2015-06-22 15:01:17 +01:00
Claudio Sanches 80e8bd94ad Escape return to shop url 2015-06-19 17:29:37 -03:00
Mike Jolley c136d4ffd8 Merge branch 'master' into add-email-notification-for-partial-refunds-issue-8278 2015-06-19 13:05:52 +01:00
Justin Shreve 5b7c51b5de Wrap the quantity from $_POST in wc_stock_amount to cast it properly 2015-06-18 23:16:00 +00:00
Justin Shreve eddec91b5a If a quantity is set in the $_POST request, use that over the field default. This way, if a validation error occurs, the user's requested quantity stays the same. 2015-06-18 20:51:17 +00:00
James Koster 92c048c9ff totals / addresses. #7841 2015-06-18 15:56:51 +01:00
James Koster 5836370a38 font family. #7841 2015-06-18 14:58:42 +01:00
James Koster 82df867276 text color. #7841 2015-06-18 14:46:25 +01:00
James Koster fd18b129e4 border colors. #7841 2015-06-18 14:22:40 +01:00
James Koster 7dbdbdaf13 td colors. #7841 2015-06-18 14:14:26 +01:00
James Koster 3292cdfc55 link colors. #7841 2015-06-18 13:35:28 +01:00
James Koster df51bb3a97 product image/title. #7841 2015-06-18 13:30:08 +01:00
James Koster 370ae8e94b table colors. #7841 2015-06-18 13:02:43 +01:00
James Koster 2dbb7e9478 table fonts. #7841 2015-06-18 12:54:18 +01:00
James Koster e09f5e35db header padding. #7841 2015-06-18 12:39:12 +01:00
davidlenehan 718d550252 Merging refund email template files
Changing previous commit to merge templates for partial and full
refunds to cut down on files.
2015-06-18 11:34:21 +01:00
davidlenehan 8b02b02145 Add email notification for partial refunds
fixes #8278

Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.

When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
Mike Jolley 89f7e15052 Save full version of text based attributes when dealing with variations 2015-06-11 14:43:02 +01:00
Claudio Sanches fa026ea49d Normalize the "Order #" #8305 2015-06-10 12:09:18 -03:00
Claudio Sanches 12c81120ca Merge pull request #8305 from WPprodigy/patch-3
Make the hash translatable/filterable
2015-06-10 11:45:36 -03:00
Jason Conroy 1061487d7c Incorrectly nested p tag within ul 2015-06-10 19:33:07 +10:00
Justin Shreve 54586115b7 Add a line break after every download file link is outputed in the email order items template. 2015-06-09 15:38:21 +00:00
Caleb Burks b54ee1efb2 Make the hash translatable/filterable 2015-06-05 12:25:18 -05: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
Claudio Sanches 169e72b824 Added extra arg to all woocommerce_order_item_name filters #8159 2015-05-27 13:29:15 -03:00
Mike Jolley 5920b88d5d Add classes to tax and shipping labels/notices
Closes #8189
2015-05-27 16:17:36 +01:00
Claudio Sanches a1717372aa Added $is_visible arg to woocommerce_order_item_name filter, closes #8159 2015-05-27 12:11:53 -03:00
Claudio Sanches 7a24f7d482 Updated template version for #8232 2015-05-27 12:02:38 -03:00
Nicola Mustone 2c940e2299 Fix fatal error 2015-05-27 16:35:16 +02:00
Mike Jolley 10e8210871 Link to account page to login to make reviews
Closes #8155
2015-05-26 17:49:08 +01:00
Mike Jolley ffab4feb0c Remove #reset anchor. Unused.
Closes #8134
2015-05-26 17:45:19 +01:00
Claudio Sanches baf020c68a Updated email-header.php template version to 2.4.0 #8200 2015-05-21 17:05:11 -03:00
Louy Alakkad dec30bd456 Add direction to emails.
Fixes an issue where emails in RTL languages were rendered as LTR.
2015-05-21 23:01:52 +03: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
Claudio Sanches e106d57947 Merged #8021 2015-05-18 16:53:04 -03:00
Claudio Sanches b305c34c64 Merge pull request #8178 from helgatheviking/issue_8176_email_template_versions
update template version numbers to 2.3.0. closes #8176
2015-05-17 12:31:21 -03:00
Kathy Darling e1c471b9c4 update template version numbers to 2.3.0. closes #8176 2015-05-17 17:17:16 +02: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
Mike Jolley d53f78ed56 Styled auth and login endpoints 2015-05-14 16:58:34 +01:00
Mike Jolley 1a9336a4dc [2.3] Remove email alt text from get_avatar
Closes #8152
2015-05-13 13:46:03 +01:00