Commit Graph

1425 Commits

Author SHA1 Message Date
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
Mike Jolley 2ba9029624 Suit CSS and method tidyup for saved methods form
cc @jameskoster
2016-05-26 12:42:32 +01:00
Mike Jolley 4a1de6f1de Fix select2 styling 2016-05-24 19:04:13 +01:00
Mike Jolley e5cb3cc3db Merge pull request #10962 from bekarice/2-6-admin-css-fix
[2.6] Admin multiselect CSS tweak
2016-05-23 13:19:17 +01:00
Shiva Poudel cb0f514544 Fix - Sortable icon font-size in all tables 2016-05-21 18:43:01 +05:45
Beka Rice 5074fa42c9 [2.6] admin select2 CSS tweak 2016-05-20 16:52:52 -04:00
Mike Jolley cf64786447 Full breadcrumbs in zones UI 2016-05-13 16:08:19 +01:00
Mike Jolley 986bd5abc7 Fix save and striping 2016-05-12 12:18:35 +01:00
Mike Jolley 8be8fe4c8a Use modal for adding methods on both screens 2016-05-12 11:29:33 +01:00
Mike Jolley 3dba8e3697 Changed icons for methods into text based links and moved save buttons to left to match other settings screens 2016-05-12 11:07:18 +01:00
Mike Jolley aa3dab3572 Resize modal content dynamically
Fixes #10896
2016-05-11 16:19:22 +01:00
Mike Jolley 0927cbee8d Tweaks saved card markup and styling to improve CC form. 2016-05-10 15:43:39 +01:00
Claudio Sanches 8c09a52be0 Minify 2016-05-09 17:13:56 -03:00
Mike Jolley 3874f8c1f4 Merge pull request #10862 from shivapoudel/improve-styles
Tweak - Use of dashicons dismiss glyph as delete icon
2016-05-06 16:06:49 +01:00
Shiva Poudel e3ac5830df Increase the font size of product gallery panel delete glyph 2016-05-06 18:03:53 +05:45
James Koster 80e6f05ebd Downloadable product files table. closes #10859
* Fixes sorting handle padding
* Adjusts tooltip icon size/position
2016-05-06 13:17:23 +01:00
Shiva Poudel 8d82b56062 Tweak - Use of dashicons dismiss glyph as delete icon 2016-05-05 22:39:12 +05:45
Shiva Poudel e8dd54a945 Fix - Small screen optimization for password field 2016-05-05 22:37:08 +05:45
Mike Jolley 9cd93dcb0c Fix font issues in 2016 disabled inputs
@coderkevin
2016-05-03 15:37:10 +01:00
Mike Jolley 40a26c52b3 Fix placeholder width
Closes #10809
2016-04-28 12:41:34 +01:00
James Koster 4a4dedb563 Use the core font size for WooCommerce icons in the main nav bar. closes #10787 2016-04-27 12:13:38 +01:00
Mike Jolley a8b2a5668f Added cancel button to shipping zones UI
Closes #10754
2016-04-21 16:18:15 +01:00
Mike Jolley f739e97c76 Merge branch 'master' into payment-gateway-wizard-refactor
# Conflicts:
#	assets/css/activation.css
#	assets/css/wc-setup.css
2016-04-19 13:25:20 +01:00
Job d3cb293e2d Sidekick removal
Partnership with Sidekick ended:

