Commit Graph

542 Commits

Author SHA1 Message Date
Claudiu Lodromanean 36a8d08a5f Tweak no-availability check 2017-03-02 08:30:01 -08:00
Mike Jolley 2e56114d8e Fix styling of variation upsells 2017-03-02 15:33:08 +00:00
Mike Jolley 0dfab8326b Backwards compatibility for woocommerce_upsell_display_args 2017-03-02 15:29:15 +00:00
Mike Jolley 793b2dfa69 woocommerce_upsells_total filter.
Closes #13436
2017-03-02 15:15:41 +00:00
Claudiu Lodromanean 635f8c38a7 Dont render empty stock descriptions 2017-03-01 15:19:31 -08:00
Maximus80 3c2ac21294 fix photoswipe template be always loaded 2017-02-23 11:46:48 +01:00
Mike Jolley 4c75f2b7a2 Fix max value logic and -1 handling
Fixes #13237
2017-02-20 11:10:19 +00:00
Claudio Sanches 9012fead56 Merge pull request #13136 from woocommerce/improvement-12990
Add logic to variation title generation and remove redundant template info.
2017-02-14 19:15:48 -02:00
Claudiu Lodromanean 749971759f Reduce spacing back to original 2017-02-14 11:22:50 -08:00
Claudiu Lodromanean 332e79da8d Re-approach attribute skipping in simpler, general purpose way 2017-02-14 11:20:20 -08:00
Claudiu Lodromanean afcbd456c4 Skip attributes in get_formatted_meta_data a different way 2017-02-13 13:53:22 -08:00
Mike Jolley 8d13913e70 Avoid division by 0 in wc_get_loop_class
Closes #13159
2017-02-13 11:25:58 +00:00
Claudiu Lodromanean f362e0108e Enable attribute suppression in wc_display_item_meta 2017-02-10 14:11:16 -08:00
Brent Shepherd fe7e280ea0 Reinstate woocommerce_email_order_items_args hook 2017-02-02 12:26:59 -08:00
Brent Shepherd 75bcbbf959 Maintain old show/hide email order item logic
When SHA: 7b3a9b introduced wc_get_email_order_items(), it slightly
changed the logic applied to determine whether to display:
* download links; and
* purchase notes.

