Commit Graph

12458 Commits

Author SHA1 Message Date
Claudio Sanches f48a5443e4 Updated the shortcode attributes for the new names 2017-08-28 17:57:39 -03:00
Claudio Sanches acad44e3c9 Auto map legacy attributes to the new ones 2017-08-28 17:45:56 -03:00
Claudio Sanches 8115886433 Improved WC_Shortcode_Products possible attributes names 2017-08-28 17:27:35 -03:00
Claudio Sanches 08db6a91c8 Merge pull request #16631 from woocommerce/feature/pre-search-customers
Pre query filter for search customer method.
2017-08-28 17:18:52 -03:00
Claudio Sanches c571b6767b Merge pull request #16606 from woocommerce/update/widgets-16132
Widget depth settings and improvements
2017-08-28 16:37:05 -03:00
Claudio Sanches c9dc585a7f Fixed coding standards 2017-08-28 16:36:32 -03:00
Claudio Sanches c03520a661 Allow pre query filter return an empty array 2017-08-28 16:23:12 -03:00
Claudio Sanches d5aae55725 Prevent "Argument #N is not an array" warning when WP_User_Query returns null 2017-08-28 16:15:19 -03:00
Claudio Sanches f8c18ba899 Introduced pre query filter to WC_Customer_Data_Store::search_customers() 2017-08-28 16:14:13 -03:00
Claudiu Lodromanean b46262c3c6 Merge pull request #16613 from woocommerce/feature/15979-2
Allow [products] to be used instead of any other product shortcode
2017-08-28 10:35:03 -07:00
Claudiu Lodromanean c36a6811c5 Merge pull request #16600 from woocommerce/feature/15979
Introduces WC_Shortcode_Products class
2017-08-28 10:33:35 -07:00
Claudio Sanches 500ee02dfa Allow [products] to be used instead of any other product shortcode
This allow `[products]` to be used instaed of `[product_category]`,
`[featured_products]`, `[sale_products]`, `[best_selling_products]`,
`[recent_products]`, and `[top_rated_products]`.

Ref #15979
2017-08-25 20:04:53 -03:00
Claudio Sanches b6f789fc56 Improved WC_Shortcode_Products code 2017-08-25 19:39:43 -03:00
Claudio Sanches b032a82381 Fixed coding standards 2017-08-25 19:25:19 -03:00
Claudio Sanches 32ea76f09f Render product_attribute shortcode results with WC_Shortcode_Products 2017-08-25 19:07:10 -03:00
Claudio Sanches ddeea547b1 Use WC_Shortcode_Products inside featured_products shortcode 2017-08-25 18:42:02 -03:00
Claudio Sanches 72df581c6f Use WC_Shortcode_Products inside top_rated_products shortcode 2017-08-25 15:55:34 -03:00
Claudio Sanches c0da59d75a Use WC_Shortcode_Products inside best_selling_products shortcode 2017-08-25 11:46:47 -03:00
Claudio Sanches 3dabdda480 Apply WC_Shortcode_Products class into sale_products shortcode 2017-08-25 11:00:48 -03:00
Mike Jolley 1c303c159c Notes 2017-08-25 12:52:49 +01:00
Mike Jolley 9fa685eb71 wp_dropdown_categories is viable again! 2017-08-25 12:49:51 +01:00
Mike Jolley 55d75cdcb7 Add max depth option to widget
Closes #16132
2017-08-25 12:49:40 +01:00
Mike Jolley ff5228e944 Standardise widget titles and descriptions
Follow the same pattern as core WP widgets, including title case.
Avoids terms like ‘layered nav’ which has no real meaning to new users.
2017-08-25 12:07:17 +01:00
Mike Jolley 3b3ceebc1f Merge pull request #16579 from Chouby/action_before_import
Add action woocommerce_product_import_before_import
2017-08-25 11:19:20 +01:00
Claudio Sanches 0cea847c63 Renamed $loop_name to $type 2017-08-24 22:22:42 -03:00
Claudio Sanches d7bea55aae Use WC_Shortcode_Products to render product shortcode results 2017-08-24 22:16:42 -03:00
Claudio Sanches 9b1a047c6f Use WC_Shortcode_Products inside recent_products shortcode 2017-08-24 21:31:58 -03:00
Claudio Sanches 71019aadfe Moved woocommerce_shortcode_products_query filter to parse_query_args 2017-08-24 21:24:51 -03:00
Claudio Sanches 461066d2b1 Allow query products by category on products shortcode 2017-08-24 21:24:05 -03:00
Claudio Sanches 429aecd400 Allow set loop name 2017-08-24 20:20:14 -03:00
Claudio Sanches a398e4893c Fixed static method and added default value for construct method 2017-08-24 20:11:18 -03:00
Claudio Sanches 51e80b944b Apply new WC_Shortcode_Products class into WC_Shortcodes::products 2017-08-24 19:33:14 -03:00
Claudio Sanches 7958f9cca9 Ignore coding standards 2017-08-24 19:17:18 -03:00
Claudio Sanches 84cf4d0be8 Fixed query args 2017-08-24 18:59:04 -03:00
Rami Yushuvaev 323c177bb0 i18n: Avoid using HTML tags in translation strings
Old translation string:

* `If you like <strong>WooCommerce</strong> please leave us a %s rating. A huge thanks in advance!`

New translation string:

* `If you like %1$s please leave us a %2$s rating. A huge thanks in advance!`
2017-08-25 00:39:13 +03:00
Claudio Sanches 4f18cea88b Removed extra comments, params and static method 2017-08-24 15:30:44 -03:00
Claudio Sanches 321832ade4 Introduced new WC_Shortcode_Products class 2017-08-24 15:29:30 -03:00
Claudio Sanches abb9886df1 Merge pull request #16592 from woocommerce/fix/16587
If no title is set when uploading images, use filename
2017-08-24 12:05:48 -03:00
Mike Jolley 7a817ee103 Added back missing discount row
Closes #16586
2017-08-24 12:49:49 +01:00
Mike Jolley 8e6085b2c0 If no title is set when uploading images, use filename
Closes #16587
2017-08-24 12:33:53 +01:00
Claudiu Lodromanean 56e1207903 Merge pull request #16583 from woocommerce/update/apply-fees
Improved apply fees
2017-08-23 13:35:18 -07:00
Mike Jolley 25fb505fc4 Debug 2017-08-23 16:42:58 +01:00
Claudio Sanches b46f5c91e4 Merge pull request #16584 from ramiy/patch-1
i18n: Avoid using HTML tags in translation strings
2017-08-23 11:51:28 -03:00
Claudio Sanches 0bf1aa1cb0 Merge pull request #16581 from woocommerce/fix/16577
Imported non-published variations should be private, not draft
2017-08-23 11:47:04 -03:00
Mike Jolley 9d877a3b34 Unused vars 2017-08-23 14:40:34 +01:00
Mike Jolley 2beddc59a7 docblocks 2017-08-23 14:38:00 +01:00
Mike Jolley e0de3643bc ID is unused 2017-08-23 14:28:25 +01:00
Mike Jolley 9483a7ec19 invalid return 2017-08-23 14:27:30 +01:00
Mike Jolley c60859bf3c types 2017-08-23 14:27:10 +01:00
Mike Jolley a7b697b679 type checks 2017-08-23 14:25:41 +01:00