Mike Jolley
da92201f5a
Use display price in schema
2016-04-06 10:22:45 -05:00
Mike Jolley
84d3fe2d82
wc_format_localized_decimal on dimensions
2016-03-30 13:19:01 +01: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
a778c0b234
Give loops names, and set class outside of template files
...
Closes #10028
2016-02-12 13:32:58 +00:00
Mike Jolley
bd4c90dbec
Docblocks
...
Fixes #10336
2016-02-12 11:28:44 +00:00
Mike Jolley
cae1fe6b85
Refactors/improvements to layered nav to support slugs
...
#7806
2016-02-09 14:41:17 +00:00
Mike Jolley
25e02ac6f1
Alt text is set by WP
...
Fixes #10215
2016-01-29 11:25:43 +00:00
Gregory Karpinsky
17b16b4dd2
Omit closing PHP tag to avoid "Headers already sent" issues.
2016-01-26 18:35:24 -05:00
Mike Jolley
8093194a44
[2.5] Qty button can be hidden for variables sold individually
2016-01-22 17:53:12 +00:00
Kathy Darling
67c06f313e
add filter for reset variations link html
2016-01-07 09:43:34 -05:00
Mike Jolley
0ebba8b0be
flip desc and price
2015-12-04 13:34:38 +00:00
Mike Jolley
b7d8091a44
pass full variation object into script instead of parts
2015-12-04 13:31:36 +00: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
mitogh
d3804dc16c
Forece strict comparisons on single products template
2015-11-14 20:31:23 -06:00
Claudio Sanches
1f24a22de6
Escape price.php template
2015-11-09 00:57:36 -02: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
d1d9ff1b59
Adjust how the 'clear' link appears
2015-10-29 16:51:05 +00:00
Mike Jolley
edd2e4f2cb
wp.template is not required for cart button
2015-10-28 14:59:40 +00:00
Mike Jolley
6a64f3ba7a
Remove global
2015-10-28 14:19:44 +00: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
ad29047d3c
Created woocommerce_review_before_comment_text hook on templates/single-product/review.php #9432
2015-10-27 11:13:22 -02:00
Claudio Sanches
e9fb395471
Introduce two new actions on templates/single-product/review.php
...
New actions:
- woocommerce_review_before_comment_meta
- woocommerce_review_after_comment_text
Closes #9432
2015-10-26 13:36:02 -02:00
Mike Jolley
002bfa45e4
Ensure grouped product exists
...
Fixes #9382
2015-10-22 16:35:29 +01:00
Jeff Stieler
58ec17f76d
Use new review verification status retrieval method on single review template and in APIs.
2015-10-20 22:05:17 -06:00
Jeff Stieler
cfdef778bf
Use review comment meta to determine if the customer bought the product.
2015-10-20 22:03:29 -06:00
Mike Jolley
cf54ea8fc0
esc_attr does not double encode
...
fixes #9287
2015-10-07 12:03:10 +01:00
Caleb Burks
ee2757c08f
Specific template override paths
2015-10-03 02:58:08 -05:00
Mike Jolley
de4a80f950
Add disclaimer to template files
...
Closes #8942
2015-10-01 16:07:35 +02:00
Claudio Sanches
ad80f2188b
Updated the /single-product/add-to-cart/variable.php version
2015-09-22 13:53:19 -03:00
Claudio Sanches
605db1cf3a
hijax for variations on frontend
2015-09-22 13:22:12 -03:00
Mike Jolley
1b45bcde0b
URL encode to preserve text attributes in permalinks
2015-07-28 10:37:24 +01: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
9a7893ba23
Moved variation dropdowns logic into wc_dropdown_variation_attribute_options()
2015-07-27 16:42:22 +01:00
Manos Psychogyiopoulos
18a7c6b7fb
back-compat with text-based attributes: defaults don't work in WC2.4
2015-07-18 12:34:41 +03:00
Ninos Ego
147c589bda
Add hook e.g. for wgm
2015-07-10 16:37:52 +02: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
Claudio Sanches
af3dfce73f
Escape tabs key and title, closes #8449
...
@mikejolley
2015-06-26 13:21:26 -03:00
Justin Shreve
5b7c51b5de
Wrap the quantity from $_POST in wc_stock_amount to cast it properly
2015-06-18 23:16:00 +00:00
Justin Shreve
eddec91b5a
If a quantity is set in the $_POST request, use that over the field default. This way, if a validation error occurs, the user's requested quantity stays the same.
2015-06-18 20:51:17 +00:00
Mike Jolley
89f7e15052
Save full version of text based attributes when dealing with variations
2015-06-11 14:43:02 +01:00
Claudio Sanches
b2a612dba2
[2.3] Revert some changes from a65616c
2015-05-29 12:27:38 -03:00
Mike Jolley
ffab4feb0c
Remove #reset anchor. Unused.
...
Closes #8134
2015-05-26 17:45:19 +01:00
Claudio Sanches
b06428a63a
Updated some templates versions to 2.4.0
2015-05-21 14:26:15 -03:00
Claudio Sanches
e559452c28
[2.3] Escape product titles, closes #8197
2015-05-21 14:20:37 -03:00
Mike Jolley
1a9336a4dc
[2.3] Remove email alt text from get_avatar
...
Closes #8152
2015-05-13 13:46:03 +01:00
Gabor Javorszky
72bb8fb553
New filter on grouped products' permalinks
...
Closes #8065
* adds new filter: 'woocommerce_grouped_product_list_link'
2015-04-29 03:07:47 +01:00
Gabor Javorszky
7de4d6ad49
Adds escaping to url and title in link for grouped product page
2015-04-29 03:00:01 +01:00
Mike Jolley
4997ed0efb
Cleaned up tabs JS and fixed conflicts with bootstrap
...
Fixes #8000
2015-04-23 12:24:15 +01:00
Claudio Sanches
b2eb52298e
Updated the template version for #7962
2015-04-15 10:39:14 -03:00
Nicola Mustone
c8f8ee33be
Action woocommerce_before_variations_form
...
Added action `woocommerce_before_variations_form` to hook before the variations dropdowns
2015-04-15 15:26:46 +02:00
Nicola Mustone
94fa49655f
using wc_date_format
2015-04-13 17:58:03 +02:00
Nicola Mustone
cf89d78b7d
removing localization
2015-04-13 17:56:41 +02:00
James Koster
5b1411c771
gallery img title/caption. closes #7857
2015-04-02 18:55:12 +01:00
Almaz Mannanov
169f4cefe6
Remove dots after SKU, Categories and Tags
...
Some people think that the dots should not be there. If we want to keep them we can include them to localization file.
2015-03-22 13:02:53 +03:00
Mike Jolley
08e6f5acfb
Skip hidden grouped products
...
Closes #7711
2015-03-13 09:44:37 +00:00
James Koster
0973dec1e3
lightbox uses image title / caption correctly.
2015-03-02 12:15:10 +00:00
Mike Jolley
a786fba802
Min and max for grouped products Closes #7577
2015-03-02 12:11:57 +00:00
Mike Jolley
560a6bec87
Correct review itemprop Closes #7587
2015-03-02 10:34:23 +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
Claudio Sanches
55258fc426
Fixed variable fields on frontend, closes #6868
2014-12-22 13:29:13 -02:00
Nicola Mustone
7aeb9d27bb
Retrive reviewers avatar using the email
...
Using the email will fix the wrong avatar issue occurring while creating manually the review from the admin panel.
2014-12-08 12:07:22 +01:00
Mike Jolley
fffc1c772b
Correctly show terms when attribute has outfit chars Closes #6872
2014-12-05 14:44:48 +00:00
Mike Jolley
2cfaead676
Added numeric sort for attributes. Closes #5978
2014-11-27 14:49:02 +00:00
James Koster
299858764b
gallery column css. closes #6767
2014-11-17 15:41:27 +00:00
Mike Jolley
986afea224
Merge pull request #6531 from franticpsyx/variations_script_reusable
...
Make variations script re-usable
2014-10-21 23:36:00 +01:00
Nicola Mustone
09737a0ef2
wrong spacing
2014-10-16 21:41:09 +02:00
Nicola Mustone
df13e6068f
Ratings hidden when reviews are disabled
2014-10-16 21:38:04 +02:00
Manos Psychogyiopoulos
1e44f0cd68
make variations script re-usable
2014-10-14 11:03:47 +03:00
shivapoudel
61430e1515
Absolute path should have curly braces - part 2
2014-09-22 22:22:57 +05:45
splashingpixels
91768526de
reverted rich snippet currency to priceCurrency due to a typo in Googles Rich Snippets docs
2014-09-03 19:06:44 -07:00
Mike Jolley
01b5f5afec
Sanitize taxonomy names Closes #6124
2014-08-29 10:18:36 +01:00
Mike Jolley
f84d90a1a0
Prevent related products shortcode creating errors
...
Closes #6114
2014-08-28 12:36:52 +01:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Geert De Deckere
24d588544b
Removed unused global $woocommerce variable from the templates
...
The WC() function is to be used since v2.1
2014-08-17 22:29:51 +02:00
Mike Jolley
b1c76adb56
Send product object to woocommerce_stock_html filter. Closes #6016
2014-08-13 11:30:47 +01:00
splashingpixels
3b0d55dbf7
corrected currency rich snippets for price
2014-07-29 22:01:46 -07:00
claudiosmweb
61c94f9e25
fixed some hard code strings
2014-06-11 17:12:23 -03:00
Adrian Dimitrov
7de8b10428
Consistence
...
Way to remove complete <h2> tag also consistence syntax like templates/single-product/tabs/additional-information.php
2014-05-06 23:12:09 +03:00
Mike Jolley
39b1ffe01c
reset grouped products correctly to work with short codes
2014-04-08 10:29:51 +01:00
splashingpixels
1e998f776e
template coding standard fixes
2014-04-07 19:29:39 -07:00
Mike Jolley
02a1735674
Clean up labels and default cost to 0 for int shipping
...
Closes #5219
2014-04-07 10:07:13 +01:00
Gregory K
3bd2954a13
Fix: additional-information.php
...
- Do not display empty <h2> tag
- Removed unused globals
- WP code style
2014-03-30 21:26:17 -04:00
Mike Jolley
bfecc0c7d5
Tweak product attributes template to hide table if nothing is shown Closes #4927
2014-02-25 15:33:07 +00:00
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00
splashingpixels
454b97080a
coding standards fixes
2014-01-22 20:36:24 -08:00
splashingpixels
b16d5195c8
coding standards fixes
2014-01-14 21:53:37 -08:00
Mike Jolley
0c9962cf93
Get correct name Fixes #4385
2013-12-24 14:28:25 +00:00
Mike Jolley
e0779b0f06
Global templates make more sense than shop templates, and re-use quantity inputs for cart and single products Closes #4210
2013-11-28 17:23:45 +00:00
Coen Jacobs
4afbd0b556
Merge branch 'function-call-refactor'
...
Conflicts:
includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
includes/shortcodes/class-wc-shortcode-cart.php
includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley
b774e84e29
Revert "Replaced templates functions"
...
This reverts commit 4ce301a080
.
2013-11-25 14:16:26 +00:00
Mike Jolley
51ba9c393f
WC globals
2013-11-25 14:01:38 +00:00
Mike Jolley
3408965b8a
Product functions
2013-11-25 14:01:38 +00:00
Mike Jolley
4ce301a080
Replaced templates functions
2013-11-25 14:01:37 +00:00
Mike Jolley
3973beae5d
woocommerce_ functions to wc_ - replaced attribute functions
2013-11-25 14:01:37 +00:00
Coen Jacobs
1663eafb68
Customer functions woocommerce to wc refactor
2013-11-25 13:52:53 +01:00
Coen Jacobs
aaa14894ca
Core functions woocommerce to wc refactor
2013-11-25 13:45:04 +01:00
Andrew Benbow
437b224f7b
Fix variations not showing in all cases for draft products
2013-11-25 09:03:07 +01:00
Mike Jolley
3d01a288ec
hook: 'data-rel', Closes #4115
2013-11-18 13:00:56 +00:00
Mike Jolley
c530e8bfcd
Schema: ProductID can now be SKU, added URL
2013-11-04 12:53:49 +00:00
Mike Jolley
b4d1c764d5
Move average rating outside of hidden tab. Closes #3867 .
2013-10-31 16:26:20 +00:00
Mike Jolley
e143d344e5
Constants
2013-10-24 19:36:22 +01:00
Mike Jolley
08bfd6b4d7
woocommerce_before_single_variation and after. Removed un-needed div. Closes #3906
2013-10-16 10:41:23 +01:00
Mike Jolley
ef49977905
add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
...
Closes #3484 and Closes #3143 . Pinging @thenbrent as the handler was
originally his idea and I've killed it.
@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley
e58b101fd5
If no variations exist, show out of stock notice. Closes #3763 .
2013-09-25 09:36:04 +01:00
Mike Jolley
9a98be6a15
WOOCOMMERCE_DELIMITER constant. Closes #3476 .
2013-09-24 12:24:26 +01:00
Mike Jolley
06ef44c9df
Pass args to variation forms from cart page. Closes #3568
2013-09-23 15:47:47 +01:00
Mike Jolley
355dd16962
Removed @coenjacobs helpers and cleaned up main clas
2013-09-12 14:41:02 +01:00
Mike Jolley
bfc2b52d10
Ensure product image has title
2013-09-04 14:17:17 +01:00
Mike Jolley
3d078397b3
Merge branch 'Re-organise-settings'
...
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
James Koster
719acf5104
review gravatar size filterable & added alt text
2013-08-05 13:54:27 +01:00
Mike Jolley
9f1c14c682
Tidied comment styling and only show stars if set Closes #2906 .
2013-07-31 09:44:28 +01:00
Mike Jolley
45ec540236
fix notice with sku
2013-07-30 11:39:25 +01:00
Mike Jolley
15f98496f1
Ensure sku placeholder exists for variable products Closes #1734 .
2013-07-30 11:12:47 +01:00
Mike Jolley
8c57fce84d
Fix rich snippets for sale prices. Closes #3470 .
2013-07-19 15:28:47 +01:00
Mike Jolley
08ef109e28
Related were limited to 5. Closes #3462
2013-07-19 14:50:52 +01:00
Mike Jolley
b38ef8efcd
No add to cart redirect, and use POST for add-to-cart Closes #3200
2013-06-14 12:48:41 +01:00
Coen Jacobs
a09ebc9cca
Merge branch 'helpers-refactor' into core-class-refactor
...
Conflicts:
classes/class-wc-shortcodes.php
classes/shortcodes/class-wc-shortcode-change-password.php
classes/shortcodes/class-wc-shortcode-view-order.php
templates/myaccount/form-change-password.php
templates/myaccount/form-login.php
templates/order/order-details.php
woocommerce-functions.php
2013-06-06 13:55:36 +02:00
Mike Jolley
cea7037b56
Canonicalize Cross-Sells invokation Closes #2913
2013-06-05 17:29:10 +01:00
Coen Jacobs
74fcf1a1d4
Abstracted attribute helper to class #3282
2013-06-05 16:14:25 +02:00
Mike Jolley
a0a0c93fb4
Merge pull request #3037 from scarydakis/master
...
Fix incorrect CSS class being output in product image gallery
2013-04-29 01:50:48 -07:00
Stephan
769fada460
Update product-image.php
...
Fix to correctly calculate $attachment_count
2013-04-27 00:42:41 +10:00
Mike Jolley
77aa394093
Prevent empty meta queries by filtering. Closes #2978 .
2013-04-17 16:29:43 +01:00
Mike Jolley
003dab8525
Better workaround for #2975
2013-04-16 15:39:07 +01:00
Mike Jolley
6a96cc5d4c
Less fugly conditonal.
2013-04-16 14:47:16 +01:00
Mike Jolley
c211603fc9
Fix saving options for attribute taxonomies containing special chars. Closes #2975 .
2013-04-16 14:41:23 +01:00
Mike Jolley
f930ab27b6
More validation fixes. #2903 .
2013-04-08 19:35:10 +01:00
Daniel Espinoza
eb6dfe9ad4
Changes to template files that were causing validation errors.
2013-04-05 21:56:36 -05:00
James Koster
3d3df8f70d
message icon in FF & prettyPhoto nav when only one product image fix
2013-03-12 11:05:18 +00:00
Mike Jolley
bc4cc8bf7e
Codestyling bug with meta.php
2013-03-11 18:08:55 +00:00
Mike Jolley
eb11384fa9
Merge pull request #2647 from leewillis77/msrp_hooks
...
Add additional hook to grouped product add-to-cart template
2013-03-10 06:10:44 -07:00
Mike Jolley
600f8728a0
Tweaked filter names + structure. #2659
2013-03-10 13:07:36 +00:00
Roy Ho
983f455a6d
Added filters on the product image HTML and product thumbnails for 3rd party customizations
2013-03-09 13:34:52 -08:00
Lee Willis
7a8f87428c
Add additional hook to grouped product add-to-cart template
2013-03-08 18:26:01 +00:00
Mike Jolley
5393fc7ddb
Santize custom attributes. #2587
2013-03-07 19:34:29 +00:00
Mike Jolley
089178e0e8
escape when output, not when saved. #2587
2013-03-05 21:20:00 +00:00
Brent Shepherd
b0d538636a
Restore single_add_to_cart_button class
2013-03-05 14:26:59 +10:00
Brent Shepherd
3935034bc0
Fix grouped products sold individually add-to-cart
...
The add-to-cart button for products sold individually on a grouped
product page would always lead to the "Please choose a product to
add to your cart" error. This fixes that, and also restores th
'single_add_to_cart_text' filter to the button's text.
2013-03-05 14:22:54 +10:00
Pascal Borreli
ae7899c67b
Fixed typos
2013-03-03 17:07:31 +00:00
Mike Jolley
858465b991
Fix lightbox Closes #2451 .
2013-02-14 17:12:21 +00:00
Mike Jolley
b67492fe68
Hide thumbnails when empty. Closes #2409 .
2013-02-11 14:17:57 +00:00
Mike Jolley
b1b1afbaeb
Move tabs file
2013-02-10 18:49:22 +00:00
Mike Jolley
3e5b4141f6
Refined the way in which tabs are added to products
2013-02-10 17:33:13 +00:00
Mike Jolley
c903e47089
Improve variation form pattern and data
2013-02-07 10:12:08 +00:00
James Koster
ac70b46867
more prettyPhoto
2013-01-31 14:15:55 +00:00
James Koster
6ae394bec0
replace the rels, minify css
2013-01-30 23:56:41 +00:00
James Koster
cf00520b4c
step 1 of replacing Fancybox with prettyPhoto
2013-01-30 16:18:36 +00:00
Mike Jolley
31be242a6b
Fix ordering. Closes #2229 .
2013-01-15 12:10:03 +00:00