In WC 2.6.13 and older, WC_Abstract_Order::email_order_items_table()
would only display download links and purchase note in emails *not*
sent to the admin. This patch preserves that behaviour.
2017-02-01 18:12:21 -08:00
Claudio Sanches bd655af072 Restore attributes ordering, closes #12847 2017-01-16 21:11:56 -02:00
Claudio Sanches 0da2f70e13 Fixed coding standards 2016-12-15 15:11:08 -02:00
Mike Jolley cbc18258e6 Cast found posts to int
Fixes #12608
2016-12-15 15:24:35 +00:00
Mike Jolley ad4704f02d Variations script refactor from #12585
Applying this to master to match 2.6 PR
2016-12-15 12:58:41 +00:00
Mike Jolley d32797b733 Handle BW compat priority. 2016-12-13 18:48:39 +00:00
Mike Jolley 74f3972e26 Add sort parameter to checkout fields to aid with sorting per locale. 2016-12-12 15:23:28 +00:00
Mike Jolley fe9e89f3b7 wc_logout_url function 2016-12-07 12:04:44 +00:00
Mike Jolley 2780688a70 wc_get_price_html_from_text 2016-12-05 13:13:30 +00:00
Mike Jolley ba56274662 Move get_price_suffix back to main class 2016-12-02 17:02:06 +00:00
Mike Jolley d67f17a789 Put get_availability functions back in main product classes. 2016-12-02 16:46:35 +00:00
Mike Jolley 350ccd008c Correct autocomplete field
#11016
2016-11-23 18:43:38 +00:00
Mike Jolley d7dfdd3d10 Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
Claudio Sanches e1aeba9f21 Remove all wp_get_post_terms() and wp_get_object_terms() terms occurrences 2016-11-17 17:02:05 -02: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
Krzysztof Grabania 4711066490 Removed empty string param in _deprecated_function function (#12301)
`_deprecated_function` has conditional which is checking if third param (replacement) is null. Passing replacement as empty string to this function will fail this test and the end of triggered error will look like this: `Use instead.` instead of `with no alternative available.`. This PR removes all occurrences of empty strings in this function.
2016-11-10 10:17:32 +00:00
Claudio Sanches 8adfe15d8f Removed extra quote from variations attribute dropdown, closes #12251 2016-11-04 17:37:54 -02:00
Claudio Sanches ed4e7a9e73 Merge pull request #12215 from shivapoudel/dub-form-row-class
Fix - Duplicate form-row class in woocommerce form field
2016-11-03 14:18:46 -02:00
Mike Jolley 5605d2cc48 Correct the docblock
Closes #12217
2016-11-02 19:15:06 +00:00
Mike Jolley c9f0cd8e8c [2.6] Fix backwards hide empty code
Closes #12233
2016-11-02 18:59:13 +00:00
Shiva Poudel 74a0bbfc71 Fix - Duplicate form-row class in woocommerce form field 2016-10-28 23:59:28 +05:45
Claudio Sanches 68b864313a Fixed conflicts 2016-10-13 16:58:20 -03: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
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Manos Psychogyiopoulos 75b3042d9c [2.6] Variations script errors when 'empty' option is omitted (#11944)
* fix variation script malfunctioning when show_option_none arg is set to false

* add minified version
2016-10-11 18:26:08 +01:00
Mike Jolley ed37f592bf Set custom_attributes earlier 2016-10-11 18:08:02 +01:00
Mike Jolley c2958bcaa6 Remove unused autocomplete/maxlength 2016-10-11 18:03:27 +01:00
Mike Jolley 9aea350628 Merge branch 'pr/11906' 2016-10-11 17:51:45 +01:00
Mike Jolley d4a7490ff0 Simplify autofocus code 2016-10-11 17:51:05 +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
corsonr 97e95e3e99 fixed extra space and escaped $args[autofocus] 2016-09-16 09:53:33 -07:00
opportus 8123ba6184 improved structured data - merge conflict fix 2016-09-14 22:15:49 +02:00
corsonr b3236b4088 Add autofocus support 2016-09-12 21:33:52 +02:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos 2346c3b735 Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace 2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos d4e3faf014 PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket 2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos fde1037757 fix failing tests. 2016-09-01 23:50:14 +03:00
opportus 53a257bb91 improved structured data - merge conflict fix 2016-09-01 14:15:15 +02:00
Aristeides Stathopoulos 3267ce6522 WordPress.WhiteSpace.OperatorSpacing.SpacingBefore 2016-08-27 09:16:28 +03:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos 82f3cc221e WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis 2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos 478a914494 WordPress.Arrays.ArrayDeclaration.SpaceInEmptyArray 2016-08-27 05:48:53 +03:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
opportus 9001f094ff improved structured data - branch update 2016-08-23 15:49:20 +02:00
Claudio Sanches d3e732322e Fixed indentation for #11583 2016-08-19 19:37:03 -03:00
opportus 363ec85c91 improved structured data - some code optimization 2016-08-18 20:37:34 +02:00
opportus c04cfa9d15 seo tweaks - adds to loop product and loop category headings a specific css class 2016-08-16 12:34:38 +02:00
opportus 26367d1108 seo tweaks - branch update 2016-08-16 12:19:29 +02:00
opportus 17cc4bbd63 improved structured data - branch update 2016-08-15 14:16:14 +02:00
opportus 5535da6a5b improved structured data - added generate_output_structured_data() method
| modified some methods names | few other tweaks
2016-08-15 00:39:01 +02:00
Mike Jolley cfc31dd311 wc_prevent_adjacent_posts_rel_link_wp_head
Closes #11683
2016-08-12 11:03:28 +01:00
opportus 1e52d903f0 improved structured data - class refactor - revision3 2016-08-12 01:29:35 +02:00
opportus 39dce5a450 improved structured data - tabulation fix 2016-08-11 11:17:14 +02:00
opportus 93088f45ac improved structured data - merge conflict fix 2016-08-11 00:49:20 +02:00
Mike Jolley efd390e951 Merge pull request #11645 from woothemes/orders-crud-function-update
Orders crud functions
2016-08-10 12:19:38 +01:00
Mike Jolley 51f3efd5c4 Don't need both cases 2016-08-10 10:36:51 +01:00
Gregory Karpinsky b08d0bc1d2 woocommerce_taxonomy_archive_description
Check for `is_product_taxonomy()` to show the description on the product attribute archives.
2016-08-09 16:22:50 -04:00
Mike Jolley 39eb584321 Merge branch 'master' into orders-crud-function-update 2016-08-08 17:24:40 +01:00
Mike Jolley 30742798ed Order table 2016-08-08 16:31:06 +01:00
Mike Jolley 87443763d8 Hook in the no products found template
Closes #11257

cc @jameskoster
2016-08-08 13:43:42 +01:00
opportus 79ef06b6ad improved structured data - added div into short description template 2016-08-06 00:49:31 +02:00
Mike Jolley 1c592b3872 Merge pull request #11208 from woothemes/orders-crud-classes
Orders crud classes
2016-08-05 15:44:15 +01:00
Mike Jolley 644cf79866 Move all query string vars to form in price widget using wc_query_string_form_fields
Closes #11593

@claudiosmweb @justinshreve look fine to you?
2016-08-04 13:37:39 +01:00
Mike Jolley 75895f71f9 made comparison strict
#11326
2016-08-04 13:09:21 +01:00
Mike Jolley c416a6d2d1 Merge pull request #11622 from WPprodigy/fix-responsive-category-images
Add responsive image markup for category thumbnails
2016-08-04 11:19:40 +01:00
Caleb Burks a32f65df60 Formatting fix 2016-08-04 03:28:03 -04:00
Caleb Burks abc954dc83 Add responsive image markup to category thumbnails 2016-08-04 03:16:58 -04:00
Mike Jolley 5a9dacd595 Show variable weights/dimensions even when parent values are not set. 2016-08-03 16:07:34 +01:00
Mike Jolley 837e08143b Merge branch 'master' into orders-crud-classes
# Conflicts:
#	includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Mike Jolley b61d9cd5f1 Add index to search form IDs
Fixes #11557
2016-08-02 17:43:23 +01:00
Mike Jolley 22133a92db Avoid redirect if cart/checkout are the same 2016-08-01 16:19:41 +01:00
Mike Jolley ecf9f500d8 Merge pull request #11541 from woothemes/form-fields-11326
Query string -> form field helper function
2016-08-01 11:55:58 +01:00
Mike Jolley a2c7f2bf83 feedback 2016-08-01 11:55:45 +01:00
opportus b899a8991d seo tweaks 2016-07-29 20:42:33 +02:00
Mike Jolley 4a23c41ab2 Hook in woocommerce_widget_shopping_cart_buttons for greater flexibility 2016-07-28 15:06:55 +01:00
Mike Jolley a5d036d91c New function to generate query strings 2016-07-27 14:10:31 +01:00
opportus 0c5b11802b improved structured data - patch9 - merge conflict fix 2016-07-27 13:28:20 +02:00
opportus 11ff1d535a improved structured data - patch8 2016-07-24 23:46:30 +02:00
Oliver Juhas aa00f5a2e5 Don't display the archive description on search results page
There is really no need to display the product archive description (the Shop page content) on product search results page.
2016-07-24 19:04:25 +02:00
opportus 913ddd6afc improved structured data - patch5 2016-07-23 19:30:34 +02:00
opportus d74a3408b3 improved structured data 2016-07-17 04:57:03 +02:00
Claudio Sanches d7aea130b0 Fixed unformated reviews
cc @mikejolley
2016-07-14 13:52:04 +02:00
Claudio Sanches 7d9d091767 Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
Mike Jolley 930cc3fbd3 Use notice type
Closes #11307
2016-06-30 12:10:27 +01:00
Mike Jolley b11794ceac @Since changes 2016-06-29 12:58:38 +01:00
Fredrik Forsmo 755ede10a3 Set min and max value to empty string if not set 2016-06-29 13:13:11 +02:00
Mike Jolley 01a2acabdc Should be empty check
#11283
2016-06-29 10:44:27 +01:00
Fredrik Forsmo fd7b910afa Add isset to `home` args to fix PHP Notice
Fixes #11282
2016-06-29 09:27:28 +02:00
Lorenzo 449b3a949d Added $notice as second argument of "woocommerce_demo_store" filter 2016-06-28 16:26:26 +02:00
Mike Jolley 6898a79005 If the cart shortcode is used on checkout, hide the totals area 2016-06-27 11:42:50 +01:00
Mike Jolley 7b3a9b27ed Function replacements for class methods 2016-06-21 20:26:35 +01:00
Mike Jolley b188ad8250 Fix product feed when using shop base 2016-06-21 12:46:39 +01:00
Mike Jolley 0eaffe2ccd woocommerce_redirect_single_search_result type check was incorrect. 2016-06-20 10:18:35 +01:00
Mike Jolley 3fd15ad50f Unused vars and code docs 2016-06-06 18:57:24 +01:00
Mike Jolley 9abb1cebeb woocommerce_account_content function controls account content 2016-06-06 12:04:53 +01:00
Mike Jolley d0d3481091 Use get_comment_text to get output 2016-06-01 16:19:13 +01:00
Mike Jolley b8d76baa99 Fix notice if term is not found
Fixes #11005
2016-05-31 11:17:28 +01:00
Antonino Scarfì c8527468c5 Use hook to include navigation.php template 2016-05-30 15:16:26 +02:00
Claudio Sanches e39274e753 HTTPS for everybody 2016-05-26 22:48:49 -03:00
Caleb Burks 3b3898d2a7 Use function argument as default filter value
Even though core never uses the $size argument in woocommerce_get_product_thumbnail(), it's probably best not to override it incase somebody is using the woocommerce_template_loop_product_thumbnail() function with the $size arg in the theme.
2016-05-24 18:55:43 -05:00
Caleb Burks 72a2c25536 Add single_product_archive_thumbnail_size filter
Add in a filter to allow for custom image sizes w/o needing to override the whole function.
2016-05-21 10:29:44 -05:00
Caleb Burks fc2e611d1e Rename filter in woocommerce_subcategory_thumbnail
The same filter is used here: fa30a38c58/templates/single-product/product-thumbnails.php (L51), but with a different default value.
2016-05-21 10:23:35 -05:00
Mike Jolley fce8dc0868 Ensure alt text is set for product attachments
@claudiosmweb Fixes #10822
2016-05-03 16:41:51 +01:00
Claudio Sanches 7b6d5a8fd9 Fixed $has_orders on orders.php template, closes #10671 2016-04-11 16:03:09 -05:00
James Koster 2be24c3a33 tweak component name class 2016-03-15 13:44:59 +00:00
James Koster 362749acc9 add a class to the main product link 2016-03-15 13:41:33 +00:00
Mike Jolley 2e0f151039 Merge branch 'master' into wc-get-orders-10500
# Conflicts:
#	includes/wc-order-functions.php
#	includes/wc-template-functions.php
#	templates/myaccount/my-orders.php
#	templates/myaccount/orders.php
2016-03-09 16:23:01 +00:00
Mike Jolley cc97de2315 Revert "Implement wc_get_orders() function"
This reverts commit 5075d4bab3.
2016-03-09 16:16:22 +00:00
Mike Jolley c1e8dd1fe8 Use wc_get_orders iternally 2016-03-09 16:11:05 +00:00
Mike Jolley 5075d4bab3 Implement wc_get_orders() function
#10500
2016-03-09 13:25:42 +00:00
James Koster 850134fc20 Makes the review template easier to customise without forcing a template override. #10339
* Adds `woocommerce_review_before`,
`woocommerce_review_before_comment_meta`, `woocommerce_review_meta` and
`woocommerce_review_comment_text` actions.
* Adds `woocommerce_review_display_gravatar()`,
`woocommerce_review_display_rating()`,
`woocommerce_review_display_meta()` and
`woocommerce_review_display_comment_text()` template functions.
* Adds template files for review rating and meta.
2016-03-07 15:33:47 +00:00
Mike Jolley 723b4109d2 Add notice on empty cart when checking out 2016-03-07 10:31:01 +00:00
Claudio Sanches 3e955f6086 [2.5] Create new function to prevent endpoint indexing 2016-03-01 13:45:25 -03:00
Mike Jolley e9ff396348 Only add when using intval for stock amounts 2016-02-26 14:36:53 +00:00
Mike Jolley bd7072a8dc Generate dynamic hook docs
Closes #10393
2016-02-22 14:41:14 +00:00
Justin Shreve 7fcbf08a9a Prevent a notice by stopping a loop in woocommerce_products_will_display from stomping on other variables. 2016-02-18 12:20:22 -08:00
Claudio Sanches 2de00c61ff Added account endpoint for customer payment methods 2016-02-16 13:57:46 -02:00
Claudio Sanches d193caa987 Better pagination for account > orders 2016-02-16 13:50:06 -02:00
Claudio Sanches 02e3c6362d Created my account > orders template 2016-02-16 13:50:06 -02:00
Claudio Sanches 6e319dfe8d Allow custom endpoints for my account 2016-02-16 13:47:04 -02:00
Mike Jolley 58b185e7a6 Remove cat names from loops 2016-02-12 13:32:58 +00:00
Mike Jolley a778c0b234 Give loops names, and set class outside of template files
Closes #10028
2016-02-12 13:32:58 +00:00
Mike Jolley f750d71409 Remove tags from post classes 2016-02-12 13:32:58 +00:00
Christian Schmidt 1cb50b9b53 Pass term object to get_term_link() 2016-02-06 02:00:28 +01:00
Mike Jolley 47a74f96cd [2.5] Add context to category localisation
@claudiosmweb Closes #10183
2016-01-27 11:19:38 +00:00
Mike Jolley 3cfd4d7889 Merge pull request #10153 from helgatheviking/master
[2.5] pass $args to woocommerce_dropdown_variation_attribute_options_html hook
2016-01-25 11:07:38 +00:00
Kathy Darling 472e8d4618 pass $args to woocommerce_dropdown_variation_attribute_options_html hook 2016-01-23 15:03:47 -05:00
Claudio Sanches b12f74a263 Merge pull request #9904 from jonkoops/autofill-checkout
Add autocomplete support to fields in checkout process
2016-01-21 20:10:31 -02:00
Mike Jolley 5afca45252 [2.5] Wrong function exists check.
Fixes #10100
2016-01-19 09:39:56 +00:00
Jon Koops 8f63668e16 Added autocomplete parameter to the woocommerce_form_field function
This makes it possible to add an autocomplete attribute to a variety of
WooCommerce form fields. Making it easier for plugin developers and
core developers to build forms with good autocomplete UX.

More information about the autocomplete attribute and it’s values see:
https://html.spec.whatwg.org/multipage/forms.html#autofill-field
2016-01-11 22:55:38 +01:00
Fredrik Forsmo 676525c2b7 Improve docblock comments in various functions
* Added missing param tags to functions
* Added comments to `wc_get_attachment_image_attributes` and
`wc_prepare_attachment_for_js`
* Fixed return type value for functions where it says bool but the code
returns array
* Renamed boolean to bool
2016-01-06 17:11:09 +01:00
Mike Jolley 0b6fdf5fe8 Use data-placeholder for selects since placeholder is not to W3C spec
Closes #9986
2016-01-06 12:20:06 +00:00
Kathy Darling 70778ad575 filter the variable product attribute dropdown html 2016-01-04 10:31:43 -05:00
Claudio Sanches 441530f54e Do not espace maxlength and use the same html for password fields #9786 2015-12-07 21:53:39 -02:00
Claudio Sanches 26097b6e99 Escape attributes for #9786 2015-12-07 21:48:54 -02:00
Peter Elmered 44df7c1c34 Re-added password type attribute 2015-12-07 18:06:02 +01:00
Peter Elmered d624196924 Added support for number field in woocommerce_form_field() 2015-12-07 17:28:10 +01:00
Peter Elmered d18e5da09d Removed unnecessary duplication in woocommerce_form_field() 2015-12-07 17:25:45 +01:00
Mike Jolley 2c023a2847 Pass the wp.template to the script and append so its added to the page once when needed 2015-12-04 13:26:44 +00:00
Mike Jolley 948a8f5c47 Filters for loop add to cart
Closes #9753
2015-12-04 11:50:37 +00:00
Mike Jolley 8f951d449a Only fade in image if variation has children 2015-12-03 09:58:37 +00:00
Mike Jolley 2fce99759a [2.4] Ensure numeric 2015-12-02 15:53:54 +00:00
Mike Jolley 520192e6a9 [2.4] Sanity check for min/max quantity
Fixes #9733
2015-12-02 10:44:41 +00:00
mitogh 44dabb9d73 Update conditionals to use:
- Yoda conditional style:
  https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#yoda-conditions
- And use of strict comparisons
2015-11-30 22:02:00 -06:00
Mike Jolley 28b02fd3dd Clean up woocommerce_products_will_display 2015-11-14 15:44:15 +00:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley 1ff6a27951 Split button from variation display 2015-10-28 13:09:34 +00:00
Mike Jolley f050c804e1 Use wp.template for variation and variation button 2015-10-28 13:04:28 +00:00
Claudio Sanches 1ea5b8433f Escape normalized for the woocommerce_variation_option_name filter 2015-10-18 10:42:44 -06:00
Mike Jolley d2d1330898 Show order by template on product search
Fixes #9285
2015-10-06 14:10:01 +01:00
roykho 52ec35cab6 tweak to use product class function instead of body class function 2015-10-02 10:26:53 +02:00
roykho 5ba6ff1dac fix variation image flicker issue when default variations are set closes #7904 2015-10-02 03:45:11 +02:00
James Koster 2c00927c0b Remove the product loop title template
Provides consistency with the product category template. This template
was really too simple to require it’s own file. It can be plugged or
unhooked to edit.
2015-10-01 17:58:33 +01:00
James Koster 018bcc9d2d hook the product category links in, instead of hard coding into the template. #8575 2015-10-01 15:28:57 +01:00
James Koster fe689d3d24 Let's not create template files for such simple code. #8575
Also removes pluggability of code that simply shouldn’t have any need
to be overwritten.
2015-10-01 15:20:05 +01:00
James Koster 9de9f87c17 product category title is now hooked in rather than hard-coded into template 2015-10-01 15:12:56 +01:00
James Koster 02ddb7fc4d product archive anchors are now hooked into templates rather than hard coded. #8575 2015-10-01 14:49:40 +01:00
Claudio Sanches dc30ffcd60 Created woocommerce_upsell_display_args filter, closes #9185 2015-09-21 17:30:37 -03:00
Mike Jolley 96814b992f Show more variations per page 2015-09-14 16:54:58 +01:00
Mike Jolley bf0cb28d36 esc_html
Closes #9065
2015-09-07 13:26:43 +01:00
Jack Gregory 16cdbb4ff3 update woocommerce_dropdown_variation_attribute_options_args filter naming 2015-09-02 12:39:23 +01:00
Jack Gregory f8cc75fe4f add woocommerce_dropdown_variation_args filter 2015-08-29 16:30:36 +01:00
Ninos Ego 98a1ae4b25 Add class arg to dropdown function 2015-08-11 13:17:52 +02:00
George Stephanis 9269fd7432 Retooling how this is escaped.
Sanitize early, escape late.  Rather than double escaping, I figured
it’d be better to sprintf it in, and then escape that string — closer
to the output.

Also, I’m not sure why `urlencode` was used to escape a name?
2015-08-05 15:18:47 -04:00
George Stephanis c938fa24da More missing esc_attr calls, :( 2015-08-05 15:17:52 -04:00
Mike Jolley 808c01cb90 Added woocommerce_single_variation hook for variation data and cart button to reduce code in template file and used hooks. @claudiosmweb
Removed woocommerce_before_variations_button @Ninos. Use
woocommerce_single_variation
2015-07-28 10:32:28 +01:00
Mike Jolley 236b493f3d Removed extract 2015-07-27 17:48:31 +01:00
Mike Jolley 4d14ac8134 Missing closing tag 2015-07-27 16:50:55 +01:00
Mike Jolley 9a7893ba23 Moved variation dropdowns logic into wc_dropdown_variation_attribute_options() 2015-07-27 16:42:22 +01:00
Patrick Rauland c7cbe3e681 removing blank line. 2015-07-20 13:56:08 -06:00
Claudio Sanches f0b3d2fd9b Code tweaks for #8620 2015-07-20 14:36:12 -03:00
Jodi Warren 2fb5f5bf78 Change product title to a hooked function. Fixes #8601 2015-07-20 18:10:56 +01:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Mike Jolley cbf373ab3c kses store notice 2015-07-16 17:06:15 +01:00
Mike Jolley 60193c7861 Pass product to woocommerce_ajax_variation_threshold 2015-07-09 16:31:46 +01:00
Mike Jolley 85855938ec woocommerce_ajax_variation_threshold 2015-07-09 16:04:46 +01:00
Mike Jolley eaed944048 Tweak template logic to load variations when needed 2015-07-09 15:58:58 +01:00
Mike Jolley 65f19d5ca7 Ajax variation handling
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Paul Wilde 5c5e6fb015 Refactor woocommerce_form_field so that the container, label and description are not repeated for every field type. 2015-07-03 20:37:47 +01:00
Claudio Sanches 6e114d4f3c Updated the docblock for deprecated vars in woocommerce_get_product_thumbnail(), closes #8441 2015-06-23 12:46:37 -03:00
Mike Jolley 983041209b Use get_type() in post_class function 2015-06-08 12:20:51 +01:00
Mike Jolley cb2079deaa wc_send_frame_options_header
Prevent Clickjacking - prevent checkout and account pages from being
used in iFrames. Added via filter so this can be disabled.

Closes #8
2015-06-01 13:37:12 +01:00
James Koster 8c1e452514 proceed to checkout button template. closes #7507 2015-05-28 11:48:37 +01:00
James Koster 6389e5defa related products / upsets. closes #7873 2015-05-19 13:07:00 -04:00
Mike Jolley 6bdd713112 return true if cats get displayed only
Closes #8172
2015-05-19 12:49:34 -04:00
Mike Jolley 0b58a840e2 Merge pull request #8168 from Nikker/master
Added method to check if cart is empty
2015-05-19 11:41:48 -04:00
Claudio Sanches e106d57947 Merged #8021 2015-05-18 16:53:04 -03:00
Nikki DelRosso 940c2369b0 Added method to check if cart is empty 2015-05-14 14:18:53 -07:00
Nicola Mustone fe6f680e44 replace get_product_url with add_to_cart_url 2015-05-05 16:18:01 +02:00
Claudio Sanches a989184135 Created initial auth templates 2015-04-22 12:27:12 -03:00
Mike Jolley 7846513382 deprecate woocommerce_product_reviews_tab
Closes #7877
2015-04-10 16:07:33 +01:00
Mike Jolley 12dde04e16 wc_product_cat_class functions
Closes #7923
2015-04-10 13:17:30 +01:00
James Koster 944723d7ac tel input #7827 2015-04-01 17:36:58 +01:00
James Koster 33a3940501 email input 2015-03-27 11:49:36 +00:00
Claudio Sanches 4f7e59e743 Sanitize html classe in wc_body_class for #7735 2015-03-17 13:39:44 -03:00
Jack Gregory d262c44534 Include endpoints in body class filter 2015-03-16 13:26:22 +00:00
Jack Gregory 27bbcb88a7 Include endpoints in body class filter 2015-03-16 13:09:13 +00:00
Mike Jolley c0e5d6a959 Set placeholder for selects and ensure set if the first option is blank 2015-03-03 11:43:41 +00:00
Mike Jolley a7be0d5b8a Merge pull request #7385 from RistoNiinemets/form-field
Form field args and type filters
2015-03-02 09:56:08 +00:00
Mike Jolley d9455994c8 Use 30 days instead of year for transients to avoid bugs in memcache plugins.
Closes #7520
2015-02-24 12:02:56 +00:00
Mike Jolley bd11f51d04 Double shop page in breadcrumb and white space issues.
Fixes #7432
2015-02-16 16:21:48 +00:00
Paul Wilde c913316f8b Introduce wc_get_page_permalink. 2015-02-15 19:13:22 +00:00
Claudio Sanches 5772356eb2 Re-added the woocommerce_breadcrumb_home_url filter 2015-02-12 18:34:40 -02:00
Risto Niinemets ccba4cf6e8 wrong filter arguments order 2015-02-12 12:42:43 +02:00
Risto Niinemets 54e84cf235 run all fields through filter 2015-02-12 11:54:29 +02:00
Risto Niinemets 1cda103591 add filter woocommerce_form_field_args 2015-02-12 11:50:17 +02:00
Mike Jolley 30abed2f9e Merge pull request #7375 from tamarazuk/rating-count-fix
Fix average product rating when ratings are not required
2015-02-12 00:04:26 +00:00
Mike Jolley 518cca7326 WC_TEMPLATE_DEBUG_MODE in admin.
Fixes #7336
2015-02-11 23:32:27 +00:00
Tamara Zuk 7eaae2d561 Fix average product rating when ratings are not required
If ratings are not required, the total rating count was counting all
reviews which skewed the average rating. In other words, reviews with
no rating were counted as a “zero” rating in the average rating
calculation. This bug was introduced in
83a457b29c which provided a fix for #6839.

This change introduces a new product method `get_review_count()` which
can be used to accurately calculate the total number of reviews for a
product. Some instances of `get_rating_count()` were replaced with
`get_review_count()` where appropriate. Additionally, the
`single-product/rating.php` template was adjusted to display the
correct number of customer reviews and ratings in rich snippets. I’ve
also included the `bestRating` rich snippet detailed
[here](http://schema.org/AggregateRating). The version number was
adjusted to 2.3.2 on that template as I think this is a larger change.
2015-02-11 17:55:16 -05:00
Tamara Zuk bd8a57eb32 Avoid a fatal error if select has no options 2015-02-11 11:30:52 -05:00
Risto Niinemets 215bb8841d add input_class to all form field types 2015-02-10 17:41:34 +02:00
Mike Jolley 037242a9a2 More docblock tweaks 2015-02-03 16:03:28 +00:00
Claudio Sanches afb19715d4 Prevented XSS in urls 2015-01-29 12:33:06 -02:00
Mike Jolley 53f32416c5 Ensure product exists before is_visible check
Closes #7146
2015-01-19 10:43:43 +00:00
Claudio Sanches f39c76beaa Created the wc_format_content() function, closes #7126 2015-01-16 10:32:41 -02:00
Mike Jolley 508bfd5c06 Merge branch 'breadcrumbs-class'
Adds endpoint page titles for #5522
Fixes link back to endpoint pages and closes #6638
Avoids need for breadcrumb fix which closes #6834
Removes the need and closes #6834
Fixes #6840
2014-12-05 13:42:19 +00:00
claudiosmweb 780aca38a6 Fixed checkbox label in woocommerce_form_field() function, closes #6880 2014-12-01 10:13:41 -02:00
Mike Jolley 2e398a3a79 Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
Mike Jolley 67d899da3a Restore __Get and move template debug mode to template functions 2014-11-26 00:03:00 +00:00
Bryce 333e4dd2fe Remove previously added filter, not necessary 2014-11-20 16:43:48 +07:00
Bryce 985df5bca4 #2906 - Set reviews count in tab to only count actual reviews
Nested comments shouldn’t be treated as reviews. This addresses that by
using `$product->get_rating_count()` to determine the correct number of
reviews, instead of get_comments_number.

It can be filtered using the new `woocommerce_product_reviews_count`
filter.
2014-11-20 12:39:07 +07:00
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
Mike Jolley ca6885c4a3 Merge pull request #6731 from SiR-DanieL/patch-2
Hide order again button
2014-11-12 09:06:29 -08:00
Mike Jolley 4b2ab00be3 Order again button template file
Closes #6664
2014-11-12 15:33:00 +00:00
Nicola Mustone be59e9f80b Hide order again button
Hide "Order again" button if the user is not logged in.
2014-11-12 11:44:26 +01:00
Emil Österlund 8861e23078 Fix for #6715 2014-11-08 16:08:26 +01:00
Emil Österlund d77548f4cc woocommerce_form_field did not use "input_class" if type was set to select, this commit solves that 2014-11-08 16:02:43 +01:00
Geert De Deckere b105a24cf8 Fix typo 2014-10-13 15:42:07 +02:00
Mike Jolley bf885f846e Refactor - get_product_search_form().
Also removed < 2.1 deprecated filter mapping.

Closes #4444
2014-10-10 12:48:05 +01:00
Mike Jolley b041093194 [2.2] Added woocommerce_product_subcategories_hide_empty filter
Use add_filter( ‘woocommerce_product_subcategories_hide_empty’,
‘__return_true’ ); to enable. Fixes #6482
2014-10-08 15:19:54 +01:00
James Koster ef28c43862 move proceed to checkout button. closes #5496 2014-10-06 12:33:39 +01:00
Mike Jolley 7d9598d0a8 [2.2] Core still has issues dealing with pad_counts + parent when getting categories.
Workaround by not hiding empty cats, then filter the returned list
using wp_list_filter. Fixes #6459
2014-10-06 11:41:33 +01:00
Beka Rice fa686eb9a7 Add maxlength attribute to textarea fields 2014-10-01 16:35:03 -04:00