Commit Graph

277 Commits

Author SHA1 Message Date
Mike Jolley 3c8c620c5d Bulk/quick edit backorders Closes #3729 2013-09-06 11:17:41 +01:00
Luke Stevenson fcfdee8ec7 Added "Demo Store" Class to Body
Adding "woocommerce-demo-store" class to body when option
"woocommerce_demo_store" is enabled.
(Handy to push down content to allow for banner, etc.)
2013-09-06 02:13:57 +10:00
Mike Jolley b883e92ba1 Fix from .14 2013-09-05 14:52:34 +01:00
Mike Jolley 4cf8e9ebde Remove echo 2013-09-04 18:13:09 +01:00
Mike Jolley 0405fabf69 Alt changes from .14 2013-09-04 17:22:35 +01:00
Mike Jolley ffa53754ac get_categories returns string Closes #3720 2013-09-04 14:57:12 +01:00
Mike Jolley 02af8a00a5 woocommerce_address_to_edit #3690 2013-09-04 14:57:12 +01:00
Mike Jolley aef58e8bf3 Merge pull request #3697 from BFTrick/fix-email-html-encoding
Removing HTML Decoding From Email From Name
2013-09-04 06:50:20 -07:00
Mike Jolley 402544afdb Merge pull request #3724 from corsonr/master
Added woocommerce_get_featured_product_ids() to get featured products IDs
2013-09-04 06:49:57 -07:00
Mike Jolley 14e27bb073 Fixes from .14 2013-09-04 14:32:16 +01:00
Remi Corson dcf34ed51b Merge branch 'master' of https://github.com/woothemes/woocommerce 2013-09-04 15:17:21 +02:00
Patrick Rauland 793303d2ad adding esc_html back in to properly escape html from email from name 2013-09-04 07:24:01 -05:00
Mike Jolley e1631bd084 Reloads checkout after registration which fixes #3612, removes some notices preventing login cookie being set, moves cart check for #3162
No perfect solution for #3162. DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +01:00
Remi Corson 3499e6fd73 Added woocommerce_get_featured_product_ids() to retrieve featured products IDs within an array 2013-09-04 11:17:13 +02:00
Patrick Rauland 80fc4ab0a7 allowing quotes in store name 2013-09-03 17:11:03 -05:00
Mike Jolley 5e51ef1fce Refactor variation bulk edit JS Fixes #3148 2013-09-03 17:35:20 +01:00
Mike Jolley b797cdb672 Handle local pickup taxes when getting taxable address 2013-09-03 16:26:06 +01:00
Coen Jacobs 6c3cd27be7 Allow false values to hide desc_tip. Closes #3691 2013-09-03 17:22:59 +02:00
Mike Jolley 9472646609 Customisable query vars. #3708 2013-09-03 16:14:56 +01:00
Mike Jolley 75f9dfabc6 Remove round for percent discounts. Closes #3717 2013-09-03 13:45:38 +01:00
Mike Jolley 807534095e Introduce WC_HTTPS Helper to handle redirects and make checkout urls https before visiting them. Fixes #3311 2013-09-03 13:03:05 +01:00
Mike Jolley 7179900b75 Send tax inclusive, rounded item price to google. Fixes #3718
@coenjacobs .14?
2013-09-03 11:19:49 +01:00
Mike Jolley d7a68b68f2 Merge pull request #3696 from BFTrick/product-tabs-clean-input
Making Sure the User Doesn't Submit Garbage to woocommerce_sort_product_tabs Function
2013-09-02 09:45:25 -07:00
Mike Jolley 54b3d53a1b Flag a refresh when creating an account to prevent nonce issues. Fixes #3612.
@coenjacobs Might be for .14? Part of it anyway, can't cherry pick this
one.
2013-09-02 17:43:57 +01:00
Mike Jolley d1b020b661 Add a script to add support for RTL when enabled to fix chosen. Fixes #3604
@coenjacobs maybe for .14?
2013-09-02 14:22:53 +01:00
Brent Shepherd f9a42a497d Pass instance of WC_Order to its filters
So that extensions hooking to the filters know which order the current
filter is being applied to and can perform customisation on specific
orders (not just all orders).

