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