Commit Graph

81 Commits

Author SHA1 Message Date
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
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
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
Kathy Darling 67c06f313e add filter for reset variations link html 2016-01-07 09:43:34 -05: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 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 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
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
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
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 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