Commit Graph

1122 Commits

Author SHA1 Message Date
Mike Jolley fb67343611 Tweak content. Closes #2311 2013-01-29 13:58:57 +00: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 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
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 c51613910b Fix bulk edit. Closes #2283. 2013-01-28 11:18:14 +00:00
Mike Jolley 4f0d7f55c6 Cleaned up session classes 2013-01-27 18:55:29 +00:00
Mike Jolley 1cb13fe740 more json fixes #2268 2013-01-22 16:48:28 +00:00
Frank Martin 7154b96ae1 Random tab 2013-01-22 16:12:19 +00:00
Frank Martin 56d98eed79 Remove items and item meta on permanent delete 2013-01-22 16:06:48 +00:00
Mike Jolley c41d96dba1 Fix saving as array #2259 2013-01-21 13:10:48 +00:00
Mike Jolley 7fceb30c07 Fix multiselect name Closes #2259 2013-01-21 10:48:26 +00:00
Brent Shepherd cf240d96a3 Don't convert zero values to empty string
PHP's empty() function returns true for 0, 0.00, "0.00" and other 0 variants.
That means woocommerce_process_shop_order_meta() will convert item meta with
a 0.00 or similar value to an empty string, which can break things that expect
a float or number. This commit fixes that.
2013-01-21 16:02:52 +10:00
Brent Shepherd 547ea85451 More descriptive variable name 2013-01-21 15:53:41 +10:00
Mike Jolley feacc239ce mutlselect case #2259 2013-01-20 15:38:55 +00:00
Mike Jolley e731d4f3e7 cleanup save function 2013-01-20 13:44:05 +00:00
Mike Jolley 9fb2f9e6d2 dont trigger tab actions for shipping/billing 2013-01-20 13:38:45 +00:00
James Koster ef23efdcfb Order status icons
completed = check
pending = dash
cancelled = cross
failed = altert
on-hold = clock
refunded = arrows
processing = dots
2013-01-18 14:23:43 +00:00
Geert De Deckere aebb79e160 Fix fatal error, `empty()` only supports variables (prior to PHP 5.5) 2013-01-17 18:02:14 +01:00
Mike Jolley ad1eb92b4c Clean up variation display in admin. Closes #2241. 2013-01-17 11:23:11 +00:00
Coen Jacobs 380268216e Merge pull request #2244 from entr/patch-1
Empty $integrations array prevents defining $links
2013-01-17 00:46:42 -08:00
Coen Jacobs b62e3eca17 Prefer empty function over ! count for this #2246 2013-01-17 09:44:33 +01:00
Coen Jacobs 93e55e19e0 Merge pull request #2246 from entr/patch-2
Issue #2245 / Disable Integrations Tab if empty
2013-01-17 00:43:18 -08:00
Gerhard 5f42ae6145 Find term based on id instead of slug, if you use numbers as term names it conflicts with the ids since has_term searches on id, slug and name when a string is passed but only on ids when integers are passed. 2013-01-17 08:53:27 +02:00
entr e33fb78cf6 Issue #2245 / Disable Integrations Tab if empty 2013-01-16 18:20:25 +02:00
entr 039dfbd94b Empty $integrations array prevents defining $links
Empty $integrations array prevents defining $links which causes a notice for undefined var and warning in `implode()`
2013-01-16 17:46:40 +02:00
Mike Jolley 7eb82f1070 Prompt for variation price since its required. 2013-01-16 12:16:31 +00:00
Mike Jolley 5c878f62b3 Variations should not inherit prices, and variations with no price set should be hidden. Closes #2232.
Also improves price display for empty/free variations.
2013-01-16 12:10:51 +00:00
Mike Jolley 9da6eb690a Revised session handler based with some code from Eric Manns wp_session class idea.
The (long term) plan will be to use that when stable and in WP core.
Until then, our wc_session_ implementation will work.

This is similar to what we had, with the exeption of not using
transients to ensure the data persists.

@coenjacobs please view this.
2013-01-15 19:51:19 +00:00
Mike Jolley 24ae660405 fix session expirey and clear old expired sessions 2013-01-15 11:37:20 +00:00
Mike Jolley 0d6e510b8d Fix reports Closes #2211. 2013-01-14 17:11:55 +00:00
Mike Jolley d002632ea6 ui datepicker. Closes #2223. 2013-01-14 10:57:15 +00:00
James Koster 0fdf9032ec Revert "loop ratings an option"
This reverts commit a23fde9491.
2013-01-12 15:55:52 +00:00
James Koster a23fde9491 loop ratings an option 2013-01-12 14:24:22 +00:00
Mike Jolley 0caca2d401 GET vars for sorting (to work better with cache) 2013-01-12 10:53:08 +00:00
Mike Jolley ad79ab9c1f Closes #2214. 2013-01-11 13:29:00 +00:00
Mike Jolley 19cfd8d8f1 Chart label #2211 2013-01-11 11:42:04 +00:00
Mike Jolley 86b7508a51 Hide more tax. #2205. 2013-01-11 11:29:13 +00:00
Mike Jolley abd3f521ec Hide tax options when disabled. Closes #2205. 2013-01-10 16:37:27 +00:00
Mike Jolley 8baa368ffa Fixed report dates Closes #2206. 2013-01-10 16:27:22 +00:00
Mike Jolley 349308ccdb Upgrade lost password page Closes #2202. 2013-01-10 15:37:02 +00:00
Mike Jolley a7ca2c8717 Fix email settings and put back notification recipient. Closes #2184. 2013-01-10 15:17:37 +00:00
Mike Jolley 7f1369e01a Merge pull request #2203 from krbvroc1/writepanel-fixes
Fix PHP Warnings
2013-01-10 06:39:57 -08:00
Ken Bass 6ca9d5d552 Fix PHP Warning 2013-01-10 09:35:33 -05:00
Mike Jolley d3e5877953 Check meta exists Closes #2183. 2013-01-10 14:19:27 +00:00
Mike Jolley 235cda133a Filter on low in stock product objects. Closes #2177. 2013-01-10 14:13:50 +00:00
Mike Jolley 8f7dd65656 Fix quick edit Closes #2130 2013-01-10 12:11:04 +00:00
Coen Jacobs 4411297099 Prefer empty function over is_null. #2191 2013-01-10 11:33:26 +01:00
Coen Jacobs 71ed6e08f3 Merge pull request #2191 from krbvroc1/lost_password_status
Add lost password page to System Status page
2013-01-10 02:31:43 -08:00