Commit Graph

204 Commits

Author SHA1 Message Date
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