* Removed all styles and mentions of Sidekick
* Updated docs prompt on last step on boarding: *Read more* > *Learn
more*
2016-04-19 11:01:22 +02:00
Mike Jolley 826613db3c Grunt dev 2016-04-18 15:37:19 +01:00
Mike Jolley 7d7241ba68 Merge branch 'pr/10696'
# Conflicts:
#	assets/css/woocommerce.css
2016-04-18 15:36:03 +01:00
Mike Jolley 2deb8ec0d6 Merge pull request #10695 from woothemes/fix/button-opacity
Buttons: Remove opacity on non-disabled buttons
2016-04-15 10:13:22 -05:00
James Koster 9e65542d98 Apply Suit CSS naming conventions to classes in account area. closes #10660 2016-04-15 15:11:14 +01:00
James Koster ba009c6fc5 Fixes the layout on shop pages when using Twenty Eleven. closes #10665 2016-04-15 13:24:17 +01:00
Puneet Sahalot 774e86172a Compiled CSS for Order Details list element
removed list element's bullet styling.
2016-04-14 11:45:50 +05:30
Puneet Sahalot 2480b18076 remove ugly bullets from order details 2016-04-14 11:42:55 +05:30
kellychoffman a65a80aa37 button: remove opacity 2016-04-13 13:46:42 -04:00
James Koster 938604a6d2 More appropriate icons in dashboard widget 2016-04-05 14:27:35 -05:00
Mike Jolley c0ec85cd84 Implement new gateway screen in wizard and auto-install plugin-base gateways when chosen. 2016-04-01 17:30:04 +01:00
Mike Jolley 00ba45512e Merge branch 'shipping-wizard-removal' 2016-04-01 11:20:14 +01:00
Mike Jolley 5a49394102 Justin code review 2016-04-01 11:19:55 +01:00
Mike Jolley a6164360ba Minify 2016-04-01 10:51:53 +01:00
Shiva Poudel 02a3926d79 Ensure tools page nav-tab-wrapper has gap 2016-04-01 13:00:00 +05:45
Mike Jolley cb0f703086 Fix blank slate icon 2016-03-31 18:57:30 +01:00
Mike Jolley bfadb22c7c Added notice when no methods exist 2016-03-31 18:54:33 +01:00
Mike Jolley 3a00348795 Remove shipping options from wizard 2016-03-31 17:17:11 +01:00
Mike Jolley c757fd9940 Merge branch 'shipping-zone-modals'
# Conflicts:
#	assets/css/admin.css
#	assets/css/admin.scss
2016-03-31 15:20:06 +01:00
Mike Jolley 975c360ae3 Tweak icons and blank slate text 2016-03-29 19:37:02 +01:00
Mike Jolley ab57909bb7 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	assets/css/admin.css
2016-03-29 14:28:58 +01:00
Shiva Poudel ad92e4bbb0 Use of dashicons glyph for product gallery sortable placeholder 2016-03-29 14:32:59 +05:45
Shiva Poudel 6e0a2f0bc1 Remove unused view styles for products gallery 2016-03-29 14:04:07 +05:45
Shiva Poudel 1598348e53 Use dashicons glyph for product image column in list table 2016-03-29 13:06:56 +05:45
Mike Jolley 5f6aa6c160 Fix modals and ajax events 2016-03-24 19:06:51 +00:00
Mike Jolley 8b53d1a618 Only load modal if supported 2016-03-24 18:31:39 +00:00
Mike Jolley d3ac3f4073 Modals first pass 2016-03-24 17:26:40 +00:00
Mike Jolley bea3c66777 Change arrow entity
@jameskoster
2016-03-24 14:27:32 +00:00
James Koster 6c0724ad1d Enlarge tooltip icon in product data tabs and use Dashicon for edit icons. #9791 2016-03-24 14:19:00 +00:00
Mike Jolley 679443c9c9 Zones screen feedback
- Adds updated descriptions
- Adds shipping method descriptions in modal
- Adds order column tooltip
- Modified styles

