Commit Graph

1211 Commits

Author SHA1 Message Date
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
Coen Jacobs 9fade8d6e4 Coupon labelling help, closes #2192 2013-01-10 11:26:28 +01:00
Ken Bass 1f3d8d5dfe Add Lost Password Page
Report when a page does not exist (PHP notice)
2013-01-09 11:31:15 -05:00
James Koster 07076d64f0 WooCommerce lightbox option desc 2013-01-08 14:28:26 +00:00
Mike Jolley b5e10315aa Load gateways during checkout + in settings. #2164 2013-01-07 17:23:09 +00:00
Mike Jolley 6a635e6041 Tax class settings fixes Closes #2167. 2013-01-07 16:35:24 +00:00
Mike Jolley 6e01481220 Fix restore nonce. Closes #2138. 2013-01-07 13:36:38 +00:00
Mike Jolley 5fb09d76d2 Ensure gateway class is loaded up when saving. Closes #2154. 2013-01-05 15:21:19 +00:00
Geert De Deckere 86abb2a7c8 Spelling fix for "visibilty" 2013-01-04 16:30:31 +01:00
Geert De Deckere 85afafb6ee Refactored the add/edit/delete attributes admin
- Code is now much more DRY.
- Always provide feedback for errors:
  - Error shown if attribute name, slug or type is left empty.
  - Error shown if attribute slug already exists.