Conflicts:
	includes/class-wc-order.php
2013-09-02 14:31:11 +02:00
Patrick Rauland fe4b13d36d removing html decoding from email from name 2013-08-27 12:23:42 -05:00
Patrick Rauland c074d64096 making sure the user doesn't submit garbage to woocommerce_sort_product_tabs 2013-08-27 10:40:21 -05:00
Coen Jacobs 9ba80fb34b Check for strlen to allow 0 values in attributes. Closes #3675
Conflicts:
	admin/post-types/writepanels/writepanel-product_data.php
2013-08-26 12:24:25 +02:00
Adrian Dimitrov a44ec58746 Adding support for percentage factor of additional costs. 2013-08-25 14:59:58 +03:00
Mike Jolley 64d87cbef7 Make logout an endpoint. Still hide it from menus. Fixes #3589
@coenjacobs do we need to do something about this for .14? Will leave
for you next week :)
2013-08-23 16:41:02 +01:00
Mike Jolley 5289193021 Echo or return current page title. Closes #3660 2013-08-23 14:54:38 +01:00
Mike Jolley 27053e1abd escaping 2013-08-22 17:20:28 +01:00
Mike Jolley 6902aa852c Fix fatal error when sending order mail 2013-08-22 12:25:32 +01:00
Mike Jolley 27f844b274 Key value pairs for order_meta 2013-08-22 12:25:17 +01:00
Mike Jolley 126068de8c Moved options around for checkout settings. 2013-08-22 12:11:19 +01:00
Mike Jolley 3d078397b3 Merge branch 'Re-organise-settings'
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
Mike Jolley 4c06169c8d Merge pull request #3656 from dimitrov-adrian/patch-2
Adding BGN currency and currency symbol.
2013-08-21 14:03:31 -07:00
Patrick Rauland fa6814c03d adding Vietnamese dong currency 2013-08-21 12:24:51 -05:00
Adrian Dimitrov c8fe103cd0 Adding BGN currency and currency symbol. 2013-08-21 10:29:44 +03:00
Andrew White e05e970d6a Add hooks for overriding default email inline styles
Currently any h1, h2, h3, a and img tags in a HTML email without a
style attribute will have a default inline style applied to them.
These styles are hard-coded and cannot currently overridden without
patching the source code.

This commit adds two filter hooks that allows the theme developer to
override both the list of tags that have a default style applied to
them and the default styles applied to each tag. The hooks are:

1. woocommerce_email_style_inline_tags
This filter hook returns an array of tags which will have a default
style applied to them - you can both remove and add any tags which
you need for your theme's custom emails.

2. woocommerce_email_style_inline_{name}_tag
This filter is called for every tag name returned by the filter hook
woocommerce_email_style_inline_tags. The styles are passed as an
associative array so you can both add and remove any of the default
styles applied by WooCommerce.

