Mike Jolley
229d9135ef
Prevent errors when country field is disabled
...
Fixes #6336
2014-09-22 13:23:31 +01:00
shivapoudel
8884266bac
Absolute path fix for wc-template-functions.php
2014-09-21 00:55:45 +05:45
Mike Jolley
dd6fa30c3d
Fix redirect on paginated search results
...
Fixes #6281
2014-09-18 13:23:00 +01:00
Illimar Tambek
9215fa76f0
Revise id, input_class and label_class escaping
2014-09-10 12:39:31 +03:00
Illimar Tambek
cfe15e1e33
Add `id` attribute to woocommerce_form_field args
...
This change allows developers to supply their own id attribute
when using the `woocommerce_form_field` template function.
The default ID is the escaped key, keeping the default behaviour.
2014-09-10 11:34:37 +03:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Mike Jolley
6e540c3bda
Pass is_ajax through from the ajax handler
...
Fixes #5910
2014-07-31 10:00:16 +01:00
Mike Jolley
b72d33f563
Move orderby logic out of template file
...
cc @jameskoster @claudiosmweb
2014-07-30 17:23:28 +01:00
Mike Jolley
cab8f8c9dd
Only show default ordering option when relevant
...
Closes #5893
2014-07-30 17:23:28 +01:00
claudiosmweb
cb1ca6e341
replaced wp_get_post_terms() for get_the_terms() in wc_product_post_class(), closes #5905
2014-07-28 14:05:36 -03:00
Mike Jolley
ee48dcd5fd
Invalidate query transients to avoid cache flush
...
Part of #5777 . These transients are required and cannot be predicted.
If not using an external cache system, the DB is cleared still to keep
size down after invalidation.
For these 2 transients, invalidation occurs when visibility altering
product attributes are edited.
2014-07-03 12:59:57 +01:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
7aa053bdbd
Merge pull request #5605 from ragulka/radio-field
...
Add radio type support to woocommerce_form_field
2014-06-06 16:08:25 +01:00
Illimar Tambek
516a8bcc8a
Add radio type support to woocommerce_form_field
2014-06-03 13:04:06 +03:00
Mike Jolley
309f700283
has_status
2014-06-03 10:45:33 +01:00
Mike Jolley
fca32a98de
Implement is_status functions and update_status
2014-05-30 17:16:22 +01:00
Mike Jolley
a723b4ed3c
Subcategory query can now use parent = 0 without breaking
...
Closes #4644
2014-05-28 17:25:33 +01:00
Mike Jolley
b4b015d916
Merge pull request #4810 from vayurobins/master
...
Added description parameter to the woocommerce_form_field function
2014-05-22 10:20:44 +01:00
Mike Jolley
5e769e65e7
Merge pull request #4996 from robdvr/master
...
Ability to add custom quantity using shortcode
2014-05-22 10:16:20 +01:00
Mike Jolley
b7643e469b
Merge pull request #4763 from claudiosmweb/remove_the_content_filter
...
Removed all the_content filter in favor to wpautop() and do_shortcode()
2014-05-15 10:52:26 +01:00
Mike Jolley
adc604e0e2
Move loop_end hook as it is generic and used in all WP loops
2014-03-13 13:07:47 +00:00
Mike Jolley
26b5ffa3d0
Only append generator tag on HTML pages Closes #5113
2014-03-12 14:38:03 +01:00
Coen Jacobs
3617316357
Updated expiry times for transients
2014-03-12 12:58:41 +01:00
Coen Jacobs
03163c54b0
set_transient calls should have expiration to prevent autoloading
2014-03-07 09:29:01 +01:00
Mike Jolley
d9c10aae62
Later hook for template redirect and the_post Closes #4984
2014-03-03 13:37:45 +00:00
Rob Davarnia
e7ca60b2a2
Ability to add custom quantity using shortcode
2014-02-28 13:43:31 -08:00
Mike Jolley
a0635c270b
Changed braces and moved filter #4933
2014-02-26 12:02:14 +00:00
Mike Jolley
173e3accd8
Merge pull request #4933 from growdev/master
...
Allow empty categories to show
2014-02-26 12:00:26 +00:00
Mike Jolley
5620020f6c
Fix products_will_display logic
2014-02-26 11:43:38 +00:00
Daniel Espinoza
bf8a825f2d
Allow showing of empty categories using 'hide_empty' param of get_categories()
2014-02-24 11:57:06 -06:00
Mike Jolley
7b639d45c7
remove un-wanted hentry from products Closes #4880
2014-02-23 11:13:42 +00:00
Coen Jacobs
e2ebb387f7
Better workaround for esc_url stripping spaces #4842
2014-02-17 11:48:43 +01:00
Coen Jacobs
a19266b955
esc_attr instead of esc_url to preserve spaces in img src #4842
2014-02-17 11:29:36 +01:00
vayu
db2d67590e
Added description parameter to the woocommerce_form_field function
...
With this it is possible to add a short description below every
checkout billing and shipping input field.
2014-02-15 00:19:49 +01:00
claudiosmweb
02053f2d5c
removed all the_content filter in favor to wpautop() and do_shortcode() functions
2014-02-13 02:49:30 -02:00
Mike Jolley
65ca1753ae
woocommerce_products_will_display improvements #4644
...
- Reduced number of conditionals required.
- Broken the massive category query into a loop which can break before
checking all cats
- Used a transient to further optimise the category check
2014-02-06 09:21:47 +00:00
alexcsandru
6bf855709a
Update wc-template-functions.php
...
a little bug with esc_url instead esc_attr and result was (height="http://450 ")
2014-01-19 10:14:56 +02:00
Mike Jolley
ac24fe52fa
Check we have a product #4487
2014-01-13 11:39:54 +00:00
Patrick Garman
f3be3b16b6
Add is_store_notice_showing Conditional
...
Added public is_store_notice_showing conditional to `includes/wc-conditional-functions.php`
Replaced two instances of `get_option( 'woocommerce_demo_store' )` with the new conditional
2014-01-10 11:17:01 -06:00
Mike Jolley
211658a8f4
Fix woocommerce_reset_loop Closes #4443
2014-01-08 13:23:40 +00:00
Coen Jacobs
3e6acf7aab
Code changes for #4252
2013-12-02 12:34:27 +01:00
Gregory K
7b38c7300b
Inconsistent return types: mostly TODOs, some fixes
2013-11-29 13:50:31 -05:00
Gregory K
43ca01badc
PhpDocs and TODO comments
2013-11-28 12:59:09 -05: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
Gregory K
fc0df9fa59
typo
2013-11-27 13:23:46 -05:00
Gregory K
dd5a2fb334
PhpDocs
2013-11-27 13:20:31 -05:00
Mike Jolley
417651d579
Check for valid post type/products when setting up data
2013-11-27 16:03:54 +00:00
Scott Basgaard
2885da4581
"Order again" doesn't work. Proposed pass at fix.
2013-11-26 17:48:39 +01:00
Coen Jacobs
173f341631
Moved cart related output functions to right file
2013-11-25 16:17:18 +01:00