Commit Graph

1425 Commits

Author SHA1 Message Date
Nabeel Sulieman ffed9a945e Update CSS files 2017-05-31 09:37:38 -07:00
Mike Jolley c53c83aebb Tweak test and styling 2017-05-31 09:36:32 -07:00
Nabeel Sulieman 10e8c2d82e Use circular controls to indicate radio button on shipping wizard
Regenerate CSS and JS files
2017-05-31 09:35:10 -07:00
Nabeel Sulieman cd2da7fd07 Change style of checkbox in shipping wizard 2017-05-31 09:34:24 -07:00
Nabeel Sulieman c49fa38e2c Make units controls look the same for touted and non-touted
Rename local functions to "location"
2017-05-31 09:33:50 -07:00
Nabeel Sulieman 290fffd053 Update css files using grunt 2017-05-31 09:33:19 -07:00
Nabeel Sulieman 1122faf760 Implement WooCommerce Services NUX in Setup Wizard:
- Rename "shipping locale" to "shipping location"
- Move tax setup to to shipping location page
- Rename shipping & taxes to just shipping
- Implement radio button selection to enable/disable shipping
- Add checkbox for installing WooCommerce services
- Start updating wc-admin css and javascript
2017-05-31 09:31:57 -07:00
Valerie e7672d6572 Enable WCS banner on shipping extension page 2017-05-31 09:27:17 -06:00
Valerie 870e3ddea2 Add WCS banner addons block markup 2017-05-31 09:26:17 -06:00
Mike Jolley 532ddfa6b0 Merge conflicts 2017-05-31 12:23:52 +01:00
Mike Jolley 85b8d8661a Merge pull request #14595 from woocommerce/feature/helper
Helper: First pass at merging the Helper plugin into WooCommerce
2017-05-30 20:39:08 +01:00
Konstantin Kovshenin 1dc7e507b1 Helper: Redesign (work in progress) 2017-05-30 20:50:14 +03:00
Mike Jolley 7f0fcac090 Merge branch 'feature/product-csv-import-export' into feature/product-csv-import-non-existing-data
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-05-25 17:58:34 +01:00
Mike Jolley c790e4be7c Fix styling in firefox 2017-05-25 15:39:53 +01:00
Mike Jolley b821c24955 Restore top actions 2017-05-25 12:36:03 +01:00
Mike Jolley 15f47e00a2 Merge branch 'master' into feature/13088
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-05-23 16:35:17 +01:00
Mike Jolley a1a79e57b5 Merge branch 'master' into pr/14896
# Conflicts:
#	assets/js/frontend/single-product.min.js
2017-05-23 16:22:18 +01:00
Mike Jolley b140f61510 Merge branch 'master' into fix/14578
# Conflicts:
#	assets/js/frontend/single-product.min.js
2017-05-23 15:09:20 +01:00
Mike Jolley b1a5b23629 Done screen handling and form tweaks 2017-05-23 15:05:32 +01:00
Mike Jolley 65474b0e49 Minify 2017-05-23 11:04:17 +01:00
Mike Jolley cde32be82d Done step and styling 2017-05-19 13:25:03 +01:00
Mike Jolley 1617c62f47 Export text tweaks 2017-05-19 12:03:34 +01:00
Mike Jolley c3c966b5fd Add handles so drag and drop does not break edit on mobile
Fixes #15118
2017-05-18 15:22:12 +01:00
claudiulodro 7db993c88b Reprocess css 2017-05-17 14:58:21 -07:00
claudiulodro 2ab0fdfe78 Styling 2017-05-17 14:55:20 -07:00
Mike Jolley 956b1a6181 Adds storefront/theme step to the setup wizard
Also includes a background install to get Storefront installed and
activated on demand.

