Commit Graph

920 Commits

Author SHA1 Message Date
Gregory K 3bd2954a13 Fix: additional-information.php
- Do not display empty <h2> tag
- Removed unused globals
- WP code style
2014-03-30 21:26:17 -04:00
Andrew Benbow 84899195c5 Update form-shipping.php 2014-03-28 14:41:57 +00:00
Andrew Benbow 54d5ded602 Update form-shipping.php 2014-03-28 14:41:43 +00:00
Andrew Benbow d9c82975b4 Update form-shipping.php 2014-03-28 10:38:48 +00:00
Andrew Benbow 6cb5451e15 Update form-shipping.php
Add filter to allow needs_shipping() to be overridden, useful if you want to collect a shipping address for virtual products.

Allows a filter to be used as replacement for get_option('woocommerce_require_shipping_address')

Previous suggestion of add_filter('woocommerce_cart_needs_shipping', '__return_true'); is not suitable
2014-03-28 02:27:24 +00:00
splashingpixels bbde465924 orderby - skip adding hidden input of submit on a GET so JS can submit properly fixes #5221 2014-03-27 09:37:56 -07:00
Mike Jolley 9e5d895823 Billing Address > Billing Details. We take more than address in this section. 2014-03-24 11:16:07 +00:00
Mike Jolley 6ffd371ee4 Update localisation for terms and conditions text. 2014-03-24 11:16:07 +00: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
splashingpixels 4e0e184d5a form-login form values were not persistent after failed submission 2014-03-17 09:55:41 -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
thenbrent bcd3c71c7d Add no_available_payment_methods_message filter 2014-03-12 21:14:06 +10:00
Mike Jolley 256b1e011c Tweak shipping language Closes #5030 2014-03-04 12:39:39 +00:00
Rob Davarnia e3116a4a2b Update add-to-cart.php 2014-02-28 15:42:14 -08:00
Rob Davarnia e7ca60b2a2 Ability to add custom quantity using shortcode 2014-02-28 13:43:31 -08:00
Muhammad Haris b5dbb95f8e Missing hook details for new rating after title
Missing hook details in the comment for new rating after title on single product pages
2014-02-27 05:56:03 +05:00
Mike Jolley bfecc0c7d5 Tweak product attributes template to hide table if nothing is shown Closes #4927 2014-02-25 15:33:07 +00:00
Patrick Rauland f3d1f5aa7d correcting cart template class names 2014-02-24 16:42:40 -06:00
Mike Jolley 38872b8536 For custom attributes, try to turn back to 'name' from saved slug in emails/view order templates Closes #4833 2014-02-24 15:14:32 +00:00
thenbrent eed1411ba8 Check product exists before accessing methods
To avoid fatal errors when generating renewal orders in Subscriptions.
2014-02-21 16:29:55 -08: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
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Mike Jolley 0ddff220d5 Make my-account/view-order use the template file 2014-02-17 09:44:45 +00:00
Mike Jolley d5482d00d0 Fix printf in customer new account email Closes #4802 2014-02-14 15:50:30 +00:00
Mike Jolley 1140fd2407 Wrap billing and shipping fields with a div/class Closes #4758 2014-02-13 10:22:25 +00:00
Coen Jacobs 18bd1f175f Merge pull request #4760 from claudiosmweb/fix_hardcode_email_string
Fix hardcoded string in templates/emails/email-order-items.php
2014-02-13 09:00:35 +01:00
claudiosmweb 02053f2d5c removed all the_content filter in favor to wpautop() and do_shortcode() functions 2014-02-13 02:49:30 -02:00
claudiosmweb f6f4e8d5ea fixed some coding standards in templates/emails/plain/email-order-items.php 2014-02-13 02:24:34 -02:00
claudiosmweb a5d21f4e56 removed not useful nl2br in emails plain templates 2014-02-13 02:22:34 -02:00
claudiosmweb 3e82329bc4 fixed some coding standards in templates/emails/email-order-items.php 2014-02-13 02:10:53 -02:00
claudiosmweb c05804a8fb fixed hardcode string in email-order-items.php template 2014-02-13 02:08:47 -02:00
Mike Jolley 29ef76c17c Removed change password template and shortcode class - no longer used.
Change password is built into the edit-account endpoint. @coenjacobs
@hlashbrooke
2014-02-11 10:36:22 +00:00
claudiosmweb 6ccbd2b6f0 removed deprecated function 2014-02-09 03:05:03 -02:00
James Koster 2b8ef5101f review pagination. closes #4629 2014-02-05 12:40:15 +00:00
claudiosmweb d5f840c2ed improved the printf in my-account.php template 2014-02-05 00:57:03 -02:00
claudiosmweb 14e14787fc redirect user in logout to my account page, fixes #4633 2014-02-05 00:55:27 -02:00
James Koster a078b942e7 removed a &darr; 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
Mike Jolley 39344f2ed5 Allow gateways to change the checkout place order button text on selection. Closes #4573 2014-01-28 11:25:57 +00: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 e96a6ae3f3 Fix Non-Purchasable Simple Product in Product Loop
add_to_cart_button class is only applied if the product is purchasable
2014-01-09 21:38:05 -05:00
Illimar Tambek 3fc62123a7 Check for actions before looping over them 2014-01-09 12:13:57 +02:00
Mike Jolley e15c572465 Better handling for sent to admin/plain text args Closes #4359 2014-01-08 15:04:49 +00:00
Mike Jolley 55121ff2ef Merge pull request #4451 from claudiosmweb/fix_4450
Introduces the woocommerce_my_account_my_orders_query filter
2014-01-07 07:39:10 -08:00
justinstern cc27bd8bdf Rename new woocommerce_order_item_quantity filter
Renaming to avoid clash with pre-existing filter of the same name:
cdb1ad5e9e/includes/class-wc-order.php (L1470)
2014-01-07 00:51:15 -05:00
claudiosmweb c97195d0ad fixed conding standards in templates/myaccount/my-orders.php 2014-01-04 10:45:01 -02:00
claudiosmweb 5cb3849e07 fixed the indentation in templates/myaccount/my-orders.php 2014-01-04 10:40:22 -02:00
claudiosmweb e273026fff introduces the woocommerce_my_account_my_orders_query filter that helps customize the query in My Orders page. fixes #4450 2014-01-04 10:36:30 -02:00
Coen Jacobs 58f31163fc Correct do_action arguments fix for #4359
Reverts db9d3ff0b7 partially
2014-01-03 15:55:51 +01:00
Mike Jolley cdb1ad5e9e On cancel, use cart page unless otherwise defined. Closes #4375 2013-12-30 14:09:50 +00: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 0c9962cf93 Get correct name Fixes #4385 2013-12-24 14:28:25 +00: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
Coen Jacobs db9d3ff0b7 Stripped faulty default values of do_action parameters. Closes #4359 2013-12-12 16:47:20 +01:00
Roy Ho 2dcd0149db missing ending semicolons on wp_nonce_field() 2013-12-07 10:49:53 -08:00
Coen Jacobs 1f5f163916 Added option to hide Returning customer message. Closes #4220 2013-12-05 10:43:46 +01:00
Coen Jacobs a3200c062e Made #4284 added filter a little more descriptive 2013-12-05 09:43:57 +01:00
Patrick Rauland 453dc5a645 adding woocommerce_terms_is_checked filter 2013-12-04 10:56:31 -06:00
James Koster b69c8da6a5 twenty fourteen compat. closes #4272 2013-12-03 16:53:47 +00:00
Mike Jolley 3c537d8373 Show names and urls for emails in plain text Closes #4259 2013-12-03 16:50:19 +00:00
Mike Jolley b467bca6f3 Merge pull request #4242 from ragulka/pay-order-button-filter
Allow filtering Pay for order button text and html
2013-12-03 08:24:58 -08:00
Mike Jolley 8ad1232d93 Use function for lost password url 2013-12-03 16:00:26 +00: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
Illimar Tambek 82a130e23d Introduce woocommerce_pay_order_button_text and woocommerce_pay_order_button_html filters 2013-11-28 18:10:50 +02:00
Mike Jolley 2bd40b29b2 Humanize order number/status string Closes #4225 2013-11-27 15:53:57 +00:00
Mike Jolley 1f7c249429 Grammar of no products found message Closes #4217 2013-11-27 15:14:47 +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
Mike Jolley b774e84e29 Revert "Replaced templates functions"
This reverts commit 4ce301a080.
2013-11-25 14:16:26 +00:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Mike Jolley 4ce301a080 Replaced templates functions 2013-11-25 14:01:37 +00:00
Mike Jolley 3973beae5d woocommerce_ functions to wc_ - replaced attribute functions 2013-11-25 14:01:37 +00:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 1663eafb68 Customer functions woocommerce to wc refactor 2013-11-25 13:52:53 +01:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
Coen Jacobs a44702163f Remove deprecated loop-shop.php. Closes #4194 2013-11-25 12:11:59 +01:00
Andrew Benbow 437b224f7b Fix variations not showing in all cases for draft products 2013-11-25 09:03:07 +01:00
Scott Basgaard 922fa990a5 esc_attr() all the things. 2013-11-20 20:11:59 +01:00
Scott Basgaard de77ec07ea esc_url() all the things. 2013-11-20 19:54:01 +01:00
Mike Jolley 12bac47f85 Ancestor check 2013-11-20 17:36:07 +00:00
Mike Jolley 3d01a288ec hook: 'data-rel', Closes #4115 2013-11-18 13:00:56 +00:00
Coen Jacobs 90008d7143 Merge remote-tracking branch 'thenbrent/new_notice_api'
Conflicts:
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-message-functions.php
	woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Coen Jacobs f0adcb65b7 Merge remote-tracking branch 'thenbrent/add_payment_method_issue_3396' 2013-11-18 12:33:23 +01:00