@jameskoster
2016-03-24 14:08:26 +00:00
Mike Jolley f73149feaf Tweak variation display and reenable bulk editing 2016-03-22 17:13:39 +00:00
Mike Jolley f1b3d0f708 Further layout tweaks 2016-03-22 14:54:02 +00:00
Mike Jolley 5862785522 Restyle items panel 2016-03-21 18:35:00 +00:00
Mike Jolley 7be2b129b6 Removed bulk actions from order items panel
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.

Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00
Allen Snook bd99d8f1f3 Remove unused new_enabled variable 2016-03-18 13:43:58 -07:00
Shiva Poudel 51357f8ca2 Apply custom css for nav tag but not in h2 tag, #10515
CC @mikejolley
2016-03-17 17:31:16 +05:45
Mike Jolley 1549158981 Add 'is_enabled' column to instances table and allow toggle in zones screen
@allendav
2016-03-15 17:23:06 +00:00
Mike Jolley e22d324be4 Add notice for legacy shipping zones after update 2016-03-15 15:58:03 +00:00
James Koster 38a668e402 Ensures the update cart button is an appropriate width in handheld orientation 2016-03-11 11:28:55 +00:00
Mike Jolley 2d2c64d2ab Change heading and tab markup
Closes #10515
2016-03-10 12:52:20 +00:00
James Koster e735309d03 Updates the WooCommerce icon font. #9791
Replaces a bunch of icons with new designs that have a better stylistic
link with Dashicons.
2016-03-09 10:54:00 +00:00
James Koster 08e1741073 Use Dashicons for order statuses where appropriate. #9791 2016-03-08 15:57:14 +00:00
James Koster d9a8786daf Use Dashicons for the report export button. #9791 2016-03-08 15:43:53 +00:00
James Koster b5b0a9638f Use Dashicons for featured icons in products table. #9791 2016-03-08 11:02:01 +00:00
James Koster dd3dc3ce0a Update inventory / attribute icons. #9791 2016-03-08 10:54:06 +00:00
James Koster b261ae5aea Use Dashicons for tooltip icons. #9791 2016-03-08 10:51:57 +00:00
James Koster 18aa311fc1 Use Dashicons for coupon icon. #9791 2016-03-08 10:46:34 +00:00
James Koster 9d9a502217 Use Dashicons for product data tabs. #9791 2016-03-08 10:41:58 +00:00
James Koster 7507ddf8cb Use Dashicons for stock report actions buttons. #9791 2016-03-08 10:27:21 +00:00
James Koster b72fa069f2 Use Dashicons for sorting handles. #9791 2016-03-08 10:25:42 +00:00
James Koster 6e098b2f0d Use Dashicons for reload/apply button. #9791 2016-03-08 10:01:05 +00:00
James Koster 3ff79a81ef Use Dashicons for order action buttons. #9791 2016-03-08 09:49:49 +00:00
James Koster f926f8e9c9 replaces .png credit card icons with .svg alternatives. closes #9675 2016-03-07 12:15:42 +00:00
Mike Jolley 155afbb99a Checkout RTL styles 2016-02-26 11:43:24 +00:00
Justin Shreve 4c498336fe Fix up some minor coding standards issues 2016-02-18 08:40:02 -08:00
Justin Shreve cfe39073a3 Fix headings on the add-ons/extensions screens 2016-02-18 08:39:02 -08:00
Justin Shreve d28c4f4f39 Fix hierarchy in the system status pages. 2016-02-18 08:39:02 -08:00
Justin Shreve 6d683b7492 Fix up hierarchy on all of the generated report screens. 2016-02-18 08:39:02 -08:00
Justin Shreve 8c49e81f45 Fix up heading hierarchy on the add new order screen 2016-02-18 08:39:02 -08:00
Claudio Sanches 211c379af6 My account initial navigation 2016-02-16 13:50:06 -02:00
Mike Jolley fab8a871aa Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/admin/class-wc-admin-assets.php
2016-02-10 14:12:39 +00:00
Mike Jolley 75cbb74520 Rating widget standards 2016-02-09 15:18:27 +00:00
Mike Jolley aa4bfde937 Remove deprecated chosen js scripts 2016-02-08 12:10:42 +00:00
Mike Jolley efd0304bb0 Color code manual, system and customer notes
Closes #7225
2016-02-08 11:39:31 +00:00
Mike Jolley 346fd94e9e Fix column color 2016-02-05 15:48:31 +00:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley 4bca60c76e Adjust padding on message 2016-01-28 15:52:39 +00:00
Mike Jolley 64dfcdbea4 [2.5] Remove obsolete notice and add styles for add payment page 2016-01-28 11:58:09 +00:00
Mike Jolley 3093572f5b [2.5] Set input margin and label display for compatibility with themes using bootstrap CSS 2016-01-27 21:43:55 +00:00
Mike Jolley a2843c03c7 [2.5] Added password hint text and error messages 2016-01-27 10:54:03 +00:00
Claudio Sanches b1d6dbf84e Minify 2016-01-19 16:31:05 -02:00
Claudio Sanches 18c1935536 Removed flower icon in favor of dashicons 2016-01-19 16:08:20 -02:00
Mike Jolley 5481820668 [2.5] Fix responsive product sizes when columns class is missing. 2016-01-18 18:32:06 +00:00
Mike Jolley d821b87f8a Move shipping classes to custom UI in shipping section 2016-01-13 16:52:28 +00:00
Mike Jolley 8064b35350 Add methods from zones screen 2016-01-13 15:04:10 +00:00
Mike Jolley 70a9eb3807 Fix pagination + sorting on tax screen
@claudiosmweb
2016-01-12 12:01:10 +00:00
Mike Jolley 1076854608 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/class-wc-shipping.php
#	includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
#	includes/shipping/flat-rate/includes/class-wc-eval-math.php
#	includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Mike Jolley accc62d5ef Breadcrumb tweak 2016-01-08 12:10:40 +00:00