Mike Jolley
9d5eb07373
_e -> esc_html_e
2019-04-23 15:53:58 +01:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Andrew Lazarus
07a8183f2a
Hard coded class now filterable
...
Ability to add library classes to price instead of overwriting template
2019-02-15 09:49:29 +01:00
Mike Jolley
889cf64ac4
Merge branch 'performance/wc-get-product-class'
2019-02-07 13:34:18 +00:00
Mike Jolley
a5d62b83a8
Merge branch 'enhancement/woocommerce_display_product_attributes'
2019-02-04 11:25:13 +00:00
Mike Jolley
c0b9491b1e
Pass product objects to wc_get_product_class to avoid reloading the product object
2019-01-30 16:02:09 +00:00
Gerhard
574e98060d
Bump template versions to 3.6.0
2019-01-22 15:18:15 +02:00
Gerhard
98948a2faf
PHPCS fixes
2019-01-17 08:32:42 +02:00
Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Mike Jolley
2ea7e4fb6a
woocommerce_display_product_attributes filter
2019-01-16 12:25:19 +00:00
Mike Jolley
2724fd76cd
Merge pull request #22017 from Bradley-D/feature/wpcs-inline-php
...
WPCS: inline PHP semicolon and spacing
2019-01-07 12:47:08 +00:00
Bradley Davis
e97204a483
Removed @author tag from docbloc in the template files
2018-12-06 12:13:39 -02:00
Bradley Davis
7481af8614
[ UPDATE ] inline PHP semicolon and spacing
2018-11-22 20:37:14 +10:00
Rodrigo Primo
9b094fc74d
Use $product->get_image_id() instead of has_post_thumbnail()
...
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032
and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Rodrigo Primo
3c76b4992b
phpcs fixes
2018-10-18 09:11:26 -03:00
pierrebuet
4bed2ddeea
Correct spaces
2018-09-24 21:45:55 +02:00
pierrebuet
db3270a390
Show the right size of placeholder image on single product page
...
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes. wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
Gerhard Potgieter
87cfc646f4
Fix PHPCS errors ( #21009 )
2018-08-08 11:19:36 +02:00
Shabnam
722c21066f
changed version to 3.5.0 and adjusted the curly brace
2018-08-08 13:27:54 +06:00
Shabnam
4affbff47e
removed unnecessary php tag [point 2] and removed a return false statement[point 3]
2018-08-04 19:51:25 +06:00
Mike Jolley
301e9339a9
Move selected logic to function
2018-05-29 14:31:50 +01:00
James Kemp
16785b33ab
Do not escape HTML for attribute label
2018-05-24 15:29:53 +01:00
Mike Jolley
6e0d0fe6ed
Simplify code in template
2018-05-22 10:53:33 +01:00
Mike Jolley
7fc75897cd
Use GET in external product form
2018-05-18 22:16:59 +01:00
claudiulodro
2bd5feb51d
Rename variable to prevent name collision
2018-05-08 14:14:32 -07:00
Claudio Sanches
933bcc32c3
Merge branch 'master' into fix/19620
2018-04-17 12:45:20 -03:00
claudiulodro
7342807674
Update comments
2018-04-16 11:17:39 -07:00
Mike Jolley
2983753809
Update action placement so all product types are consistent.
...
Also fixes phpcs.
2018-04-10 11:57:49 +01:00
Mike Jolley
6dff553548
Make markup in external product add to cart form mirror simple products with button/form elements.
2018-04-10 11:45:31 +01:00
Claudio Sanches
1e58c3f2a0
Replaced post_class() to wc_product_class()
2018-04-06 14:03:38 -03:00
Claudio Sanches
9ab58dde47
Merge branch 'master' into fix/incorrect-escaping
2018-03-28 14:32:51 -03:00
Claudio Sanches
376e51c9f1
Fixed PHPCS violations
2018-03-28 14:30:43 -03:00
Claudiu Lodromanean
cdb8cf86af
Merge pull request #19530 from woocommerce/add/escaping-to-publish-date
...
Add escaping to publish date
2018-03-27 12:12:53 -07:00
Jonathan Belcher
435337c3e0
Bump version Number
2018-03-27 11:51:47 -04:00
Jonathan Belcher
b039e40fed
Fixes stray space in tabbing
2018-03-26 13:51:24 -04:00
Jonathan Belcher
97c591a5e5
Add escaping to piblish date
2018-03-26 13:44:16 -04:00
Jonathan Belcher
47a82fbb3d
Fixes incorrect escaping
2018-03-26 13:37:44 -04:00
Gerhard Potgieter
fb76e1dd7d
Revert tamplate version to 3.4.0
2018-03-07 12:53:27 +02:00
Gerhard Potgieter
dce123bf23
Bump template version
2018-03-07 11:59:10 +02:00
Gerhard Potgieter
11c85c7b8d
Do not pass the attribute name coming from the $_REQUEST variable through sanitize_title when working out the selected attribute as non english chars result in non matching checks. wc_dropdown_variation_attribute_options takes care of sanitization already.
2018-03-07 10:47:18 +02:00
Claudio Sanches
2d85b5adde
Merge pull request #18956 from R33D3M33R/patch-1
...
Convert HTML comments to PHP, remove empty lines
2018-02-20 16:19:41 -03:00
Mike Jolley
90717295cf
Remove globals/add woocommerce_add_to_cart_form_action filter
2018-02-20 11:12:29 +00:00
Andrej Mernik
62e158835c
Update photoswipe.php
...
Remove comments. Theme developers can read the Photoswipe docs for modification ...
2018-02-14 07:48:12 +01:00
Mike Jolley
280ca3757e
wc_get_gallery_image_html checks
2018-02-13 19:18:13 +00:00
Andrej Mernik
4e1fab4652
Convert HTML comments to PHP, remove empty lines
...
There are no benefits of exposing code comments to the public. The code was also made more compact.
2018-02-13 14:43:02 +01:00
Mike Jolley
2b36b5f49f
Main image should be larger.
2018-02-13 11:16:42 +00:00
Mike Jolley
a55a4b9a88
Use helper function which has more filters and moves logic out of template file
2018-02-13 11:16:42 +00:00
Kathy Darling
e54009e652
Add grouped_form class to grouped product <form> element. Closes #18763
2018-02-02 11:17:42 -06:00
Mike Jolley
b9a4a342e6
Remove the lone price/label/quantity class in grouped template
...
Closes #18542
2018-01-22 14:27:46 +00:00
Claudio Sanches
9413589e8f
Apply woocommerce_short_description filter before check if excerpt is empty
...
Closes #18225
2017-12-19 14:19:12 -02:00
Mike Jolley
06a7570f4b
Out of stock should not show qty in grouped products.
2017-12-15 15:32:50 +00:00
Andrew Lazarus
db65913d3c
Removed whitespace in variations
...
Whitespace is added by formatting the lines with whitespace. This stops you from being able to target the element & check if it's empty with :empty etc.
2017-11-29 10:55:09 +01:00
Mike Jolley
db4e630600
Replace thumbnail names
2017-11-07 18:48:51 +00:00
Mike Jolley
ecb90b4ae5
Merge branch 'master' into pr/17111
...
# Conflicts:
# templates/single-product/add-to-cart/grouped.php
2017-10-31 16:08:32 +00:00
Mike Jolley
b8e0016dcd
Grouped products; allow custom columns and changes to values
2017-10-31 16:07:30 +00:00
Mike Jolley
3340d5c7cc
Add form action
...
Closes #17280
2017-10-20 16:12:56 -07:00
Kathy Darling
0c18d8bab4
add woocommerce_grouped_product_list_after_price hook
2017-10-09 14:03:55 -05:00
Kathy Darling
98485d8bbf
move woocommerce_grouped_product_list_before_price hook into <td> element
2017-10-09 14:03:35 -05:00
Bing-Sheng Chen
3042d7a19c
Fix "Undefined index: callback" notice
2017-08-29 16:29:39 +08:00
Mike Jolley
2b9c8677eb
Passing by reference breaks global functions in grouped template
...
Fixes #16236
2017-08-01 08:44:16 +02:00
nishitlangaliya
1e8e41ffb6
Schema data out of date in review-meta removed ref #16018
2017-07-08 12:13:38 +05:30
andrebalza
b41b2ebb82
Issue #15860 - Override instructions corrected
2017-06-29 12:26:28 +03:00
Caleb Burks
9d68638f48
Update some template comments
2017-06-27 23:04:09 -05:00
Mike Jolley
396c8aa4fc
Fix comment
...
Closes #15560
2017-06-12 11:39:22 +01:00
Claudio Sanches
527fa0d07a
Fixe CHMOD
2017-06-05 14:45:30 -03:00
Mike Jolley
d39d882a4e
use make clickable for urls
...
#15305
2017-06-01 15:29:17 +01:00
Mike Jolley
b140f61510
Merge branch 'master' into fix/14578
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-05-23 15:09:20 +01:00
Mike Jolley
690520a5b1
Setup postdata after grouped loop so description etc is correct
...
Closes #14995
2017-05-10 19:41:55 +01:00
Beka Rice
69752ec933
Bump template version + fix inconsistent alignment (use all spaces)
2017-05-10 04:23:08 -04:00
Beka Rice
b9680e250f
Fix: Grouped Product page add to cart template shows only the grouped product name / permalink
2017-05-10 04:06:58 -04:00
Mike Jolley
36f78230fc
reset post data prevents grouped products working in shortcodes
...
Fixes #14825
2017-05-08 16:14:46 +01:00
Claudio Sanches
5826a9bce0
Display total of customer reviews and applied to rating template
2017-04-28 19:56:05 -03:00
Claudio Sanches
915a4c7f59
Applied wc_get_rating_html() to review rating template
2017-04-28 19:33:39 -03:00
Mike Jolley
d546613c25
Merge branch 'pr/14394'
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-04-27 11:53:08 +01:00
Mike Jolley
1e6d52a3bd
Add a data-caption for captions and keep title around.
...
Fixes #14578
2017-04-25 14:31:24 +01:00
Claudio Sanches
1314b6845e
Merge pull request #14432 from emgk/fix-14428
...
added new filter for product thumbnail size.
2017-04-24 21:05:27 -03:00
Govind Kumar
fef8b8365b
changed thumbnail image filter name
2017-04-17 15:43:17 +05:30
Govind Kumar
d8f7deb92c
added new filter for product thumbnail size.
2017-04-17 11:30:26 +05:30
refael iliaguyev
14806a4a6f
Bump version for variable.php
2017-04-15 20:23:27 +03:00
AJ Clarke
3b09dc5793
Undo edits
2017-04-14 17:39:00 -07:00
AJ Clarke
3731d629f5
Undo product gallery mods
2017-04-14 17:37:54 -07:00
AJ Clarke
e037635f18
Prevents duplicate thumbnail when featured image is added to the product gallery
2017-04-14 09:52:13 -07:00
Claudio Sanches
daf8b3a39b
Bump single-product/add-to-cart/grouped.php template version
...
Because fixes introduced in #14346
2017-04-13 12:33:21 -03:00
rwilliam
910588b91f
Update grouped.php
...
Group child product link viable in main group product page if we set child product visibility to hidden
if we change $product->is_visible() to $grouped_product->is_visible() then it working fine
2017-04-13 19:05:13 +05:30
Mike Jolley
98b21b6be7
Fix caption on thumbnails as well as main image
2017-04-11 12:08:04 +01:00
Mike Jolley
d89567f0e6
Gallery images should show caption not description
...
Fixes #14218
2017-04-10 22:38:16 +01:00
Mike Jolley
2638f61a86
Prevent notice in thumbnails html
...
Fixes #14114
2017-04-07 17:05:28 +01:00
Claudio Sanches
567a551d83
Fixed shortcode render for variations and backwards compatibility
...
Fixes #13949
2017-04-06 13:00:02 -03:00
Claudio Sanches
f250cac8d1
Merge pull request #13967 from woocommerce/fix/13933
...
Use parent settings for determining if variations are sold individually.
2017-04-05 15:33:17 -03:00
Claudiu Lodromanean
5389844a1b
Use parent data for sold_individually
2017-04-05 11:02:26 -07:00
Md. Kowsar Hossain
2bbf5ed42f
version number updated in up-sells template
2017-04-05 18:26:23 +06:00
Mike Jolley
c06fdc2e2e
If product has_options, don't show qty in grouped product add to cart form
...
Fixes #13875
2017-04-03 12:05:28 +01:00
Mike Jolley
62bd505bda
CSS transition
2017-03-31 15:16:10 +01:00
Manos Psychogyiopoulos
eb43190e1e
Stripslashes of posted variation attribute values
...
Resolves issues with values that contain quotes, for instance.
2017-03-24 12:00:46 +02:00
Mike Jolley
47f363a463
data-src on all gallery images
...
#13710
2017-03-22 13:26:00 +00:00
Mike Jolley
e2f1449553
Set data-src
...
Closes #13710
2017-03-22 12:51:27 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
1b8e4612ee
Load markup for photoswipe so shortcodes can use it
2017-03-14 16:32:59 +00:00
Manos Psychogyiopoulos
20d2c8b269
merge branch 'master' into multiple-and-dynamic-galleries
2017-03-14 15:31:01 +02:00
Manos Psychogyiopoulos
9181f1c151
allow init with args
2017-03-14 12:55:25 +02:00