Commit Graph

1432 Commits

Author SHA1 Message Date
Mike Jolley ca4e353c3f Merge pull request #2753 from bradyvercher/patch-1
Fix Mijireh checkout typo.
2013-03-22 10:59:52 -07:00
Mike Jolley 6443710db5 Fix title ordering 2013-03-22 17:06:49 +00:00
Lee Willis 4aa2c898e4 Order bestselling products correctly, order term should be numerically sorted, not alphabetically. Props mulinski 2013-03-21 19:56:21 +00:00
Andrei Barabas 09b9e555d6 added support for woocommerce 2.x 2013-03-20 13:23:35 +02:00
Mike Jolley dc989bb2e9 Portugal missing state setting 2013-03-19 21:33:01 +00:00
Brady Vercher 5ea4bd3ac4 Fix Mijireh checkout typo. 2013-03-18 11:09:08 -07:00
Mike Jolley 87fbb21ff2 Removed Sidebar Login Widget. Use http://wordpress.org/extend/plugins/sidebar-login/ instead. A potential security issue was found regarding logging of passwords (since GET was used instead of POST). Sidebar Login 2.5 resolves this and the widget has been removed from WC to prevent needing to maintain two (virtually identical) codebases. 2013-03-18 15:24:29 +00:00
Mike Jolley 75a874ea7a Decode Closes #2728. 2013-03-18 13:37:07 +00:00
Mike Jolley 559ef34005 Tweaked default locale to include all fields so that checkout fields can fallback if specific properties are not set e.g. required. Closes #2681. 2013-03-18 12:02:36 +00:00
Mike Jolley 0addd13625 Merge pull request #2719 from maxrice/payment-complete-changes
Add filter to control order stock reduction when payment is complete
2013-03-18 03:20:51 -07:00
Mike Jolley 95d3353ec9 Tax label vs name in order emails. 2013-03-18 09:58:43 +00:00
Mike Jolley 4825db857a Merge pull request #2748 from justinstern/master
Product Variations Order Again Bug Fix and Stock Quantity Filters
2013-03-18 02:58:11 -07:00
Mike Jolley d59692625c Merge pull request #2733 from leewillis77/layered_nav_html_encoding
Encode URLs in layered nav widget
2013-03-18 02:47:09 -07:00
Justin Stern f4076b888f Product Stock Filters
Added a number of filters related to product stock to allow for improved
control over the stock handling and display
2013-03-18 01:38:22 -04:00
Lee Willis 3df4a82154 Encode URLs in layered nav widget 2013-03-15 21:28:01 +00:00
Mike Jolley 9f82986109 Possible star rating fix 2013-03-15 10:10:00 +00:00
Max Rice eed40279ac Add filter to control order stock reduction when payment is complete
Adds a 'woocommerce_payment_complete_reduce_order_stock' filter that
controls whether stock is reduced for an order when
WC_Order::payment_complete() is called
2013-03-14 12:00:31 -04:00
Mike Jolley dc6878cc2f Flat rate UI tweaks 2013-03-13 15:43:49 +00:00
Coen Jacobs c119f98734 Fixed adjust price function, thanks @lucasstark for reporting 2013-03-13 16:09:04 +01:00
Mike Jolley 43cc129942 PayPal standard gateway - no longer needs sandbox fix, and notify-validate should be first in the requests. 2013-03-13 11:58:47 +00:00
Mike Jolley 4f08369813 WC_Order_Item_Meta support for keys with multiple values. 2013-03-12 10:55:01 +00:00
Mike Jolley 256a38b5d8 Option for number of orders shown on view order page. 2013-03-11 16:12:29 +00:00
Mike Jolley 2da3900d2c Receiver email option. #2666 2013-03-11 10:36:51 +00:00
Ken Bass b8829266c4 Fixes hide cart if empty 2013-03-10 19:20:27 -04:00
Mike Jolley c247ca0bb7 Show download file names when linking. Shortens links and therefore closes #2631. cc @coenjacobs 2013-03-10 16:24:04 +00:00
Mike Jolley 8098754913 hide_cart_widget_if_empty compatibility with fragments. Closes #2642. 2013-03-10 15:20:42 +00:00
Mike Jolley 6f238650d1 Fix the page slurp 2013-03-10 14:33:27 +00:00
Mike Jolley 2cb9363c22 Put order on-hold which fail email address validation, rather than reject IPN completely. Closes #2653. 2013-03-10 13:51:59 +00:00
Mike Jolley afc6a55a45 Leave meta case alone 2013-03-10 13:39:00 +00:00
Mike Jolley 3cef861696 Shortcode tweak + readme #2570 2013-03-10 13:30:48 +00:00
Mike Jolley c89f723ce9 Merge pull request #2570 from ChromeOrange/master
New shortcode and checkout default value arg
2013-03-10 06:13:15 -07:00
Mike Jolley bf8feefb6d WC_START in checkout json requests to prevent notices breaking checkout. 2013-03-08 12:24:25 +00:00
Mike Jolley 5393fc7ddb Santize custom attributes. #2587 2013-03-07 19:34:29 +00:00
Mike Jolley 18f7e7eb14 Merge pull request #2618 from maxrice/custom-order-status-pay-page
Allow orders with custom statuses to use the pay page
2013-03-07 07:20:07 -08:00
Mike Jolley 7e2e795510 W Samoa 2013-03-07 11:01:06 +00:00
Max Rice 61bfe201d1 Add filters to allow orders with custom statuses to be paid/cancelled 2013-03-06 18:42:48 -05:00
Mike Jolley a9dc6510f4 Tweak from prices 2013-03-06 13:25:37 +00:00
Mike Jolley eb8c37844b Update tweaks for coen 2013-03-06 11:59:24 +00:00
Coen Jacobs 91fe9aca20 South Africa has provinces instead of states 2013-03-05 19:53:47 +01:00
Coen Jacobs 80ded8d0d5 South Africa states are back :) 2013-03-05 19:52:20 +01:00
Coen Jacobs d338195e3a South Africa does not require states field 2013-03-05 09:47:38 +01:00
Mike Jolley d80c88189c Fix frontpage shop with orderby Closes #2581. 2013-03-04 22:49:17 +00:00
Coen Jacobs 1b01a259f8 Always set user_meta, even if shiptobilling. Closes #2575 2013-03-04 12:17:48 +01:00
Pascal Borreli ae7899c67b Fixed typos 2013-03-03 17:07:31 +00:00
Andrew Benbow 9e8953ce28 Add short code to display products with attribute
Add ability to set default value on checkout fields
2013-03-03 14:51:25 +00:00
Mike Jolley 4913a09e54 Outlying territories -> states 2013-03-01 20:40:20 +00:00
Mike Jolley 15f4eaa81a Updated all docs links 2013-03-01 16:10:03 +00:00
Mike Jolley b1d613af6c Merge pull request #2541 from dgwatkins/master
Apply filters to custom attribute option names for translation
2013-02-28 07:29:02 -08:00
Mike Jolley f7d52e5393 Check if set 2013-02-28 14:59:44 +00:00
Brent Shepherd 9247e3277c Create WC standards compliant class name from term 2013-02-28 15:39:02 +10:00
Brent Shepherd 2eb8b26aad Use sanitized $product_type->name values
product_type term slugs are inconsistent so can not be used as unique
identifiers, but product_type term names may have white space and other
characters unsafe for option values, class names & or hooks, therefore,
product_type term names should be sanitized.
2013-02-28 15:39:02 +10:00
David Garcia Watkins 38a2aac997 Apply filters to custom attribute option names for translation 2013-02-27 15:14:05 +01:00
Mike Jolley 22376b8d73 order terms by parent Closes #2534. 2013-02-27 13:43:38 +00:00
Mike Jolley b8a92318e0 filter is_enabled boolean Closes #2535. 2013-02-27 10:10:40 +00:00
Mike Jolley 80b4ef14c9 Slugs are unreliable, and support show_if hide_if for all product types 2013-02-26 15:14:49 +00:00
Matt 31b3201a3c woocommerce_order_get_items filter on get_items() 2013-02-24 10:00:42 -05:00
Mike Jolley 38ac7a5fc2 woocommerce_coupon_loaded Closes #2506 2013-02-22 08:44:40 +00:00
Mike Jolley 3019d3b605 Merge pull request #2498 from dziudek/master
Fix for the HTML syntax error in the recent products widget form on the back-end
2013-02-21 02:15:58 -08:00
Neil Pie b6cc12b5e6 Update classes/abstracts/abstract-wc-email.php
whitespace
2013-02-21 09:31:45 +00:00
Neil Pie 39785ee760 Merge branch 'master' of github.com:woothemes/woocommerce 2013-02-21 09:23:47 +00:00
Neil Pie 633f353245 conditional for WC_Email template base in abstract constructor 2013-02-21 09:23:32 +00:00
Tomasz Dziuda c960019ad2 Fix for the HTML syntax error in the recent products widget form on the back-end
The problem was caused by unclosed paragraph tag.
2013-02-21 10:15:00 +01:00
Brent Shepherd 102cbe78b0 Make slug elements ucfirst for class name
For example, instead of `WC_Product_Variable_subscription` create the
class name `WC_Product_Variable_Subscription`.
2013-02-21 16:32:20 +10:00
Brent Shepherd 4ceb988536 Use product_type slug not sanitized term name 2013-02-21 15:13:23 +10:00
Neil Pie 9b984bac5f sloppy whitespace 2013-02-21 00:59:21 +00:00
Neil Pie 11835b1004 Brings correct template path format into line with WC generate file paths 2013-02-21 00:57:46 +00:00
Neil Pie 11782d4f2b Fixes issue with displaying email template path in admin 2013-02-21 00:39:38 +00:00
Ken Bass b53dee1770 Undo change from hyphen to underscore 2013-02-20 17:40:32 -05:00
Mike Jolley 59ff162e5a Coupon amounts for after tax discount. Closes #2485. 2013-02-20 22:09:57 +00:00
Mike Jolley c696c99cee woocommerce_error class 2013-02-20 20:52:38 +00:00
Mike Jolley 3d0001700d Merge pull request #2491 from krbvroc1/widget_login_fix
Undo esc_html and fix class name
2013-02-20 12:51:09 -08:00
Ken Bass 9a51b63174 Change esc_html to wp_kses and fix class name 2013-02-20 15:49:14 -05:00
Mike Jolley b8c3e159de Query published coupon. Closes #2487. 2013-02-20 20:48:40 +00:00
Mike Jolley 35d5e2997a Work with 4dp for discounts so totals add up. Closes #2476. 2013-02-20 18:50:28 +00:00
Mike Jolley e0ef659cb9 Reset after showing shortcode. Closes #2475. 2013-02-20 18:10:03 +00:00
Mike Jolley 5f304f0534 Incorrect Constant Closes #2477. 2013-02-20 17:55:13 +00:00
Mike Jolley f5f01c497e Changes for API Docs 2013-02-20 17:14:51 +00:00
Ken Bass 23d6677c28 Allow user error message on filtered invalid coupon error messages 2013-02-18 14:05:23 -05:00
Mike Jolley 8b666eb71f Min fee Closes #2464 2013-02-18 16:41:32 +00:00
Mike Jolley 807ec3a106 Prepend constants, renamed functions, split messages from errors. #2456 2013-02-18 12:29:10 +00:00
Mike Jolley 79b273f87c Merge pull request #2456 from krbvroc1/coupon_naming
Add ability to filter 'coupon code'
2013-02-18 03:19:13 -08:00
Mike Jolley 346ec52794 Customer id 2013-02-15 21:18:46 +00:00
Mike Jolley 018259b41f Record all discounts. Closes #2455. 2013-02-15 10:27:09 +00:00
Mike Jolley a98de826f0 Tidied up order display #2452 Added new line count function 2013-02-15 09:54:06 +00:00
Ken Bass fe8a34a069 A different attempt 2013-02-14 23:18:58 -05:00
Ken Bass b0a5402f11 Add ability to filter 'coupon code' 2013-02-14 19:29:55 -05:00
Mike Jolley 18ab00d10d escape for #2441 2013-02-14 16:50:45 +00:00
Mike Jolley 24fff87877 Merge pull request #2441 from yitzchak/patch-2
Update classes/integrations/google-analytics/class-wc-google-analytics.p...
2013-02-14 08:26:34 -08:00
Mike Jolley a0393f3a52 Resume failed orders 2013-02-14 15:37:05 +00:00
yitzchak a0dfdad79b Update classes/integrations/google-analytics/class-wc-google-analytics.php
Added SKU tracking for shop loop
2013-02-13 14:31:21 -05:00
yitzchak c8bb71c2c7 Update classes/integrations/google-analytics/class-wc-google-analytics.php
Added use of product SKU to "Add to cart" event.
2013-02-13 13:35:10 -05:00
Mike Jolley 66666f6bd8 API endpoints - some gateways don't like query strings 2013-02-13 12:38:19 +00:00
Mike Jolley 60e3628076 Hook on order creation. Closes #2438. 2013-02-13 09:38:54 +00:00
Mike Jolley 30e6beb861 Fix buttons and externals. Closes #2437. 2013-02-13 09:29:00 +00:00
Mike Jolley 0b46347efc Prevent notices. 2013-02-12 13:52:50 +00:00
Mike Jolley 0efa9d1792 #2430 get_called_class with product type fallback for 5.2 2013-02-12 12:15:49 +00:00
Mike Jolley 29eb289c3b Tweak messages #2430 2013-02-12 11:49:26 +00:00
Mike Jolley 8bc3a0934a Merge pull request #2432 from thenbrent/deprecated-paypal-class
Add deprecated WC_Paypal class
2013-02-12 02:55:15 -08:00
Mike Jolley 3a734e230e Merge pull request #2431 from thenbrent/deprecated-find-rate-args
Deprecate old params for WC_Tax->find_rates()
2013-02-12 02:55:02 -08:00
Andrew Benbow e7c0834b90 Update classes/widgets/class-wc-widget-product-categories.php
Title correction
2013-02-12 10:51:42 +00:00
Brent Shepherd 24081effd6 Deprecate old params for WC_Tax->find_rates()
Instead of quietly ignoring params passed in the WC 1.x order for
WC_Tax->find_rates(), check for their existance, throw a deprecated
notice & massage them into the WC 2.0 structure.
2013-02-12 17:00:10 +10:00
Brent Shepherd 1c4c5d8da4 Add deprecated WC_Paypal class
WC_Paypal was removed in 2.0 in favour of WC_Gateway_Paypal, this
patch deprecates the original WC_Paypal class & returns an instance
of the WC_Gateway_Paypal object instead of potentially causing a
fatal error.
2013-02-12 16:46:56 +10:00
Mike Jolley 6a24222dfb Settings should be an array 2013-02-11 15:07:51 +00:00
Mike Jolley b67492fe68 Hide thumbnails when empty. Closes #2409. 2013-02-11 14:17:57 +00:00
Mike Jolley bc51d5652b Put back coupon option. 2013-02-11 13:53:24 +00:00
Mike Jolley 7a84ddd6c1 Tidied up settings, removed some un-needed settings, and made some settings automatic e.g. coupons disabled if no coupons exist 2013-02-10 23:02:52 +00:00
Mike Jolley 64f8726d80 Extra hooks for thanks page (retrieving the order id) 2013-02-10 16:06:38 +00:00
Mike Jolley 45ea0fc852 Change template name 2013-02-10 16:05:40 +00:00
Mike Jolley f70162177a Don't count twice Closes #2384. 2013-02-08 17:58:54 +00:00
Mike Jolley a7fdba79fb Workaround for pad_counts. Closes #2363. 2013-02-08 16:30:45 +00:00
Mike Jolley 61587d925c woocommerce_paypal_supported_currencies hook #2372 2013-02-08 15:18:59 +00:00
Mike Jolley f7dd3eea65 Strings. Closes #2385. 2013-02-08 15:11:10 +00:00
Mike Jolley d09bc3ad46 Fix tax display 2013-02-06 18:07:52 +00:00
Coen Jacobs 70039f7018 Indonesia has provinces instead of states. Closes #2367 2013-02-05 22:55:21 +01:00
Mike Jolley 62a2575d2b tax class 2013-02-05 16:43:28 +00:00
Mike Jolley 8f43d9cf8b If a product type does not exist, default to SIMPLE Closes #2360. 2013-02-05 11:28:28 +00:00
Mike Jolley 808b24ba5a Merge pull request #2348 from krbvroc1/insert_user_fix
Check wp_insert_user for WP_Error
2013-02-04 01:01:43 -08:00
Ken Bass 5b80c9460a Check wp_insert_user for WP_Error 2013-02-03 13:41:47 -05:00
Mike Jolley 9afa9df0b2 class 2013-02-03 12:19:36 +00:00
Mike Jolley d8396924e3 ZW closes #2328. 2013-02-01 14:53:44 +00:00
Coen Jacobs d55b8410f1 Portugal does not require states/provinces. Closes #2327 2013-02-01 11:56:40 +01:00
Mike Jolley e83d4c3274 Tweak session set and calc totals + add woocommerce_cart_loaded_from_session hook 2013-01-31 14:42:50 +00:00
Mike Jolley b214e052bc Comment Closes #2319. 2013-01-31 11:48:04 +00:00
Mike Jolley b6fa2e72fc escape Closes #2314. 2013-01-31 11:48:04 +00:00
Mike Jolley fb67343611 Tweak content. Closes #2311 2013-01-29 13:58:57 +00:00
Mike Jolley 1cded83298 Merge pull request #2313 from aj-adl/master
#2311 fix for "Exclude sale items from coupons"
2013-01-29 05:31:35 -08:00
aj-adl a766771740 removed unnecessary line 2013-01-29 05:23:52 -08:00
Alex Bishop 793a143432 #2311 Fix for 'Exclude sale items from coupon'
included a checkbox on the coupon writepanel for the option