To test, use a default theme and go to wp-admin/index.php?page=wc-setup
The theme step will be after payments!
2017-05-17 17:42:18 +01:00
Mike Jolley a6537ff269 export styling 2017-05-17 14:22:41 +01:00
Mike Jolley d67fb8fb83 New style import controller
Closes #15107
2017-05-17 14:16:38 +01:00
Mike Jolley 5939939244 Wizard and blank state 2017-05-16 15:36:56 +01:00
Mike Jolley 6949ee162e Reduce visual noise 2017-05-16 15:05:11 +01:00
Mike Jolley e777b4d557 Merge branch 'feature/product-csv-import-export' into feature/csv-exporter 2017-05-12 21:03:20 +01:00
Mike Jolley ee7240de9c Styling 2017-05-12 21:01:27 +01:00
Mike Jolley 523d9d27cd Styling 2017-05-12 20:40:54 +01:00
Mike Jolley 8fe0f03a95 Type exporting 2017-05-12 14:48:30 +01:00
Mike Jolley ca3f38377c Handle clearing for 3, 4, and 5 columns
Fixes #14990
2017-05-10 18:35:02 +01:00
Mike Jolley fd3bf05017 Working prototype exporter for products 2017-05-10 17:22:08 +01:00
Mike Jolley 3289bee968 Clear left every 4 thumbnails
Fixes #14819
2017-05-08 14:46:58 +01:00
Claudio Sanches 3f31cdf6ff Fixed "Process to checkout" button color in Twenty seventeen dark theme
Fixes #14833
Closes #14834
2017-05-05 17:43:13 -03:00
refael iliaguyev fdc410b35c Remove 'bourbon' dependency. It's been replaced with automated prefixing tool. 2017-05-05 16:40:34 +03:00
refael iliaguyev 7fd88d1c7a Remove css prefixes in select2.scss 2017-05-05 16:34:38 +03:00
refael iliaguyev 24ae852635 Remove css prefixes in auth.scss 2017-05-05 16:34:23 +03:00
refael iliaguyev dabeb87f4c Remove css prefixes in activation.scss 2017-05-05 16:34:11 +03:00
refael iliaguyev 3f8f7d4f87 Remove css prefixes from mixins 2017-05-05 16:33:58 +03:00
refael iliaguyev cb41972e7d Remove css prefixes in admin.scss 2017-05-05 16:33:33 +03:00
refael iliaguyev 97efdc1f2c Remove css prefixes in dashboard.scss 2017-05-05 16:32:53 +03:00
refael iliaguyev 676404e42d Remove css prefixes in reports-print.scss 2017-05-05 16:32:40 +03:00
refael iliaguyev ade652310a Remove css prefixes in twenty-seventeen.scss 2017-05-05 16:32:13 +03:00
refael iliaguyev ef9361999b Remove css prefixes in wc-setup.scss 2017-05-05 16:31:58 +03:00
refael iliaguyev a56a8d18bf Remove css prefixes in woocommerce.scss 2017-05-05 16:31:30 +03:00
Claudio Sanches 80652660f9 Properly setup autoprefixer #14800 2017-05-04 19:29:40 -03:00
refael iliaguyev 8a155f2707 Replace grunt-autoprefixer with grunt-postcss 2017-05-04 00:41:10 +03:00
refael iliaguyev 54cc17109c load grunt autoprefixer 2017-05-04 00:15:01 +03:00
Mike Jolley d0ebf48da4 Merge branch 'fix-13625'
# Conflicts:
#	assets/css/woocommerce-layout-rtl.css
#	assets/css/woocommerce-layout.css
#	assets/css/woocommerce-layout.scss
#	includes/wc-core-functions.php
2017-04-27 18:05:34 +01:00
Mike Jolley ad578137be No need to wrap - leave styling to themes 2017-04-27 18:03:42 +01:00
Mike Jolley 52612435e3 minify 2017-04-27 13:55:04 +01:00
Mike Jolley 1959f5bc84 Merge pull request #14739 from helgatheviking/issue-14738/select2-sortable-cursor
Fix the move cursor for sortable select2 inputs.
2017-04-27 13:54:21 +01:00
Mike Jolley 5f63f81b72 Merge branch 'add/inline-terms'
# Conflicts:
#	assets/js/frontend/single-product.min.js
2017-04-27 12:37:46 +01:00
Mike Jolley 3403e39740 Add icons and fix links 2017-04-27 12:23:16 +01:00
Mike Jolley 8f5a8b0ede Merge pull request #13898 from rellect/sass_woocommerce
Remove deep nesting where not necessary (woocommerce.scss)
2017-04-27 12:07:29 +01:00
Mike Jolley de54358650 Merge pull request #13896 from rellect/sass_admin
Remove deep nesting where not necessary (admin.scss)
2017-04-27 12:05:26 +01:00
Mike Jolley 2cd490a372 Merge pull request #14714 from woocommerce/fix/14693
Fix handle position
2017-04-27 10:42:40 +01:00
Kathy Darling a6b0100cb4 Fix the move cursor for sortable select2 inputs. partially closes #14738. 2017-04-26 17:39:26 -05:00
Mike Jolley 162ed72f8e Hide notice only when updating
Closes #14554
2017-04-26 15:02:13 +01:00
Konstantin Kovshenin ec951c5c57 Helper: Fix CSS selectors structure
See: https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/#structure
2017-04-26 16:03:03 +03:00
Mike Jolley 73adc1c493 Fix handle position
Closes #14693
2017-04-26 11:52:43 +01:00
Mike Jolley 076d2c9336 Minify 2017-04-26 11:43:12 +01:00
Beka Rice 344269c267 Fix tooltip display with shipping zone modals 2017-04-21 16:22:14 -04:00
Konstantin Kovshenin e8b9bc8f98 Helper: First pass at merging the Helper plugin into WooCommerce
* Connect a site to a WooCommerce.com account
* List available product subscriptions
* Activate/deactivate subscriptions and extensions
* Serve updates for active subscriptions
2017-04-21 15:05:44 +03:00
Mike Jolley 5b9ee32c49 Give zoomed images a bg color so it supports transparent PNG
Fixes #14515
2017-04-19 10:44:56 +01:00
Mike Jolley 34d170a004 Fix tip position for RTL
Closes #14478
2017-04-18 12:37:59 +01:00
Claudio Sanches cabdc39913 Merge pull request #14441 from woocommerce/fix/14323
Give arrow buttons z-index
2017-04-17 13:12:55 -03:00
Mike Jolley d72096e1be Merge branch 'pr/14454' 2017-04-17 15:07:57 +01:00
Mike Jolley 870ed75995 minify 2017-04-17 15:07:47 +01:00
avinapatel f06edd0123 Fixed checkout page css issues. ref #14381 2017-04-17 17:39:20 +05:30
Mike Jolley 8820e3c135 Give arrow buttons z-index 2017-04-17 11:53:15 +01:00
Mike Jolley 2eb9405caa Fix notice styling 2017-04-11 11:40:42 +01:00
Claudio Sanches 8baef77b5c Prevent fix to be included to RTL, part of #13909 2017-04-06 16:38:11 -03:00
Claudio Sanches 168a4a3096 Merge pull request #13909 from woocommerce/fix/prevent-only-color-picker-to-flip
Prevent RTL flip only color picker inputs
2017-04-05 21:21:38 -03:00
Mike Jolley 0d1d1fa715 Include clearfix on billing and shipping wrappers.
Fixes #13957
2017-04-05 22:05:08 +01:00
Claudio Sanches b9b76f3388 Fixed colorpicker align with other inputs 2017-04-05 14:31:59 -03:00
refael iliaguyev 4f5f3f251e remove deep nesting where not really necessary 2017-04-04 20:14:33 +03:00
refael iliaguyev 3d53d746c1 remove deep nesting when not necessary 2017-04-04 19:30:16 +03:00
Claudio Sanches 514ce648b5 Minify CSS 2017-04-04 09:23:44 -03:00
Mike Jolley 62bd505bda CSS transition 2017-03-31 15:16:10 +01:00
Mike Jolley 0c2ab2dabb Fade gallery in after delay to avoid flash
Closes #13847
2017-03-31 13:53:37 +01:00
refael iliaguyev d8cd0a7550 prevent flipping of color input in rtl 2017-03-22 22:12:07 +02:00
Claudiu Lodromanean 7c8c17d284 Enable oembeds in short descriptions 2017-03-17 11:39:17 -07:00
Mike Jolley dfd602ef23 Style item meta after checkout
cc @jameskoster
2017-02-28 12:46:22 +00:00
Mike Jolley 9394aae90d Style tidyup
Closes #13254
2017-02-21 11:39:17 +00:00
Claudio Sanches 542fea3d85 Merge pull request #13230 from woocommerce/quantity-actions-and-grouped-products
Quantity actions and grouped handling
2017-02-17 14:14:36 -02:00
Mike Jolley 81bad72c78 When showing sold individually item in grouped template, use checkbox 2017-02-17 15:53:15 +00:00
James Koster 8b31da7db5 Photoswipe button hover styles in twenty seventeen 2017-02-17 14:48:54 +00:00
Claudiu Lodromanean 5bb7e6e514 Move admin.css select2 dependency to gruntfile 2017-02-10 15:14:07 -08:00
Claudiu Lodromanean 8d2fd29396 Don't rtlcss select2.css 2017-02-10 11:39:28 -08:00
Mike Jolley 234b4cfa91 Merge pull request #13009 from woocommerce/gallery-tweaks
Gallery tweaks
2017-02-09 12:34:23 +00:00
Claudiu Lodromanean e45adc14ed Bring up-to-date with master 2017-02-06 10:10:41 -08:00
Claudiu Lodromanean f376684732 Make 2-column checkout form inputs flip on RTL 2017-02-06 09:59:31 -08:00
Claudiu Lodromanean b237e06dd4 Get tiptips working correctly in RTL mode 2017-02-03 10:41:31 +01:00
Claudiu Lodromanean c220f38ba8 12170 Style tweaks for email "From" address input to improve RTL compatibility 2017-02-01 18:41:14 +01:00
Claudiu Lodromanean 9fadeacfdc Tweak shipping zones button styling to handle RTL better 2017-02-01 10:25:42 +01:00
Claudiu Lodromanean a52ce6d21e Tweak variations checkbox margins 2017-01-31 19:05:21 +01:00
Mike Jolley efcbdc3031 Tweaks for #12805
Closes #12805
2017-01-31 17:25:57 +01:00
Claudiu Lodromanean da22e021f9 Tweak admin tabs CSS to look good in LTR and RTL modes. 2017-01-31 10:09:56 +01:00
Mike Jolley 24608370ab Style thumbnails 2017-01-27 15:34:50 +00:00
Claudiu Lodromanean 754a12c88a 12170 Set up RTL generation and enqueuing 2017-01-20 10:29:48 -08:00
Claudio Sanches ac3d847a16 Fixed file permissions 2017-01-17 16:31:31 -02:00
James Koster f0c35ed45e Display (toggle-able) terms inline on the checkout rather than opening a new window 2017-01-17 15:18:23 +00:00
Claudio Sanches 9c27661dea Synchronized with master 2017-01-12 17:53:15 -02:00
James Koster e77d3114f9 twenty seventeen styling tweaks
* Buttons in messages
* Method selector in shipping calculator
2017-01-09 15:40:10 +00:00
Mike Jolley 7622733267 Disabled styles 2017-01-04 12:20:47 +00:00
Mike Jolley b7d9799a95 Keep page numbers visible in 2017
Fixes #12703
2017-01-03 15:08:31 +00:00
Mike Jolley 823e78bdae Add move cursor for sortable select2 2017-01-03 11:38:43 +00:00
Jon Surrell 90ef632fa5 Colorize leveles in db log table 2016-12-29 12:03:59 +01:00
Jon Surrell a9f5a0f7b1 Define column sizes for log table 2016-12-29 12:02:54 +01:00
Mike Jolley 92968492a0 Customer search 2016-12-21 14:18:33 +00:00
Mike Jolley 96877dbb25 Fix product search inputs 2016-12-21 13:23:26 +00:00
Mike Jolley 56fef5b4f6 More styling settings tweaks 2016-12-21 11:36:48 +00:00
Mike Jolley b7a544ec40 Match WP UI 2016-12-21 11:24:28 +00:00
Mike Jolley fd11262be2 Fix multiselect styling 2016-12-21 11:06:47 +00:00
Mike Jolley badf8d7d55 Add select2 script and CSS 2016-12-20 16:45:22 +00:00
Mike Jolley 5a6639e483 Help tip alignment
Fixes #12636
2016-12-19 15:49:25 +00:00
Mike Jolley 2e77e38d33 colour -> color
#12627
2016-12-19 11:41:48 +00:00
Tiago Noronha 5866927312 Blank state button styling. 2016-12-13 23:30:47 +00:00
Mike Jolley 47fbae4d26 Product Visibility Taxonomies (#12527)
* Convert visibility and featured to taxonomy

* Comment

* Add missing tax_queries

* Only check SKU after read.

* Added visibility term for outofstock products to speed those queries up al

* wc_bool_to_string
2016-12-08 10:56:45 +00:00
James Koster 65a08a3467 checkout. #12038 2016-11-29 13:17:15 +00:00
James Koster b436e78b07 cart styling #12038 2016-11-29 12:13:43 +00:00
James Koster b208f9cbec account / cart / checkout layout. #12038 2016-11-29 11:37:40 +00:00
James Koster 2a1f8488d1 reviews #12038 2016-11-29 10:34:37 +00:00
James Koster 7f9e69e91d border on required asterisk. #12038 2016-11-28 17:54:43 +00:00
James Koster 3cb181df22 message links #12038 2016-11-28 17:50:20 +00:00
James Koster b8b6f7623b tweaked the remove button styles. #12038 2016-11-28 17:45:06 +00:00
James Koster bfac876b4d gallery / summary margin. #12038 2016-11-28 15:28:12 +00:00
James Koster 26ccc9deef footer area cart widget links. #12038 2016-11-28 15:26:23 +00:00
James Koster 583de21429 search widget. #12038 2016-11-28 15:06:32 +00:00
James Koster 388775935c average rating widget #12038 2016-11-28 15:01:14 +00:00
James Koster f6481088e3 price filter widget #12038 2016-11-28 14:57:36 +00:00
James Koster 6150cb8049 layered nav widget. #12038 2016-11-28 14:52:43 +00:00
James Koster 7888e7b2ca cart widget. #12038 2016-11-28 14:49:18 +00:00
James Koster caf9d27ca9 review avatar #12038 2016-11-28 13:32:26 +00:00
James Koster 80b2a1a272 messages. #12038 2016-11-28 13:26:02 +00:00
James Koster 1a77b4734e more single product tweaks. #12038 2016-11-28 13:12:17 +00:00
James Koster fad0cab4fe tweak the overall layout for WooCommerce pages. #12038 2016-11-28 12:52:18 +00:00
James Koster 0be148b739 product tabs. #12038 2016-11-28 12:47:04 +00:00
James Koster 03cf58b1b4 product galleries. #12038 2016-11-28 12:33:46 +00:00
James Koster 1cdd783bec hide the featured image (added by 2017) on product pages. #12038 2016-11-28 12:14:15 +00:00
James Koster e3ac9d94af various styles; pagination, prices, sale. #12038 2016-11-25 16:34:30 +00:00
James Koster 2e07cca674 breadcrumbs #12038 2016-11-25 16:18:50 +00:00
James Koster 78d8b125bc rename button mixin. #12038 2016-11-25 16:14:57 +00:00
James Koster 70cee3d1ad some basic shop page styling. #12038 2016-11-25 16:10:58 +00:00
James Koster 18349ddea1 Adds twenty seventeen stylesheet. #12038 2016-11-25 15:25:37 +00:00
James Koster 20507f0944 Adds a new class for 2017 integration, removes core wrappers, adds .scss file. #12038 2016-11-25 15:17:13 +00:00
Mike Jolley 430a31a963 Add notice class to checkout message
Closes #12245
2016-11-22 14:21:21 +00:00
James Koster 1039babe2c manual order creation - make address load/copy icons text links to improve usability. closes #12356 2016-11-17 12:38:15 +00:00
Mike Jolley 76b32c9aa5 WIP - Product CRUD (#12065)
* Created function to get the catalog visibility options

* First methods for WP_Product crud

* Product set methods

* Fixed several erros while setting data

* First methods for WP_Product crud

* Product set methods

* Fixed several erros while setting data

* Hardcode the get_type per product class

* Initial look through getters and setters and abstract data

* Missing var

* Add related product functions and deprecate those in class.

* No need to exclude ID

* Fixed coding standards and improved the docblocks

* Get cached terms from wc_get_related_terms()

* Fixed wrong variable in wc_get_related_terms

* Use count() instead of sizeof()

* Sanitize ids later

* Remove unneeded comments

* wc_get_product_term_ids instead of related wording and use in other places.

get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.

* Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it.

* Bump template version

* Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function

* Made abstract function useful

* External Product CRUD

* _virtual meta should be 'no', not taxable, in product unit test helper

* Grouped product class

* Tests

* Move children to meta and update test

* Use get_upsell_ids

* Spacing in query

* Moving and refactoring methods

* Availability html

* Tidy/add todos

* Rename method

* Put back review functions (still todo)

* missing $this

* get_price_including_tax/excluding_tax functions

* wc_get_price_to_display

* Price handling

* [Product CRUD] Variable (#12146)

* [Product CRUD] Variable Products

* Handle PR feedback.

* [Product CRUD] Grouped Handling (#12151)

* Handle grouped product saving

* Update routine

* [Product CRUD] Product crud terms (#12149)

* Category and tag id handling

* Replace template functions

* Remove todo

* Handle default name in save function

* Product crud admin save routine (#12174)

* Initial props

* Work on admin saving

* Set/get attributes

* Atom was moaning about this before but no longer.

* Update get_shipping_class

* WC_Product_Attribute

* Use getter in admin panel

* Fix attribute saving

* Spacing

* Fix comment

* wc_implode_text_attributes helper function

* [Product CRUD] Product crud admin use getters (#12196)

* Initial props

* Work on admin saving

* Set/get attributes

* Atom was moaning about this before but no longer.

* Update get_shipping_class

* WC_Product_Attribute

* Use getter in admin panel

* Fix attribute saving

* Move settings into new files

* Refactor panels and use getters

* Use getters for variation panel

* Revert save variation changes for now

* Add todos

* Fix downloads

* REST API CRUD Updates

* Additional API updates/fixes. Added some todos

* Fix final failing tests and implementing setters/getters and attributes functionality.

* Fix comparison for is_on_sale and remove download_type from WC_Product.

* Add a wc_get_products wrapper.

* Remove the download type input from the product data metabox for downloadable products. (#12221)

* [Product CRUD] Variations - setters, getters and admin. (#12228)

* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* Feedback fixes

* Implement CRUD in the legacy REST API

* Handle PR feedback

* [Product CRUD] Getter setter proxy methods (#12236)

* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* get_prop implementation in abstract and data classes

* Implement set_prop

* Change handling

* Array key exists

* set_object_read

* Use get_the_terms() instead of wp_get_post_terms()

wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.

get_the_terms() however can use data from the object cache if present.

* Allow WP_Query to preload post data, and meta in wc_get_products()

Allow WP_Query to bulk query for post data and meta if more than
just IDs are requested from wc_get_products(). Reduces query count
significantly.

* [Product CRUD] Variable, variation, notices, and stock handling (#12277)

* No longer needed

* Remove old todos

* Use getters in admin list

* Related and upsells update for CRUD

* Fix notice in gallery

* Variable fixes and todos

* Context

* Price sync

* Revert variation attributes change

* Return parent data in view context

* Defer term counting

* wc_find_matching_product_variation

* Stock manage tweaks

* Stock fixes

* Correct id

* correct id

* Better sync

* Data logic setter fix

* feedback

* First methods for WP_Product crud

* Product set methods

* Fixed several erros while setting data

* Hardcode the get_type per product class

* Initial look through getters and setters and abstract data

* Missing var

* Fixed coding standards and improved the docblocks

* Get cached terms from wc_get_related_terms()

* Fixed wrong variable in wc_get_related_terms

* Use count() instead of sizeof()

* Add related product functions and deprecate those in class.

* No need to exclude ID

* Sanitize ids later

* Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it.

* Remove unneeded comments

* wc_get_product_term_ids instead of related wording and use in other places.

get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.

* Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function

* External Product CRUD

* _virtual meta should be 'no', not taxable, in product unit test helper

* Bump template version

* Made abstract function useful

* Grouped product class

* Tests

* Move children to meta and update test

* Use get_upsell_ids

* Spacing in query

* Moving and refactoring methods

* Availability html

* Tidy/add todos

* Rename method

* Put back review functions (still todo)

* missing $this

* get_price_including_tax/excluding_tax functions

* wc_get_price_to_display

* Price handling

* [Product CRUD] Variable (#12146)

* [Product CRUD] Variable Products

* Handle PR feedback.

* [Product CRUD] Grouped Handling (#12151)

* Handle grouped product saving

* Update routine

* [Product CRUD] Product crud terms (#12149)

* Category and tag id handling

* Replace template functions

* Remove todo

* Handle default name in save function

* Product crud admin save routine (#12174)

* Initial props

* Work on admin saving

* Set/get attributes

* Atom was moaning about this before but no longer.

* Update get_shipping_class

* WC_Product_Attribute

* Use getter in admin panel

* Fix attribute saving

* Spacing

* Fix comment

* wc_implode_text_attributes helper function

* [Product CRUD] Product crud admin use getters (#12196)

* Initial props

* Work on admin saving

* Set/get attributes

* Atom was moaning about this before but no longer.

* Update get_shipping_class

* WC_Product_Attribute

* Use getter in admin panel

* Fix attribute saving

* Move settings into new files

* Refactor panels and use getters

* Use getters for variation panel

* Revert save variation changes for now

* Add todos

* Fix downloads

* REST API CRUD Updates

* Additional API updates/fixes. Added some todos

* Fix final failing tests and implementing setters/getters and attributes functionality.

* Fix comparison for is_on_sale and remove download_type from WC_Product.

* Add a wc_get_products wrapper.

* Remove the download type input from the product data metabox for downloadable products. (#12221)

* [Product CRUD] Variations - setters, getters and admin. (#12228)

* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* Feedback fixes

* Implement CRUD in the legacy REST API

* Handle PR feedback

* [Product CRUD] Getter setter proxy methods (#12236)

* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* get_prop implementation in abstract and data classes

* Implement set_prop

* Change handling

* Array key exists

* set_object_read

* Use get_the_terms() instead of wp_get_post_terms()

wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.

get_the_terms() however can use data from the object cache if present.

* [Product CRUD] Variable, variation, notices, and stock handling (#12277)

* No longer needed

* Remove old todos

* Use getters in admin list

* Related and upsells update for CRUD

* Fix notice in gallery

* Variable fixes and todos

* Context

* Price sync

* Revert variation attributes change

* Return parent data in view context

* Defer term counting

* wc_find_matching_product_variation

* Stock manage tweaks

* Stock fixes

* Correct id

* correct id

* Better sync

* Data logic setter fix

* feedback

* Prevent notices

* Handle image_id from parent

* Fix error

* Remove _wc_save_product_price

* Remove todo

* Fixed wrong variation URLs

* Fixed undefined $image_id in WC_Product_Variation::get_image_id()

* Allow wc_rest_prepare_date_response() handle timestamps

* Updated get methods on REST API for variations

* Use variations CRUD to save variations metadata

* [Product CRUD] Abstract todos (#12305)

* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback

* Revert "[Product CRUD] Abstract todos (#12305)"

This reverts commit 9a6136fcf8.

* Remove deprecated get_variation_id()

* New default attributes method

* [Product CRUD] Product Datastore (#12317)

* Fix up tests in the product/* folder.

* Handle data store updates for grouped, variable, external, simple, and general data store updates for products.

* Variations & variable changes.

* Update -functions.php calls to use data store.

* Add an interface for the public product data store methods.

* Finished product factory tests

* Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods.

* Fix up delete in all versions of the api

* Handle feedback

* Match protected decloration to parent

* Product crud abstract todos (#12316)

* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback

* Fix up store

* Fixed method returning in write context

* Fix error in variation admin

* Check for parent value - fixes tax class

* Remove old/complete todos

* Allow set tax class as "parent"

* Removed duplicated sync

* Fixed wrong variation URLs

* Fixed undefined $image_id in WC_Product_Variation::get_image_id()

* Allow wc_rest_prepare_date_response() handle timestamps

* Updated get methods on REST API for variations

* Use variations CRUD to save variations metadata

* Remove deprecated get_variation_id()

* New default attributes method

* Fixed method returning in write context

* Allow set tax class as "parent"

* Removed duplicated sync

* Fixed coding standards

* TODO is not accurate.

* Should pass WC_Product instancies to WC_Comments methods (#12327)

* Use new method in abstract order class to prevent headers sent issue in tests

* Fixed variable description in REST API

* Updated how create initial product variation

* Fixed a few fatal errors and warnings in Products CRUD (#12329)

* Fixed a few fatal errors and warnings in Products CRUD

* Fixed sync functions

* Add variations CRUD to legacy API (#12331)

* Apply crud to variable products in legacy API v1

* New REST API do not need fallback for default attributes

* Apply variations CRUD to legacy API v2

* Legacy v2 - save default attributes

* Variations in legacy API v2 do not have descriptions

* Fixed legacy API v2 variations params

* Applied variations CRUD to legacy API v3

* Sync before save in legacy apis

* Punc

* Removed API todos

* Removed test

* Products endpoint tweaks (#12354)

* Var type already normalized on CRUD

* Let Product CRUD handle with validation, sanitization and conditional checks

* Set downloads using WC_Product_Download

* Stop try catch exceptions more than one time

* Handle WC_Data_Exception in legacy API

* Complete remove products when fails on creating

* On creating I mean!

* Already have a method to complete delete products

* Fixed standards using WP CodeSniffer

* get_the_terms() returns false when empty

* get_manage_stock returns boolean

@claudiosanches

* Merge conflict

* Variations API endpoint fixes

* Product CRUD improvements (#12359)

* args is not used any more - remove todo

* Added test for attributes

* wc_get_price_excluding_tax usage

* parent usage

* Fix rating counts

* Test fixes

* Cleanup after tests

* Make sure status transition code runs even during API calls, not just in admin.

* Default visibility

* Fix attribute setting in API

* Use get name instead of get title

* variation id usage

* Improved cross sell templates

* variation_data

* Grouped product sync

* Notices

* Sync is not needed in API

* Delete

* Rename interfaces

* Update counts in data store
2016-11-16 12:38:24 +00:00
Claudio Sanches 48013fa2c3 Minify 2016-11-07 15:47:05 -02:00
Shiva Poudel b32c7b89dc Fix - Photoswipe action button background style (#12209)
* Fix - Photoswipe action button background style

* Fix - Do not scroll to top after closing PhotoSwipe

* Tweak - Move photoswipe style overides to WooCommerce stylesheet

Closes #12200
2016-11-03 11:35:55 +00:00
Claudio Sanches 9b0b4be843 Improved product type options, closes #12183 2016-10-27 15:06:33 -02:00
James Koster 3823b78318 Add/product galleries (#11665)
* register prettyPhoto but don't enqueue. #10721

* Remove lightbox option. #10721

Also registers the prettyPhoto styles instead of enqueueing

* Stip all prettyPhoto related stuff from the templates and tidy up some logic. #10721

* Add flexslider assets #10721

* styling and re-adds `woocommerce_single_product_image_thumbnail_html`. #10721.

* Add zoom functionality. #10721

* Move js to single-product.js. #10721

* styling of the gallery thumbnails when using the `product_page` shortcode. #10721

* Only enable the zoom if the image is large enough. #10721

* Use a 4 column layout by default. #10721

* Make the carousel options filterable. #10721

* rtl styles for gallery. #10721

* Don't zoom on handheld devices. #10721

* markup tweaks in prep for photoswipe

* disable zoom for now

* Add and enqueue photoswipe assets

* add the photoswipe template

* initialise photoswipe - it's alive!

* tidy up js. add title. add separate trigger. #10721

* Move photoswipe functions to single-product.js. #10721

* reactivate the zoom! #10721

* style the photoswipe trigger. #10721

* disable flexslider animation loop. #10721

* js tidy up. #10721

* Fix jshint

* Abstract the product gallery scripts

* Minify

* Fixed conflict with the admin bar

* Photoswipe conflict with admin bar

* Index. #10721

* photoswipe button styles. #10721

* Styling. #10721

* No animation on zoom
* Image width on mobile

* No shadows please. #10721

Looking at you, Twenty Twelve.

* code tidy and add class to placeholder figure. #10721

* simplify rtl query

* photoswipe button styles

* Comma should not be here

* zoom icon #10721

* gallery thumb styles. #10721

* trigger icon. #10721

* Image margins. #10721

* icon hover states. #10721

* Variation handling

* Fix zoom and heights

* Resize after timeout
2016-10-13 15:25:42 +01:00
James Koster 9bd88f5677 Add styling for the toggle input type 2016-10-11 12:33:33 +01:00
Mike Jolley d7f2d29ddc Add row actions back 2016-10-11 11:46:23 +01:00
Mike Jolley 8a510994ef Merge branch 'master' into shipping-zone-ui
# Conflicts:
#	assets/css/admin.css
2016-10-10 18:45:54 +01:00
Mike Jolley 160049eddd Remove save button from zones screen. 2016-10-10 17:50:29 +01:00
James Koster b8150ec49f Make the Store Notice dismissible.
* Adds new-style css classes to store notice
* Adds a ‘dismiss’ link to the store notice
* Hide the notice when the ‘dismiss’ link is clicked and set a cookie
to keep it hidden
2016-10-07 13:41:13 +01:00
Jonathan Belcher c997107239
Alignment tweaks to the Extensions screen 2016-10-05 15:53:06 -04:00
Jonathan Belcher 1d066234d5
[feature] Add ons screen update 2016-09-26 15:45:10 -04:00
James Koster c1d989df2c Fix layout breakage when order item table overflows. closes #11841 2016-09-26 16:08:54 +01:00
Mike Jolley 83cc0c7066 Work on shipping zone screens 2016-09-24 03:22:57 +01:00
Mike Jolley 78bde4ad09 Tweak download layout 2016-09-12 23:00:31 +01:00
corsonr 8aedbd9c9e Keep CSS consistency for delete links 2016-09-02 12:12:27 +02:00
James Koster df624b218b product title size consistency regardless of tag. closes #11562 2016-08-22 12:27:08 +01:00
Claudio Sanches 47177667aa Removed internal scroll from log viewer, closes #11729 2016-08-19 18:48:49 -03:00
Mike Jolley a6f850a4a4 Invalid CSS is invalid.
Not used afaik. Closes #11657
2016-08-12 15:59:01 +01:00
Mike Jolley 5d5222d3e1 Merge pull request #11658 from belcherj/add/stylelint
Cleaned up SCSS files so they lint and made some rules warnings
2016-08-12 12:50:13 +01:00
kellychoffman 9a7b391b74 custom date: add en dash, larger inputs, no hidden text 2016-08-10 10:35:42 -06:00
Jonathan (JB) Belcher 90c0db873c Cleaned up SCSS files so they lint and made some rules warnings 2016-08-10 09:19:05 -04:00
James Koster 122bcd5f9a Remove unnecessary `!important`s in css and explain ones that are necessary. closes #11415 2016-08-05 15:48:16 +01:00
Mike Jolley 559e379faf Issues after audit 2016-08-05 14:23:01 +01:00
Mike Jolley c61c08f405 Merge branch 'master' into tax-rate-auto-ordering
# Conflicts:
#	assets/css/admin.css
2016-08-04 14:06:52 +01:00
Mike Jolley 8e6ca3effe Merge pull request #11107 from helgatheviking/sortable-select2
add drag and drop support to select2 inputs. closes #11106
2016-08-04 11:32:46 +01:00
Mike Jolley d756b9c7ba Merge branch 'pr/11337'
# Conflicts:
#	assets/css/admin.css
2016-08-02 14:44:00 +01:00
Mike Jolley 922ba0337f Fix removal and tweak buttons 2016-08-02 14:42:27 +01:00
Mike Jolley e271825ffb Merge branch 'master' into tax-rate-auto-ordering
# Conflicts:
#	assets/css/admin.css
2016-08-02 14:17:23 +01:00
Mike Jolley 582133cb43 [2.6] Spinners need more room on windows
Closes #11565
2016-08-01 12:05:34 +01:00
Mike Jolley 4a23c41ab2 Hook in woocommerce_widget_shopping_cart_buttons for greater flexibility 2016-07-28 15:06:55 +01:00
Mike Jolley 3b42677b83 Padding 2016-07-27 11:39:50 +01:00
Mike Jolley a259256550 Ordering in place 2016-07-27 11:30:12 +01:00
Mike Jolley 0a8f3565c3 Tidy padding 2016-07-27 10:28:28 +01:00
James Koster 02e08e071e Use number inputs for hour/minute fields on edit order screen. closes #11494 2016-07-22 12:19:18 +01:00
Mike Jolley 870454acd0 Fix checkbox width
Closes #11484
2016-07-21 15:29:37 +01:00
Mike Jolley 72a5f9a9d1 Maintain method_order sorting for zones in list
Closes #11486
2016-07-21 14:30:05 +01:00
James Koster 43000bce9b account layout. closes #11405
Ensures the layout is only applied to desktop-sized displays
2016-07-19 14:54:40 +01:00
Mikey Arce 7826a16f57 Fix message styles for empty cart
When you remove the last item from the cart, the `.woocommerce-message` element currently is unstyled.  This removes the CSS from the parent `.woocommerce` element and fixes the style issue.
2016-07-07 14:41:11 -07:00
Mike Jolley c54b704f19 Merge cart and checkout styles so it works when using shortcodes on same page 2016-06-27 11:42:01 +01:00
James Koster b5b5434b7f increase color contrast of product/shipping data on order screen 2016-06-22 15:38:30 +01:00
Mike Jolley e1ec01c9f9 Zone wording tweaks
Closes #11184
2016-06-20 12:50:55 +01:00
Kathy Darling 7b18c31788 add a move cursor to drag and drop enabled select2 tags 2016-06-13 15:16:42 -05:00
Mike Jolley 99ef67f2ef Remove zindex
Fixes #11052
2016-06-06 13:00:17 +01:00
Mike Jolley cb5ab3ac75 styling of blank states 2016-06-03 14:36:27 +01:00
Mike Jolley 5cb0d5ed29 Add a blank slate area for shop orders 2016-06-03 14:07:41 +01:00
Mike Jolley ebc913da38 Notice tweaks 2016-06-03 12:28:27 +01:00