Aristeides Stathopoulos
8fe4cd65a4
PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket
2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos
ff852038c9
WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys
2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
04869ab784
Merge pull request #11685 from Ninos/json_encode
...
Use wp_json_encode() instead of json_encode()
2016-08-12 10:36:12 +01:00
Ninos Ego
a191ab7aaa
Use wp_json_encode() instead of json_encode()
2016-08-12 05:57:08 +02:00
Mike Jolley
33aa884648
broken bracket
2016-07-22 12:36:31 +01:00
Mike Jolley
caea27e722
get_the_title does not need escape
2016-07-22 12:22:53 +01:00
Claudio Sanches
14eeee15ee
Welcome to docs.woocommerce.com
2016-07-19 07:30:31 -03:00
Claudio Sanches
7d9d091767
Fixed mixed tabs and spaces
2016-07-11 16:56:35 +02:00
Damien Carbery
4d72279c0d
Update grouped.php
...
Pass $product->single_add_to_cart_text() through esc_html() to be consistent with simple.php and variation-add-to-cart-button.php.
2016-06-09 12:20:27 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03: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
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
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
Mike Jolley
002bfa45e4
Ensure grouped product exists
...
Fixes #9382
2015-10-22 16:35:29 +01: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
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
Mike Jolley
ffab4feb0c
Remove #reset anchor. Unused.
...
Closes #8134
2015-05-26 17:45:19 +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
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
Mike Jolley
08e6f5acfb
Skip hidden grouped products
...
Closes #7711
2015-03-13 09:44:37 +00:00
Mike Jolley
a786fba802
Min and max for grouped products Closes #7577
2015-03-02 12:11:57 +00:00
Claudio Sanches
55258fc426
Fixed variable fields on frontend, closes #6868
2014-12-22 13:29:13 -02: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
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
Mike Jolley
01b5f5afec
Sanitize taxonomy names Closes #6124
2014-08-29 10:18:36 +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
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
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
Mike Jolley
b774e84e29
Revert "Replaced templates functions"
...
This reverts commit 4ce301a080
.
2013-11-25 14:16:26 +00:00
Mike Jolley
4ce301a080
Replaced templates functions
2013-11-25 14:01:37 +00:00
Andrew Benbow
437b224f7b
Fix variations not showing in all cases for draft products
2013-11-25 09:03:07 +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
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
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
74fcf1a1d4
Abstracted attribute helper to class #3282
2013-06-05 16:14:25 +02:00
Mike Jolley
003dab8525
Better workaround for #2975
2013-04-16 15:39:07 +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
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
Mike Jolley
c903e47089
Improve variation form pattern and data
2013-02-07 10:12:08 +00:00
Mike Jolley
31be242a6b
Fix ordering. Closes #2229 .
2013-01-15 12:10:03 +00:00
Geert De Deckere
319c81b403
Made title attribute for product quantity inputs translatable
2013-01-03 14:18:30 +01:00
Mike Jolley
681a2a8ba5
Groups product titles. Closes #1966 .
2012-12-11 17:28:47 +00:00
Coen Jacobs
37feabd87f
WooCommerce 2.0 is coming!
2012-12-03 20:19:58 +01:00
Mike Jolley
3c66ddae42
Class tweaks, need more testing. Closes #1874 .
2012-11-29 16:48:40 +00:00
Mike Jolley
b1ec4b289a
Nuked whitespace. Closes #1846 .
2012-11-27 16:22:47 +00:00
Mike Jolley
4720628a71
Hooks galore for integers vs floats. Closes #1113 .
2012-11-19 14:05:06 +00:00
Mike Jolley
0d38e61e2d
Sanitize fixes. Closes #1614 .
2012-10-17 12:05:54 +01:00
Coen Jacobs
80fc5fc086
[3.2.3] Templates XSS #1575
2012-10-16 17:35:16 +02:00
Mike Jolley
8c3ad31c07
Localisation spacing.
2012-10-16 10:45:33 +01:00
Mike Jolley
01e8bd6f08
Merge pull request #1604 from superjinya/patch-1
...
Update templates/single-product/add-to-cart/variable.php
2012-10-15 12:44:10 -07:00
Coen Jacobs
943091d2ca
[3.1.4] Prevent direct access to files #1575
2012-10-15 12:57:58 +02:00
superjinya
9554d3f253
Update templates/single-product/add-to-cart/variable.php
...
Variation options fixed as issues provided by ksemel. Woo Jin Koh
2012-10-15 11:01:42 +09:00
Mike Jolley
39b7567b0c
product_variations[] Closes #1581 .
2012-10-12 14:21:21 +01:00
Mike Jolley
5868b63b93
Ordering options. Closes #1166 .
2012-10-09 15:57:06 +01:00
Mike Jolley
431316dfd3
small variable naming tweak
2012-08-25 16:00:40 +01:00
Mike Jolley
40cc7b997d
Scope. Closes #1364 .
2012-08-21 16:41:18 +01:00
Mike Jolley
ef7ec98f2e
templates
2012-08-14 23:43:54 +01:00