thenbrent 3c625eba5f Use $messages variable for all notice templates 2013-11-13 16:19:59 -08:00
thenbrent 41c1bd6b82 Use wc_print_notice() for checkout notices 2013-11-13 16:10:49 -08:00
thenbrent 41ba6578a0 Move notice templates into /notices/notice.php 2013-11-13 16:09:28 -08:00
Mike Jolley 35fc728090 Login form hooks Closes #4059 2013-11-13 12:12:27 +00:00
Mike Jolley 9c83947613 Notice on no shop page 2013-11-13 12:12:27 +00:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent 30424feb30 Initial commit of notices.php template
Part of #4034
2013-11-12 20:59:04 -08:00
Mike Jolley 70e2a05bd6 wpautop when displaying values #3926 2013-11-11 13:50:36 +00:00
thenbrent e6b83b32ce Set correct version on notices.php template 2013-11-06 10:26:58 -08:00
James Koster 2ce069ea2e payment heading 2013-11-06 13:56:59 +00:00
Brent Shepherd 9de928baf5 Add new notices API for blue info message
Part of #4034
2013-11-05 16:11:50 -08:00
Brent Shepherd 4a7f207eff Use new ID for add pay method form
Part of #3396
2013-11-05 15:36:00 -08:00
Brent Shepherd b69066405b Move /add-payment-method/ endpoint to /my-account/
Part of #3396
2013-11-05 13:02:13 -08:00
Mike Jolley c530e8bfcd Schema: ProductID can now be SKU, added URL 2013-11-04 12:53:49 +00:00
thenbrent e80f71d73c Improve form-add-payment-method.php error & button
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent ca01d7b1a5 Fix up markup on form-add-payment-method.php
So that checkout.js correctly displays payment method's fields.
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent ac548d6610 Add form-add-payment-method.php 2013-11-03 16:53:30 -08:00
thenbrent 9716c985cd Fix markup on form-pay.php
Payment method fields were not displaying on the "Checkout -> Pay" page
because checkout.js was using a input#payment_method_{name} selector, which
worked fine with the payment method markup used in the review-order.php template,
but not with the markup used in the form-pay.php template.