Had issues originally, worked out the in_array() needed to be a strict
type as woocommerce_get_product_ids_on_sale() has a '0' string in it.

Tested using 3.5.1 + git clone of WooCommerce
2013-01-29 23:47:52 +10:30
Alex Bishop f78d3a0e13 Revert "Added 'Exclude Sale Products' option to coupons"
This reverts commit b763c7449a.
2013-01-29 23:41:58 +10:30
Alex Bishop 64641a6239 Revert "idiotic missed semicolon"
This reverts commit 4c1f80b23d.
2013-01-29 23:41:58 +10:30
Alex Bishop 75187073a9 Revert "ditto"
This reverts commit 0818bb055e.
2013-01-29 23:41:57 +10:30
Alex Bishop b391e66cf7 Revert "Updated everything so it actually works rather than fails hard"
This reverts commit 2379a3a1bb.
2013-01-29 23:41:57 +10:30
Alex Bishop 13de8d9203 Revert "Reset, please ignore"
This reverts commit 3e59e64da3.
2013-01-29 23:41:57 +10:30
Alex Bishop 3e59e64da3 Reset, please ignore
Long Story.
2013-01-29 23:41:00 +10:30
Mike Jolley 4c7812ebb2 Shortcode fix Closes #2299. 2013-01-29 13:01:09 +00:00
Alex Bishop 2379a3a1bb Updated everything so it actually works rather than fails hard
I messed up badly on the original with inheritance of variables, and
after a lot of issues realised that strict matching was necessary due
to the '0' string in woocommerce_get_products_on_sale()