Fixes #3597.
2013-08-20 23:33:26 +01:00
Mike Jolley 5f2e489944 simpler woocommerce_get_product_schema function.
Closes #3297.
2013-08-20 13:52:06 +01:00
Mike Jolley aa470ad390 refactor args for woocommerce_product_dropdown_categories
Closes #3218
2013-08-20 13:32:38 +01:00
Mike Jolley 40a1cb446e Tweak label Closes #3515 2013-08-20 12:57:43 +01:00
Mike Jolley 7dee6790eb Check sale price against active price, optimise woocommerce_get_product_ids_on_sale
Fixes #3563
2013-08-20 12:52:17 +01:00
Mike Jolley f0853d5208 Pass text attributes when ordering again Fixes #3422 2013-08-20 12:17:56 +01:00
Mike Jolley 2e6aaa9ede Hide password protected posts from loop, prevent adding to cart, hide product content. Closes #3617. 2013-08-19 18:19:27 +01:00
Mike Jolley 44b9c72651 Improve cart update performance. Closes #3495. 2013-08-19 15:19:51 +01:00
James Koster 55eef35e36 shortcode columns. closes #3534 2013-08-19 15:12:20 +01:00
Mike Jolley 16ed6e4faf Make sort orders affect other get_terms calls Closes #3439. 2013-08-19 14:31:52 +01:00
Mike Jolley 3aac277d52 Add shipping fields to search Closes #3603 2013-08-19 13:37:38 +01:00
Mike Jolley 3a4b83cffe Fix encoding in layered nav. Fixes #3600
@coenjacobs for .14
2013-08-19 13:12:49 +01:00
Mike Jolley 0b8dd0476c PayPal PDT handler Closes #3414 2013-08-19 12:28:29 +01:00
Mike Jolley 759e49a60b Correctly format product names in paypal. Fixes #3308.
@coenjacobs for .14 please
2013-08-19 11:44:41 +01:00
Mike Jolley 03e3e6e9ca Load thumbnails Fixes #3581
@coenjacobs this needs applying to .14
2013-08-17 02:01:54 +01:00
Mike Jolley 061283f675 Hookable default checkbox status Closes #3595 2013-08-17 01:55:05 +01:00
Mike Jolley 9a7580ff1e dumps 2013-08-17 01:44:56 +01:00
Mike Jolley fe8a81110b Merge pull request #3634 from BFTrick/set-default-shipping-rates
Setting Default Shipping Rates for Flat Rate Shipping
2013-08-16 17:39:25 -07:00
Mike Jolley df52bfd0ad #3630. Closes #3425. 2013-08-17 01:19:56 +01:00
Mike Jolley 9c55bb2b10 Accept multiple filters Closes #3572 2013-08-17 01:09:22 +01:00
Mike Jolley 66ba2c83ed Merge pull request #3637 from thenbrent/master
Add default timezone section to System Status
2013-08-16 09:25:50 -07:00
Mike Jolley 49aaa9a773 Merge pull request #3643 from sjeden/patch-1
Remove need for min-width:150px; in shipping setting admin panel.
2013-08-16 09:24:58 -07:00
Coen Jacobs 5ebc15cafb Merge branch 'Dynamic-total-rows'
Conflicts:
	assets/css/admin.css
2013-08-16 18:21:52 +02:00
Mike Jolley 2428c9f268 Expand when calculating totals 2013-08-16 17:00:49 +01:00
Mike Jolley a66472d148 Order panel improvements + save multiple shipping methods 2013-08-16 16:43:26 +01:00
sjeden 0617d6e7f0 Remove need for min-width:150px; in shipping setting admin panel.
Doesn't affect the standard WordPress display but if you are using MP6 makes extended width radio buttons.
2013-08-16 12:12:47 +01:00
Mike Jolley cd81c29195 Tweak help strings 2013-08-15 16:59:03 +01:00
Mike Jolley 7cd4e46846 Cleaner orders items, and show meta in text until editing.
@coenjacobs this commit has the urldecode fix. Will move it over to
master/.14 later
2013-08-15 16:49:09 +01:00
Patrick Rauland 2f6d907b13 adding exact time to order notes 2013-08-15 08:42:08 -05:00
Mike Jolley 281ed667cf Handle paypal cancelled reversals 2013-08-15 11:19:30 +01:00
Coen Jacobs 62a9200386 Made methods static that were referenced from static 2013-08-15 11:23:52 +02:00
Coen Jacobs 423522f05a Made methods static that were referenced from static 2013-08-15 09:22:38 +00:00
Mike Jolley e01df544ec Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
@todo store shipping methods in the order
@todo test with PP shipping real world

