Commit Graph

140 Commits

Author SHA1 Message Date
Brent Shepherd e2c50cd529 Set $variation object when add variation via ajax
When the variation-admin-html.php template is loaded on the Edit
Product screen, $variation is a WP_Post Object. When the template
is loaded by woocommerce_add_variation() handling an Ajax call,
$variation is an array. This commit makes $variation consistent so
functions hooking to 'woocommerce_product_after_variable_attributes'
and 'woocommerce_variation_options' receive the same variable type
regardless of what initiated the template loading.
2013-02-28 15:37:51 +10:00
Mike Jolley 505f9f0b43 Stock increase/descrease alerts Closes #2536. 2013-02-27 12:50:02 +00:00
Jason Judge 8b33de17c3 Update woocommerce-ajax.php 2013-02-22 16:30:01 +00:00
Ken Bass 9a51b63174 Change esc_html to wp_kses and fix class name 2013-02-20 15:49:14 -05:00
Mike Jolley 5f304f0534 Incorrect Constant Closes #2477. 2013-02-20 17:55:13 +00:00
Mike Jolley 807ec3a106 Prepend constants, renamed functions, split messages from errors. #2456 2013-02-18 12:29:10 +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 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 fdfa0d6efb QTY Closes #2280. 2013-01-28 11:42:03 +00:00
Mike Jolley b211894d3c Get cart from ajax or local storage to prevent cache 2013-01-28 10:59:24 +00: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 a3e5748369 Add to cart json #2268 2013-01-22 16:33:33 +00:00
Frank Martin f1a3957f4c Remove random var_dump(), add filter for ajax customer details load 2013-01-22 13:06:51 +00:00
Mike Jolley ad1eb92b4c Clean up variation display in admin. Closes #2241. 2013-01-17 11:23:11 +00:00
Geert De Deckere 5da944af3c Use correct Content-Type header for JSON output 2013-01-16 16:00:11 +01:00
Geert De Deckere e122c78cab A few more CSS class updates #2086 2013-01-03 13:21:26 +01:00
Mike Jolley c8852bcf40 Revised, roduct gallery panel, images stored in meta = more flexibility. 2012-12-20 01:13:06 +00:00
Mike Jolley f972501dfa get_post_meta instead of get_post_custom - cut out the middleman. #1765 2012-12-19 21:01:15 +00:00
Mike Jolley 01ff7b1083 Fix save attributes for custom attributes. Closes #2002. 2012-12-18 07:08:16 +00:00
Mike Jolley 0f0512c8fd rounding filters. Closes #1964. 2012-12-13 01:23:35 +00:00
Mike Jolley 988269534a removed refunds 2012-12-12 18:03:46 +00:00
Mike Jolley fd8e15bbea Work on refunds admin. #1755 2012-12-12 15:32:51 +00:00
Mike Jolley c273da1aff Customer note + email on refund action. #1755. 2012-12-12 13:57:15 +00:00
Mike Jolley 81290a9ceb wp_kses_post #1109 2012-12-11 17:10:35 +00:00
Coen Jacobs 084a247a20 Backend views for refunds #1755 2012-12-11 14:56:30 +01:00
Mike Jolley bfcb3ec1e9 Load options in checkout class and ensure hooks are available to change the options. Closes #1950. 2012-12-10 12:34:59 +00:00
Mike Jolley be40e982b6 Small fix for previous commit, for adding rows. 2012-12-06 19:54:11 +00:00
Mike Jolley e3698f99ed Rounding fixes, and link tax rows to tax rates by ID.
Also closes #1869 as it allows us to use 'codes' for tax rates instead
of their label. E.g. code US-AL-Tax-1. This lets users filter taxes in
reports easier.
2012-12-06 19:49:04 +00:00
Mike Jolley 0da50add7b Fix link variations on new posts. Closes #1925. 2012-12-05 17:57:53 +00:00
Mike Jolley d9dbaa70c9 meta fix 2012-12-05 17:16:36 +00:00
Mike Jolley e26f6e357c First image is featured. Closes #1890. 2012-12-05 16:04:46 +00:00
Yakir Sitbon 6bc3598586 Fixing SQL syntax in woo.._product_ordering().
Your sql syntax not good, please check my fix.

Thanks you. ;]
Yakir.
2012-12-04 15:15:01 +02:00
Mike Jolley b1ec4b289a Nuked whitespace. Closes #1846. 2012-11-27 16:22:47 +00:00
Mike Jolley db1d4e58ed Create, update, save variations. Closes #1806. 2012-11-27 10:34:02 +00:00
Matt 8243974004 Add address to customer session. Closes #1836 2012-11-26 20:56:48 -05:00
Mike Jolley b0fa6d4481 Save attributs via ajax and refresh variations. Closes #1804. 2012-11-26 17:27:55 +00:00
Mike Jolley 54941092a2 Notices. Closes #1805. 2012-11-26 14:07:58 +00:00
Mike Jolley 069325862a remove instanceof 2012-11-21 18:39:51 +00:00
Mike Jolley 75ca794bba Separate classes per product type, with new get_product function and hooks to change the classes which get loaded. #1497 2012-11-21 18:07:45 +00:00
Mike Jolley fde2d939da Hook when linking variations. 2012-11-15 10:58:43 +00:00
Coen Jacobs b1b7a99402 Refunds: Check refunded status per line before doing refund
in order to prevent multiple refunds of the same line item
2012-11-13 17:01:17 +01:00
Coen Jacobs a617694e0f Refunds: Allow manual refunds without gateway calls 2012-11-13 16:26:07 +01:00
Coen Jacobs 3da5ccdafe Merged 'refunds' into 'fees-and-shipping'. Closes #1746 2012-11-13 16:03:42 +01:00
Mike Jolley 32c474ef42 Also update order tax 2012-11-13 14:59:28 +00:00
Mike Jolley 7e5d2ac174 Calc totals/tax rows rework 2012-11-13 14:54:34 +00:00
Coen Jacobs c99ec141d8 Refunds: Bug fixes in getting right gateway object 2012-11-13 15:18:26 +01:00
Coen Jacobs b4d17940de Refunds: Bug fix, missing closing ) 2012-11-13 15:14:11 +01:00
Coen Jacobs 3eedea457e Refunds: Store refunded amount and refund var per line item 2012-11-13 15:10:06 +01:00
Coen Jacobs 8f865ca550 Refunds: Call to payment gateway providing the order item id 2012-11-13 14:32:40 +01:00