Not hard to tell I am new to php.

Regardless this now functions as intended, stopping discount from being
applied to products with active sale prices or carts with items on sale
inside them.
2013-01-29 22:55:03 +10:30
Alex Bishop 0818bb055e ditto 2013-01-29 14:06:08 +10:30
Alex Bishop 4c1f80b23d idiotic missed semicolon
I cannot brain today, I has the dumb.
2013-01-29 14:04:31 +10:30
Alex Bishop b763c7449a Added 'Exclude Sale Products' option to coupons
Added exclude sale products functionality based of the 'exclude product
ids' functionality in wc-coupon/wc-cart.

Compares product ID's in cart vs ID's in the array
'woocommerce_get_product_ids_on_sale'
2013-01-29 13:54:54 +10:30
Mike Jolley 23952237da Merge pull request #2292 from GeertDD/address_fields_filter
Also pass on the country to the address fields filters
2013-01-27 11:01:17 -08:00
Mike Jolley 0c523d30b1 @coenjacobs See this. Custom ajax handler and cart refresh per page load to get around cache issues. Custom handler foes *feel* a little wrong but since it doesn't load admin, it loads 100% faster. 2013-01-27 18:55:30 +00:00
Mike Jolley 4f0d7f55c6 Cleaned up session classes 2013-01-27 18:55:29 +00:00
Geert De Deckere 4a33b00c15 In Belgium and the Netherlands we have provinces 2013-01-27 12:26:26 +01:00
Geert De Deckere 5233900283 Also pass on the country to the address fields filters 2013-01-27 12:22:06 +01:00
Mike Jolley b19985060c Only save session if needed @coenjacobs 2013-01-23 12:27:19 +00:00
Lee Willis 57af52f43d Populate $current_user when users create an account during checkout 2013-01-22 21:30:14 +00:00
Mike Jolley 9e72c6a879 Pevent error if no fragments are returned 2013-01-22 14:30:21 +00:00
Mike Jolley 34966373ad When editing checkout fields, only refresh totals if required address fields are filled. 2013-01-20 15:36:25 +00:00
Mike Jolley 128b333578 Fix checkout field visibility after switching country 2013-01-20 13:10:36 +00:00
Mike Jolley 88d3057f93 S Korea has no states. Closes #2257. 2013-01-20 12:50:39 +00:00