cc @coe
2013-08-14 21:00:34 +01:00
thenbrent 3dcf4de538 Add default timezone section to System Status 2013-08-14 11:21:49 -07:00
Patrick Rauland 69f45fb39b setting default shipping rates 2013-08-14 10:42:43 -05:00
Mike Jolley 9ce810fdcf Needs shipping filter 2013-08-14 10:53:08 +01:00
Mike Jolley 5c07464fd0 To prevent pebkac Closes #3628 2013-08-13 17:26:21 +01:00
Mike Jolley 64e1b091a0 Add a dedicated hook for adding fees. Closes #3611. Fixes #3352
@coenjacobs we might want this in .14 for some extensions in audit.
2013-08-13 17:19:20 +01:00
Mike Jolley d021980c10 Rather than have hooks *everywhere* use a single set stock function in admin and on the frontend Closes #3593 2013-08-13 16:56:09 +01:00
Mike Jolley 8db53a8d9d esc_attr Fixes #3451 2013-08-13 14:55:02 +01:00
Mike Jolley 131f692855 Tweak download handler Closes #3394. 2013-08-13 14:53:55 +01:00
Mike Jolley 6dae4bcc0d Merge pull request #3627 from Geczy/master
Filter on the shortcode products query
2013-08-13 06:14:56 -07:00
Mike Jolley 2b31cdb360 Cart item data templates Closes #3216. 2013-08-13 14:14:24 +01:00
Mike Jolley aa3601f517 Remove white space. Closes #3499. 2013-08-13 13:17:32 +01:00
Mike Jolley b12d5a7377 Optimise sale query. Closes #3264. 2013-08-13 13:14:32 +01:00
Matt 776f1eb7db Filter on the shortcode products query 2013-08-13 08:08:41 -04:00
Mike Jolley 0ff59bcd5b remove deprecated function. Closes #3582. 2013-08-13 13:02:20 +01:00
Mike Jolley 48c9d25ea5 Merge pull request #3619 from dominic-p/filter-logon-creds
Filter Request: Login Credentials
2013-08-13 04:47:09 -07:00
Mike Jolley d015432b9c Merge pull request #3624 from BFTrick/remove-whitespace-in-shipping-classes
Remove Spaces in Favor of Tabs in Shipping Classes
2013-08-13 04:46:07 -07:00
Mike Jolley 7fda2bd832 Search for US/UK on country field. Fixes #3626. 2013-08-13 12:38:26 +01:00
Mike Jolley b62747a810 Tax rates pagination. Closes #3036. 2013-08-13 12:18:24 +01:00
Patrick Rauland 4d4645eee4 remove spaces in favor of tabs in shipping classes 2013-08-12 16:09:04 -05:00
Dominic cfbbaa4b5e Filter Request: Login Credentials
I'm trying to add a "remember me" option to my login form. WordPress
supports this, but it's hardcoded to always on in the WC form handler.
Since you can't tell a difference in PHP between an unchecked checkbox
and no checkbox at all, this seems like the simplest alternative that
maintains backwards compatibility. Thanks.
2013-08-10 12:31:17 -07:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00
thenbrent 64832114ee Replace deprecated $wpdb::escape() with esc_sql()
Conflicts:
	admin/settings/settings-tax-rates.php
2013-08-09 14:56:39 +02:00
Mike Jolley 14a66489f7 Croatia is EU Fixes #3615.
@coenjacobs .14
2013-08-09 11:11:53 +01:00
Mike Jolley ff79e99f70 Merge pull request #3594 from markoheijnen/Fix-php5.5
Move return class after class definition. Fixes PHP 5.5 fatal errors.
2013-08-09 03:09:12 -07:00
Mike Jolley 5ead65e118 Merge pull request #3606 from ragulka/bulk-edit-field-type
Change quick/bulk edit stock quantity field type to number
2013-08-09 02:59:30 -07:00
Mike Jolley 6bc0a1cef7 Merge pull request #3607 from ragulka/product-quick-edit-hooks
Add product quick edit start & end action hooks
2013-08-09 02:59:05 -07:00
Mike Jolley d74122251c Merge pull request #3602 from BFTrick/add-lang-to-system-status
Adding WPLANG to System Status
2013-08-09 02:58:15 -07:00