Commit Graph

14073 Commits

Author SHA1 Message Date
Claudio Sanches 3b5f2710e7 Merge pull request #9671 from mitogh/master
Remove PHP and HTML mixing from pure HTML for easier reading
2015-11-21 22:50:28 -02:00
Claudio Sanches 753014da5a Merge pull request #9631 from woothemes/transient-tweaks
Transient tweaks
2015-11-21 22:48:14 -02:00
mitogh f902b1fc8e Break large lines into more manable and indent lines 2015-11-20 20:46:55 -06:00
mitogh d4c3710994 Separate HTML from PHP for easier update of the button template 2015-11-20 20:45:19 -06:00
Yoni Mazuz 9e5098627c Fix woocommerce_email_from_* filtering
- apply filters before sanitizing
- send entire $this as argument so hooked functions can access any properties of the WC_Email (subclass) instance
2015-11-20 13:00:37 -05:00
Florian Ludwig 1d87c0c827 Bugfix: Used wrong date format for database 2015-11-20 18:09:47 +01:00
Florian Ludwig 787ebb0ef5 Bugfix: use "post_modified" instead of "post_date"; Moved modified_date update to woocommerce_update_product_variation code path
We should only set „post_modified“ if we are updating the variation
2015-11-20 18:00:10 +01:00
Claudio Sanches d941d5e325 Improved add_query_arg() use in WC_Admin_Addons::output_storefront_button() 2015-11-20 13:27:52 -02:00
Florian Ludwig 477da091db Bump modified date of variation on update 2015-11-20 16:26:33 +01:00
Claudio Sanches 2ccd001540 CHMOD 2015-11-20 13:24:21 -02:00
Claudio Sanches 784975bc31 Merge pull request #9649 from woothemes/contextual-storefront-button
Makes the "Try Storefront" button more contextual
2015-11-20 13:23:10 -02:00
Mike Jolley c8ef6902f5 Allow checkout to be updated without posting shipping methods
Fixes #9552 @claudiosmweb
2015-11-20 14:51:38 +00:00
Mike Jolley a4be3b880e Update api docs theme 2015-11-20 10:05:36 +00:00
Matty 2b601167f5 Removes unnecessary passing of when calling the output_storefront_button() method. 2015-11-20 09:33:51 +02:00
Claudio Sanches f3f3ef46c0 Merge pull request #9652 from ragulka/recorded-sales-hook
Introduce woocommerce_recorded_sales action hook
2015-11-19 22:31:16 -02:00
Yoni Mazuz afb19228a9 Add filters for From name/address to WC_Email (#9653)
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- these allow return address info to be set conditionally, unlike
wp_mail_from and wp_mail_from_name, which don’t pass any context to
hooked functions
2015-11-19 14:37:50 -05:00
Illimar Tambek d91dfb6fe6 Introduce woocommerce_recorded_sales action hook 2015-11-19 18:07:04 +02:00
Matty 5a0a8ef2f2 Adds Google campaign tags for tracking the various states of the 'Try Storefront' button. 2015-11-19 16:44:04 +02:00
Matty 94da31ef01 Adjusts the default 'Try Storefront' button to direct to the Storefront listing on WooThemes.com, even if Storefront and a child theme are in use. 2015-11-19 14:35:20 +02:00
Matty 4fc1023d0a Adjusts the 'try Storefront' button on the 'Addons' screen to be more contextual, depending on the current theme/child theme combination activated. 2015-11-19 14:27:34 +02:00
Claudio Sanches 50f96217c3 Merge pull request #9645 from woothemes/issue-9641/zips
Fix acronym zip to be all capitals fixes #9641
2015-11-19 02:17:03 -02:00
roykho 9078e30ea4 Fix acronym zip to be all capitals fixes #9641 2015-11-18 15:32:23 -08:00
roykho c7aed861cd Fix invalid orderby key name for orderby pricing closes #9584 2015-11-17 07:59:53 -08:00
Mike Jolley 4595befb76 Pass product type with variation bulk edit
Closes #9570
2015-11-17 15:25:48 +00:00
Claudio Sanches caa69304c9 Merge pull request #9626 from mitogh/master
Remove unnecessary lines of code and update code style for conditionals.
2015-11-17 12:33:22 -02:00
Claudio Sanches 100332233c Merge pull request #9630 from m3esma/master
Better Documentation: Put throws tag
2015-11-17 12:18:16 -02:00
Mehdi Esmaeili 101c7f47e1 Better Documentation: Put throws tag 2015-11-17 16:21:42 +03:30
Dominic 5ef59c511b Optimize filter loop
The current method loops through every defined hook in the WordPress
environment (over 400 on one of my tests). This method only checks the 3
filters in question.
2015-11-17 00:27:44 -08:00
mitogh fb7de12235 Remove unnecessary use of ternary operator.
Since the operations are going to return the same values of true or
false after the evaluation of each statment it's easier just returing
the result of evaluation of those statements.
2015-11-17 00:08:06 -06:00
mitogh 85ea9c27ae Update conditionals to follow the Yoda conditional style 2015-11-17 00:04:59 -06:00
mitogh e8de40f6b0 Remove empty blank spaces 2015-11-17 00:04:48 -06:00
Nicola Mustone f0732ce4d5 Update CONTRIBUTING.md 2015-11-16 17:16:35 +01:00
Mike Jolley aeb48e35a7 [2.4] Removes Switzerland from VAT definition
Confirmed outside of EU and not applicable to things such as EU VAT
@hussong
2015-11-16 16:00:51 +00:00
Mike Jolley e94c2b86ca Remove shipping/tax estimation notice and show in context when needed.
Avoids needing complex logic for something which could easily be typed
onto the page by store owner if needed.

Also adjusts line height and padding in cart collaterals

Closes #9578
2015-11-16 15:59:47 +00:00
Mike Jolley fe8f459020 Merge pull request #9620 from woothemes/SiR-DanieL-patch-2
Update CONTRIBUTING.md
2015-11-16 14:33:32 +00:00
Mike Jolley 1a59d14868 Point to correct element and make trigger manual
Closes #9609
2015-11-16 14:21:53 +00:00
Nicola Mustone 98597ce23e Update CONTRIBUTING.md 2015-11-16 15:17:31 +01:00
Claudio Sanches 36b3f9ba3a Merge pull request #9617 from woothemes/SiR-DanieL-patch-1
Format text for better understanding
2015-11-16 10:04:52 -02:00
Claudio Sanches a62ea22d9c [2.4] Fix auth endpoint urls, closes #9614 2015-11-16 10:01:20 -02:00
Nicola Mustone ef3410ea2e format text for better understanding 2015-11-16 12:39:44 +01:00
Claudio Sanches 8f26233905 Merge pull request #9604 from mitogh/master
Update comparission to be strict comparison instead
2015-11-15 16:38:24 -02:00
mitogh f8f70f294a Update strict comparission and update to Yoda condition
In order to follow one of the best practices from the Wordpress
handbook:

- https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#yoda-conditions
2015-11-14 20:35:29 -06:00
mitogh 4d86d8a6ad Add strict comparission on another templates 2015-11-14 20:35:00 -06:00
mitogh d3804dc16c Forece strict comparisons on single products template 2015-11-14 20:31:23 -06:00
Claudio Sanches 8253d303d0 Merge pull request #9602 from m3esma/master
Remove duplicate array key in `class-wc-admin-help.php`
2015-11-14 23:51:09 -02:00
Mehdi Esmaeili 588ff1029a Remove duplicate array key 2015-11-15 02:42:47 +03:30
Claudio Sanches d931405156 Fixed the type returned when get_stock_quantity() is empty
Since expect return an integer value, we can't return an empty string.
This can generate some kinds of errors like:

 '' >= 1 returns false
 '' >= -1 returns true

This can be a problem comparing stock quantity like we do in
WC_Product::has_enough_stock()

But using null we have:

 null >= 1 returns false
 null >= -1 returns false

cc @mikejolley

ref #9598
2015-11-14 15:53:36 -02:00
Mike Jolley b59ec6de76 Move var definition to abstract 2015-11-14 16:39:53 +00:00
Mike Jolley 3a096b3b64 Remove transient from get_total_stock and combine into abstract
Grouped and variable methods were identical. Caching benefit comes from
get_children
2015-11-14 16:34:47 +00:00
Mike Jolley 6892d73ea9 Store product ids for terms in term meta rather than transient
Data is kept in sync by looking at when terms are set for an object and
then clearing the meta for old and new terms.
2015-11-14 16:25:09 +00:00