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
Coen Jacobs
b3f05bdd66
Abstracted inline JS helper to class #3282
2013-06-05 13:51:06 +02:00
Coen Jacobs
64c75547f3
Abstracted transient helper to class #3282
2013-06-05 13:39:27 +02:00
Coen Jacobs
973e6d94b8
Set up basic helper abstract and get function #3282
2013-06-05 13:30:06 +02:00
Leon Rowland
f238fe7066
Fix for WooCommerce2 + where get_product cant return an instance of WC_Product and the property to hold the ID is in lowercase. This causes the property to not correct set.
...
When the property isn't correct set it breaks the magic method __get ( which in turn stops the correct return values of calls to SKU or any other meta. This includes updating stock ).
2013-06-03 14:18:48 +02:00
Mike Jolley
cde4947acf
Remember which attributes get registered and added taxonomy_is_product_attribute() function
...
Closes #3149 .
2013-06-03 11:04:21 +01:00
Mike Jolley
e4f4b09ba6
Pay page and thanks page endpoints. Requires permalink save. Closes #3170 .
2013-05-31 16:13:18 +01:00
Mike Jolley
a18ab45178
Cannot find cause of #3135 - added try catch to prevent fatal errors and inform admin of issue if debug is on
...
@coenjacobs I don't know if you want to keep this as a preventitive
measure? Should stop bad code breaking things anyway.
2013-05-28 17:17:52 +01:00
Mike Jolley
8307cb37f6
Refactor: Widget classes, made abstract, merged similar product listing widgets into 1
2013-05-24 16:52:03 +01:00
Coen Jacobs
8c7277bf9c
Fixed is_on_sale function for products without prices. Closes #3189
2013-05-22 13:18:28 +02:00
Mike Jolley
d664b8df58
Merge pull request #3121 from sybarite/master
...
Pull request to fix issue #3120
2013-05-09 09:11:00 -07:00
Coen Jacobs
36767d8f22
Merge pull request #3131 from kloon/master
...
Fix 0 sale price not returning true in is_on_sale
2013-05-08 04:50:07 -07:00
Mike Jolley
59db08d70b
Better backwards compatibility with _woocommerce_exclude_image
...
@coenjacobs
2013-05-08 12:29:21 +01:00
Gerhard
97ad6e0cda
Fix for 0 sale price not returning true in is_on_sale
2013-05-08 12:59:48 +02:00
Vivek Gounder
00ece2649e
Updated the return doc block with a brief explanation of the return type.
2013-05-07 16:36:11 +05:30
Vivek Gounder
b4b94e0535
Updated the correct doc block for return type
2013-05-07 15:17:34 +05:30
Gerhard
38d892b14e
esc_js translatable strings to avoid js breaking on quote chars
2013-05-06 15:17:04 +02:00
Coen Jacobs
656c897448
Merge pull request #2828 from thenbrent/formatted_product_name
...
Encapsulate formatted product name
2013-05-02 08:26:41 -07: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
c211603fc9
Fix saving options for attribute taxonomies containing special chars. Closes #2975 .
2013-04-16 14:41:23 +01:00
Mike Jolley
85f357b375
Fix email subjects Closes #2944
2013-04-12 09:33:00 +01:00
Mike Jolley
fa91ef80d4
Cache helper sets DONOTCACHEPAGE during init, rather than in each shortcode, and the W3 Issue with database cached appeared to be because the add_option had autoload 'no'. Removing autoload no was the only workaround I could find.
...
Now works with all caching enabled in W3 Total cache. Closes #2862 .
cc @coenjacobs
2013-04-05 22:24:56 +01:00
Mike Jolley
425002cb5c
Typo
2013-04-04 17:22:06 +01:00
Mike Jolley
46139143e2
Revert "Don't need to do this for all options. #2866."
...
This reverts commit 07917223fd
.
2013-04-04 17:21:03 +01:00
Mike Jolley
07917223fd
Don't need to do this for all options. #2866 .
2013-04-04 17:19:31 +01:00
Reinoud van Santen
b90bd6a1e0
Issue #2865 Localize email settings
...
Change the behaviour of the get_option function so that it attempts to
localize the value for setting that is returned by the parent's
get_option by using gettext.
2013-04-03 19:36:48 +02:00
Mike Jolley
6079c8f0e3
Settings API empty value only used if set. In turn fixes blank values in flat rate shipping.
2013-03-28 15:27:14 +00:00
Mike Jolley
042af6051f
Recent reviews show actual review stars, and allowed get_rating_html() to be passed a rating. Also removed unused $location var. Closes #2838 .
2013-03-28 13:58:01 +00:00
Brent Shepherd
854a9eccad
Update phpdoc
2013-03-27 18:06:59 +10:00
Brent Shepherd
022d0a6480
Add WC_Product::get_formatted_name()
...
For #2788
2013-03-27 18:00:28 +10:00
Max Rice
3ce99ba71e
Fix WC_Product::set_stock_status() to correctly set status
2013-03-23 14:36:23 -04:00
Mike Jolley
75a874ea7a
Decode Closes #2728 .
2013-03-18 13:37:07 +00:00
Mike Jolley
9f82986109
Possible star rating fix
2013-03-15 10:10:00 +00:00
Mike Jolley
dc6878cc2f
Flat rate UI tweaks
2013-03-13 15:43:49 +00:00
Coen Jacobs
c119f98734
Fixed adjust price function, thanks @lucasstark for reporting
2013-03-13 16:09:04 +01:00
Mike Jolley
5393fc7ddb
Santize custom attributes. #2587
2013-03-07 19:34:29 +00:00
Pascal Borreli
ae7899c67b
Fixed typos
2013-03-03 17:07:31 +00:00
Mike Jolley
b8a92318e0
filter is_enabled boolean Closes #2535 .
2013-02-27 10:10:40 +00:00
Neil Pie
b6cc12b5e6
Update classes/abstracts/abstract-wc-email.php
...
whitespace
2013-02-21 09:31:45 +00:00
Neil Pie
633f353245
conditional for WC_Email template base in abstract constructor
2013-02-21 09:23:32 +00:00
Neil Pie
9b984bac5f
sloppy whitespace
2013-02-21 00:59:21 +00:00
Neil Pie
11835b1004
Brings correct template path format into line with WC generate file paths
2013-02-21 00:57:46 +00:00
Neil Pie
11782d4f2b
Fixes issue with displaying email template path in admin
2013-02-21 00:39:38 +00:00
Mike Jolley
f5f01c497e
Changes for API Docs
2013-02-20 17:14:51 +00:00
Mike Jolley
0efa9d1792
#2430 get_called_class with product type fallback for 5.2
2013-02-12 12:15:49 +00:00
Mike Jolley
6a24222dfb
Settings should be an array
2013-02-11 15:07:51 +00:00
Mike Jolley
b67492fe68
Hide thumbnails when empty. Closes #2409 .
2013-02-11 14:17:57 +00:00
Mike Jolley
7a84ddd6c1
Tidied up settings, removed some un-needed settings, and made some settings automatic e.g. coupons disabled if no coupons exist
2013-02-10 23:02:52 +00:00
Mike Jolley
b214e052bc
Comment Closes #2319 .
2013-01-31 11:48:04 +00:00