Commit Graph

1208 Commits

Author SHA1 Message Date
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
Mike Jolley 2a462edc33 Support desc_tip in settings api Closes #2251. 2013-01-18 12:10:25 +00:00
Mike Jolley ad1eb92b4c Clean up variation display in admin. Closes #2241. 2013-01-17 11:23:11 +00:00
Mike Jolley fc0179e914 Use meta to prevent double tracking Closes #2248 2013-01-17 10:25:57 +00:00
Geert De Deckere e806d4c193 Created the `woocommerce_get_product_ids_on_sale()` function 2013-01-16 20:04:01 +01: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 d401cbd62d Tweaks to session handler 2013-01-16 11:05:50 +00:00
Mike Jolley 314ba3e2f6 Hooks for individual use overriding on the frontend 2013-01-16 10:42:49 +00:00
Coen Jacobs a0b3120438 Session cleanup should be part of implementation 2013-01-16 10:53:08 +01: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 815990f329 Fix category order + nesting Closes #2226. 2013-01-14 11:56:54 +00:00
Mike Jolley 192a8c5421 star ratings without images. 2013-01-14 10:51:06 +00:00
Mike Jolley 789361102e belau 2013-01-13 13:14:58 +00:00
Mike Jolley 52ecd654b7 Use a session cookie for recently viewed 2013-01-12 13:03:38 +00:00
Mike Jolley c2d45f49bd GET for price instead of sessions 2013-01-12 13:03:19 +00:00
Mike Jolley 4a650b21dd Only set transient when needed 2013-01-12 13:03:00 +00:00
Mike Jolley 8798ade9ca Only set customer data when changed from default 2013-01-12 13:02:47 +00:00
Mike Jolley 261f413405 Ratings in loops for sort by rating 2013-01-12 10:53:24 +00:00
Mike Jolley 0caca2d401 GET vars for sorting (to work better with cache) 2013-01-12 10:53:08 +00:00
Mike Jolley 8d8b3e3d30 get_post_data from 1.6 2013-01-11 18:30:09 +00:00
James Koster 2e223d8509 Missing $woocommerce #2182 2013-01-10 16:17:25 +00:00
Mike Jolley 2a71d08d44 Wrong email in paypal #2184 2013-01-10 16:03:56 +00:00
Mike Jolley 1766f07c19 Meta_queries Closes #2182. 2013-01-10 16:02:04 +00:00
Mike Jolley a7ca2c8717 Fix email settings and put back notification recipient. Closes #2184. 2013-01-10 15:17:37 +00:00