- New error check added for attribute slug which should not be [a reserved term](http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms).
2013-01-03 20:25:10 +01:00
Mike Jolley a7899394c9 Move legend out of charts 2013-01-03 13:05:23 +00:00
swoelffel 6f67d07a11 Update admin/woocommerce-admin-settings.php
Remove unnecessary <div> close to prevent issue on payment gateways tabs (bacs, paypal)
2013-01-03 08:30:04 +01:00
Ken Bass e1ad11e2f7 Fix spelling errors in action/hook names 2013-01-02 11:34:23 -05:00
Mike Jolley c20e332863 Merge pull request #2103 from foxrunsoftware/master
Hooks for added customization
2013-01-02 04:13:30 -08:00
Mike Jolley 6821abc549 Store counts in a transient. Closes #2100. 2013-01-02 12:12:44 +00:00
Justin Stern b0f1e4b169 Javascript WooCommerce variations added trigger
Javascript trigger added to the ajax woocommerce add variations callback
2012-12-31 17:14:40 -05:00
Justin Stern 61b8df3255 Custom Product Attribute Taxonomy Types
Actions to allow for the support of custom product attribute taxonomy
types
2012-12-31 17:06:13 -05:00
Mike Jolley 5486ebb737 Shortcodes/Widgets -> classes, autoload classes to reduce memory, only load gateways when needed, change gateway admin to match shipping #1765 2012-12-31 18:25:09 +00:00
Mike Jolley 269b038c2e Add indexed to tables. #1765. Closes #2080. 2012-12-30 16:35:47 +00:00
Mike Jolley 8c9966145b Removed some unused code, removed order tracking from installer. #1765 2012-12-30 15:51:37 +00:00
Mike Jolley 96d6cc5980 More transient clearing tools 2012-12-30 15:02:24 +00:00
Manos Psychogyiopoulos c7c15fa856 Hooks for consistancy with writepanel-product-type-variable.php
writepanel-product-type-variable.php already allows filtering the
variation dropdown descriptions in metaboxes. No hook exists here to
take care of the Default Selections dropdown.
2012-12-30 14:00:37 +02:00
Mike Jolley b11b121d24 Use option from 1.6.6 to detect if an upgrade is needed. Closes #2054. 2012-12-29 18:58:17 +00:00
Mike Jolley b66deaa804 Shift + click for ranges, control and click for multiple rows #2080 2012-12-29 18:48:56 +00:00
Mike Jolley 534859de30 Search line items. Closes #2082. 2012-12-29 17:04:33 +00:00
Mike Jolley d5729f499b Fix tax importer. Closes #2067. 2012-12-28 19:37:56 +00:00
Mike Jolley a64ad5412a Password input. Closes #2057. 2012-12-28 19:22:51 +00:00
Mike Jolley 1e3abcb935 Use jquery-ui ver Closes #2056. 2012-12-28 19:12:02 +00:00
Mike Jolley 5507e8453f Remove depricated jQuery Closes #2039 2012-12-28 13:02:12 +00:00
Mike Jolley 51ab134142 Added thai states (Closes #2064), added files per state which get loaded only when the country is allowed, and hidden the informal setting unless needed for the lang.
Also moved languages and added an i18n folder for this kind of stuff.
2012-12-28 10:54:09 +00:00
Geert De Deckere c66a1af0be Fixed and improved column for featured status
- Bugfix: if the product was featured a double opening anchor tag would be used around the star image, breaking the link.
- Changed the title attribute from "Change" to "Toggle featured".
- Made alt attributes of the images translatable ("yes" and "no").
- Coding standards.
2012-12-28 07:44:02 +01:00
Mike Jolley a5a76a950b Cron offset #1971 2012-12-23 12:29:16 +00:00
Mike Jolley bdc61bfdce wc_product_type_ transient is unused 2012-12-21 08:44:15 +00:00
Mike Jolley c33ea11e25 $theproduct -> $the_product 2012-12-20 13:36:41 +00:00
Mike Jolley 3eabb171e7 keep product for products admin 2012-12-20 13:33:35 +00:00
Mike Jolley 6bb5ec424e placeholder images for hidden/secure files 2012-12-20 12:35:36 +00:00
Mike Jolley beaefd8ec7 downloadable uploader styling 2012-12-20 11:36:38 +00:00
Mike Jolley c8852bcf40 Revised, roduct gallery panel, images stored in meta = more flexibility. 2012-12-20 01:13:06 +00:00
Mike Jolley 7bd81503b5 Speed up orders page. #1765 2012-12-19 23:09:04 +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 0b7750e55a Attribute taxonomy transiant. #1765 2012-12-19 20:42:25 +00:00
Mike Jolley f6088cf7e8 Image uploader fixes kudos to justin 2012-12-18 23:16:55 +00:00
Mike Jolley fe92fb6a96 Work on media uploader 2012-12-18 21:56:01 +00:00
Mike Jolley f663a71550 Media upload (started) 2012-12-18 12:04:33 +00:00
Mike Jolley 940c556c40 Insert into button 2012-12-18 10:14:05 +00:00
Mike Jolley 2dc706095b Improve bulk actions and fix after save attributes. 2012-12-18 07:23:13 +00:00
Mike Jolley 01ff7b1083 Fix save attributes for custom attributes. Closes #2002. 2012-12-18 07:08:16 +00:00
Mike Jolley b468f89559 Link images and column header. #2003 2012-12-17 21:46:20 +00:00
Mike Jolley 487d749a03 fix tax saving 2012-12-17 19:29:39 +00:00
Coen Jacobs 7b5e74626a Remove pass by reference for objects
Done all files except for external libaries: shareyourcart, cssmin,
lessc

@mikejolley Should we update those libraries as well?
2012-12-15 12:53:32 +01:00
Mike Jolley 2410258bef Possible fix for #1967 install issue 2012-12-13 17:32:41 +00:00
Mike Jolley aa3afb7a85 Tax display tweaks. Default customer address option. 2012-12-13 16:38:47 +00:00
Mike Jolley 78d25ff557 cache fix from 1.6.6 2012-12-13 14:12:55 +00:00
James Koster cce3beaed1 link titles 2012-12-13 11:36:42 +00:00
James Koster 0244bf01a4 link titles 2012-12-13 11:22:30 +00:00
Mike Jolley 7976ae8a66 Order data/fixed keys. Closes #1981. 2012-12-13 00:47:40 +00:00
Mike Jolley 3af034755b Put holds on stock until orders are cancelled. Closes #1977. 2012-12-12 21:14:19 +00:00
Mike Jolley 988269534a removed refunds 2012-12-12 18:03:46 +00:00
Mike Jolley 88b7af1f3f Only show actions when needed. #1755 2012-12-12 16:00:11 +00:00
Mike Jolley fd8e15bbea Work on refunds admin. #1755 2012-12-12 15:32:51 +00:00
Mike Jolley f2ec7e1858 Tweak totals box. #1755 2012-12-12 14:05:19 +00:00
Mike Jolley a8fba0cf04 Tweaked installer and added new cron for scheduled sales. Closes #1971. 2012-12-12 12:52:39 +00:00
Mike Jolley a697ffbeb6 Coupon rework, reports, and styles. Closes #1862. 2012-12-11 17:02:48 +00:00
Coen Jacobs 084a247a20 Backend views for refunds #1755 2012-12-11 14:56:30 +01:00
Mike Jolley f95e0c6dfc should resolve loop warnings. Closes #1962. 2012-12-10 16:43:22 +00:00
Mike Jolley de1a7deefb Autocomplete if user tries to use full country name on tax page. 2012-12-10 15:36:53 +00:00
Mike Jolley 66eb090017 Image size option names. Closes #1953. 2012-12-10 11:33:26 +00:00
Mike Jolley e0416dcecc Order counts Closes #1945 2012-12-10 11:23:38 +00:00
Mike Jolley 5efdd56bc2 Clear count on delete. Closes #1945. 2012-12-07 11:39:43 +00:00
Mike Jolley 1828db4e7f show hide panels. Closes #1942. 2012-12-07 10:51:06 +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 a9b8f979ec woocommerce_wp_radio Closes #1935. 2012-12-06 16:54:44 +00:00
Mike Jolley 1a18fcf21c Merge pull request #1932 from KingYes/patch-3
Fixing quick set in Admin Variable.
2012-12-06 06:57:13 -08:00
Mike Jolley 1542ebb7f5 Wrapper classes. Closes #1933. 2012-12-06 14:43:52 +00:00
Yakir Sitbon 15b1190357 Fixing quick set in Admin Variable.
I just send fix for 'price' element in Quick edit for all my variables..

Thanks you again.
Yakir.
2012-12-06 13:52:27 +02:00
Mike Jolley 86adc50964 reports for subcats. Closes #1924. 2012-12-05 18:36:30 +00:00
Mike Jolley 0da50add7b Fix link variations on new posts. Closes #1925. 2012-12-05 17:57:53 +00:00
Mike Jolley 8a59a45177 Filter coupons by type. Closes #1909. 2012-12-05 16:26:04 +00:00
Mike Jolley b152995227 Prevent notices on upgrade. 2012-12-05 15:29:49 +00:00
Mike Jolley a0c4c2274f Tweak updater for #1911. 2012-12-05 15:24:39 +00:00
Mike Jolley c47b135ff5 Clear meta key after update. Closes #1911. 2012-12-05 15:21:31 +00:00
Mike Jolley bcc91f586d Use different sanitize functions for attribute names. Closes #1897. 2012-12-05 15:01:29 +00:00
Coen Jacobs 37feabd87f WooCommerce 2.0 is coming! 2012-12-03 20:19:58 +01:00
Mike Jolley 4e6b3b669c expand ranges 2012-12-03 17:03:21 +00:00
Mike Jolley a93e6b0599 import icon 2012-12-03 16:39:46 +00:00
Mike Jolley 60626d25f9 The display options for taxes 2012-12-03 16:37:08 +00:00
Mike Jolley 20a90cddf9 Fix checkbox export 2012-12-03 12:42:44 +00:00
Mike Jolley bcc60420da Importer and sample CSV 2012-12-03 12:42:44 +00:00
Mike Jolley 9eb63a8518 Save new tab tables 2012-12-03 12:42:44 +00:00
Mike Jolley fd467f7a1f install tax tables 2012-12-03 12:41:05 +00:00
Mike Jolley 7cd25bfdc5 Upgrade old rates to new structure 2012-12-03 12:41:05 +00:00
Mike Jolley 006c2c20b9 No longer needed 2012-12-03 12:41:05 +00:00
James Koster e7685f0a69 retina'd tick icons 2012-12-03 12:15:45 +00:00
James Koster 55e0d82be0 simple / retina'd tip icon 2012-12-03 11:57:04 +00:00
Mike Jolley aa7c6f582f Merge pull request #1886 from Geczy/show-first-report
Fix: Show first report tab & chart logically
2012-11-29 10:03:20 -08:00
Mike Jolley 29c14fe60e Fix page options. Closes #1884. 2012-11-29 18:01:10 +00:00
Mike Jolley 3c66ddae42 Class tweaks, need more testing. Closes #1874. 2012-11-29 16:48:40 +00:00
Matt 01bd682662 Fix: Show first report tab & chart logically 2012-11-29 09:39:00 -05:00
Mike Jolley 1edf98e95f Hook names for #1878 2012-11-29 12:45:44 +00:00
Mike Jolley 3e7c95c605 Merge pull request #1878 from Geczy/report-filters
Filters for Sales reports
2012-11-29 04:29:01 -08:00
Matt a84144985d Filters for Sales reports 2012-11-28 17:23:51 -05:00
Mike Jolley c2dfb2fd74 Use meta for order count. Closes #1810. 2012-11-28 20:24:01 +00:00
Mike Jolley a8a1af4ba3 Fix double tip Closes #1856. 2012-11-28 18:02:12 +00:00
Mike Jolley 20861b5809 Fix queries with double %% Closes #1875. 2012-11-28 17:14:27 +00:00
Mike Jolley 1596baabb8 Workaround Closes #1796. 2012-11-28 17:08:17 +00:00
Mike Jolley 171730d405 Checked the queries. Most were fine. Closes #1834. 2012-11-28 16:56:00 +00:00
Mike Jolley f578c5fbfd Pre post update for visibility 2012-11-28 16:03:24 +00:00
Mike Jolley fb06bde939 recount after stock change 2012-11-28 15:40:08 +00:00
Mike Jolley 2b5e867380 Debug option to recount terms. 2012-11-28 15:23:13 +00:00
Coen Jacobs 733d5bdb44 Added hooks to extend admin order item lines views 2012-11-28 13:12:54 +01:00
Matt f6e0a96a12 Fix invalid argument() when saving an order 2012-11-27 12:27:09 -05:00