This moves the #payment_method_{name} attribute from the <li/> elements to the
<input/> element so that checkout.js correctly display's payment method fields.
2013-11-01 11:54:29 -07:00
Mike Jolley 19fcf30a66 Option to limit reviews to purchasers. Closes #4021 2013-10-31 17:37:36 +00:00
Mike Jolley b4d1c764d5 Move average rating outside of hidden tab. Closes #3867. 2013-10-31 16:26:20 +00:00
Mike Jolley f6b317f199 Labels need to be clickable 2013-10-31 12:01:11 +00:00
Mike Jolley 95c0a67fdf Merge pull request #4017 from scottbasgaard/master
Define line_subtotal and line_subtotal_tax to avoid PHP notice in cart.
2013-10-29 09:49:55 -07:00
James Koster 5aeaed888e Add review form no longer opens in lightbox. closes #3804 2013-10-28 09:56:03 +00:00
James Koster 1fbb6249ff Replaced &rarr; / &larr; on frontend with icons from our font. closes #4009 2013-10-28 09:45:59 +00:00
Scott Basgaard 507b7bec96 Use wp_nonce_field. $woocommerce->nonce_field is deprecated. 2013-10-26 16:39:10 +02:00
Bernard Peh 09155c490f same issue as #4005 but on different template. 2013-10-26 08:02:08 +11:00
Mike Jolley c7429357c7 Fix notices and rounding issues in orders 2013-10-25 20:02:21 +01:00
Mike Jolley f742a91435 Rejig login form closes #4005 2013-10-25 16:10:13 +01:00
Mike Jolley 8fcb35c5dc Merge pull request #4008 from RistoNiinemets/master
additional customer details hook
2013-10-25 07:56:04 -07:00
RistoNiinemets 388e962dc9 additional customer details hook 2013-10-25 13:54:49 +03:00
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley c3aba912db Merge pull request #3975 from samuelaguilera/patch-1
Changed id for payment_method_$gateway from <input> to <li>
2013-10-22 05:33:35 -07:00
Mike Jolley d41979a5d0 Merge pull request #3976 from samuelaguilera/master
Changed id for payment_method_$gateway from <input> to <li>
2013-10-22 05:33:28 -07:00
samuelaguilera 301d8e1820 Changed id for payment_method_$gateway from <input> to <li>
Changed CSS ID for payment_method_$gateway from radio button to <li> container. This allows to apply custom CSS style for all elements of gateways. And not only to radio button (that has no sense).
2013-10-21 23:46:00 +02:00
samuelaguilera ef452e9384 Changed id for payment_method_$gateway from <input> to <li>
Changed CSS ID for payment_method_$gateway from radio button to <li> container. This allows to apply custom CSS style for all elements of gateways. And not only to radio button (that has no sense).
2013-10-21 23:40:44 +02:00
Mike Jolley 5d2e1ac031 Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 2013-10-18 18:10:58 +01:00
Mike Jolley 4cabf24422 needs_payment for 2.1 #3928 2013-10-16 14:14:15 +01:00
Mike Jolley 004e556e18 Check product var is set 2013-10-16 10:52:35 +01:00
Mike Jolley 08bfd6b4d7 woocommerce_before_single_variation and after. Removed un-needed div. Closes #3906 2013-10-16 10:41:23 +01:00
Mike Jolley 5c96af4ff9 #3921 2013-10-15 16:27:57 +01:00
James Koster 13bcae2d63 returning customer login. closes #3903 2013-10-10 10:29:16 +01:00
Mike Jolley 5c8d8bbda9 fix urls 2013-10-02 13:04:28 +01:00
Gregory K 6f43712d06 Fixed spacing in () (again) 2013-09-25 12:14:35 -04:00
Gregory K 7e76ed7205 Fixed spacing in () 2013-09-25 11:49:51 -04:00
Gregory K 93e0107aff Fix product links in Cart when no variation 2013-09-25 10:48:51 -04:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley e58b101fd5 If no variations exist, show out of stock notice. Closes #3763. 2013-09-25 09:36:04 +01:00
Mike Jolley 9a98be6a15 WOOCOMMERCE_DELIMITER constant. Closes #3476. 2013-09-24 12:24:26 +01:00
Mike Jolley a5d71a8113 Fix for submitting comments 2013-09-24 11:48:42 +01:00
Mike Jolley 9b446508a7 Merge pull request #3823 from tivnet/master
Use get_the_title() instead of $post->title
2013-09-24 03:45:14 -07:00
Gregory K c401ac98e7 Use get_the_title() instead of $post->title, because there could be 'the_title' filters 2013-09-23 19:10:14 -04:00
Mike Jolley 0a3cdc43ca Include a link to admin. Closes #3796 2013-09-23 16:51:43 +01:00
Mike Jolley 622715ec36 Option for itemized vs grouped taxes. Closes #3453. 2013-09-23 16:10:09 +01:00
Mike Jolley ed87e72947 Merge pull request #3815 from pmgarman/master
Don't display shipping address if shipping is disabled
2013-09-23 07:51:37 -07:00
Mike Jolley 06ef44c9df Pass args to variation forms from cart page. Closes #3568 2013-09-23 15:47:47 +01:00
Patrick Garman 87c1c46317 Hide shipping address if shipping is disabled 2013-09-21 14:52:49 -05:00
Patrick Garman 52cf2b7628 Hide shipping address if shipping is disabled 2013-09-21 14:51:06 -05:00
Patrick Garman 249380562a Don't display shipping address if shipping is disabled 2013-09-21 14:13:51 -05:00
Mike Jolley 96a7a4b730 Restructure 'file_paths' to allow for names (Closes #3320) etc. For #2765.
@coenjacobs @justinstern @maxrice These are major changes - CC ing you
guys in to take a quick look through. I know some extensions such as
vouchers will be affected.
2013-09-20 17:01:09 +01:00
Mike Jolley 3ee6e2fa22 Validate rules, instead of doing it by key. Closes #3792. 2013-09-19 14:39:53 +01:00