roykho
b49b0b0133
Fix - address fields were not properly being passed to Simplify via token
2015-11-09 15:36:52 -08:00
David Anderson
b022769c2a
Prevent PHP notice
...
Prevents this PHP notice (on my localhost/testing setup):
PHP Notice: Undefined offset: -16776960 in wp
-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1608
Note that the geoip_country_code_by_addr() method, a few lines further down, already makes a similar check to this one which is being added for IPv6.
2015-11-09 12:17:55 +00:00
Claudio Sanches
89de396709
[2.4] Allow bulk edit sale_prices as 0
2015-11-06 14:42:51 -02:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Claudio Sanches
9adb04d612
[CLI] Created command to update tax rate
2015-11-06 02:50:07 -02:00
Claudio Sanches
394342c287
[API] Fixed action and removed transient functions from taxes PUT endpoint
2015-11-06 02:44:02 -02:00
Claudio Sanches
74d1492fe7
[CLI] Created command to get tax rate
2015-11-06 02:31:58 -02:00
Claudio Sanches
1b54117a8b
[API] Created commands to delete tax rates and tax classes and fixed the list_class command name
2015-11-06 02:19:47 -02:00
Claudio Sanches
18cf62ed66
[API] Created commands to create tax rates and tax classes
2015-11-06 01:58:08 -02:00
Claudio Sanches
647a2e7498
[API] Created commands to list tax rates and tax classes
2015-11-06 01:37:57 -02:00
Claudio Sanches
ef7046ea76
[CLI] Created initial tax command class
2015-11-06 00:23:46 -02:00
Claudio Sanches
af89582251
Merge pull request #9526 from shivapoudel/nepal-data
...
Update Nepali Districts with Zones
2015-11-05 19:42:40 -02:00
Mike Jolley
d0b7335e33
Merge pull request #9528 from shivapoudel/typo
...
Typo fix in tools for uninstall
2015-11-05 19:10:47 +00:00
Shiva Poudel
592c7aee02
Typo fix in tools for uninstall
2015-11-06 00:10:14 +05:45
Shiva Poudel
8300192bf7
Zone and postal code updated
2015-11-05 23:25:30 +05:45
Shiva Poudel
a1550fab77
Updated Nepal local settings
2015-11-05 23:06:15 +05:45
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Mike Jolley
4f0cc137cc
Enable SQL_BIG_SELECTS in reports
...
@claudiosmweb
2015-11-05 15:45:19 +00:00
Mike Jolley
4e5baf23aa
Cache get_item_meta_array for better performance
...
Closes #8810 @claudiosmweb
2015-11-05 15:21:28 +00:00
Mike Jolley
cb0e61bd4e
Set prefix_num first time
2015-11-05 15:21:06 +00:00
Mike Jolley
5e62143767
Update tools text Closes #9512
2015-11-05 14:44:05 +00:00
James Collins
45972cf92b
Fix duplicate key errors during db upgrade/install
...
Running phpunit tests currently outputs the following errors/warnings:
WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
.WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta
dbDelta requires very specific syntax (as per http://codex.wordpress.org/Creating_Tables_with_Plugins ).
2015-11-05 13:43:56 +08:00
Mike Jolley
61e746730f
wc_transaction_query function
...
Only uses transactions if enabled, or read uncommitted is supported
#9279
2015-11-04 14:11:40 +00:00
Mike Jolley
48f8665e2d
Hide SQL errors during ajax requests
...
Avoids invalid JSON
2015-11-04 13:35:32 +00:00
Mike Jolley
7eb45ba16f
Added wc_array_cartesian function to generate variations in a logical order.
...
Fixes #9515 @claudiosmweb
2015-11-04 12:14:51 +00:00
Claudio Sanches
e1c2054b5c
Improved how geolocation js check for pages where shouldn't load
...
Simplified all checks in just one
Less PHP and JS conditionals
cc @mikejolley
2015-11-04 01:51:54 -02:00
Claudio Sanches
fde904b27a
[2.4] Fixed redirection loop on customizer screen
...
It's caused an redirection loop on the customizer page when
activated "Geolocate (with page caching support)" option
cc @mikejolley
2015-11-04 01:20:16 -02:00
Claudio Sanches
58468d8821
[CLI] Fixed sanitization for product attributes
2015-11-03 17:11:54 -02:00
Shiva Poudel
d9e8057df3
Tweak the dockblocks and periodic-ending fix
2015-11-04 00:05:08 +05:45
Mike Jolley
1756aa8fca
Use help tip function in email table.
2015-11-03 16:12:13 +00:00
Mike Jolley
1b38f380af
Merge remote-tracking branch 'origin/master'
...
Conflicts:
includes/emails/class-wc-email.php
2015-11-03 16:09:01 +00:00
Claudio Sanches
439141bbe3
Fixed undefined error on WC_Geo_IP
2015-11-03 13:55:26 -02:00
Mike Jolley
1e945026b3
Tweak screen description
2015-11-03 15:41:31 +00:00
Mike Jolley
8457dbb57d
Display if emails are manually sent
2015-11-03 15:40:10 +00:00
Mike Jolley
d95f863d79
Show descriptions inline
2015-11-03 15:04:29 +00:00
Mike Jolley
52553968c5
Use desc_tip for emails
2015-11-03 14:59:48 +00:00
Mike Jolley
3c6a870335
Email class tidyup
2015-11-03 14:57:39 +00:00
Claudio Sanches
c6ab828aa1
[2.4] Improved error handling in WC_Geo_IP
...
Implemented our log system to register in background any errors
Closes #9501
2015-11-03 12:30:33 -02: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
Claudio Sanches
efa19f799d
Fixed some coding standards for docblocks
2015-11-03 10:28:01 -02:00
Mike Jolley
5f65494e27
Restructure emails admin to avoid listing emails along the top
...
Moves emails to a table on the settings screen.
Also tweaks some section text and moves descriptions to tooltips for a
less cluttered interface.
2015-11-02 16:27:00 +00:00
Mike Jolley
48b93b937f
Added admin order/payment failed notification
...
Closes #8617
2015-11-02 14:45:24 +00:00
Mike Jolley
9ac43ec4d4
Cleanup
2015-11-02 13:02:23 +00:00
Mike Jolley
798cf9a50b
Merge pull request #9485 from helgatheviking/email-ids-on-hooks
...
pass email object to email templates and template hooks
2015-11-02 13:02:04 +00:00
Mike Jolley
7fdb93329c
Merge branch 'revised-single-variation-cart-template'
...
Conflicts:
includes/admin/views/html-admin-page-status-report.php
2015-11-02 11:26:49 +00:00
Mike Jolley
c29517e87e
Merge branch 'pr/9471'
2015-11-02 11:24:01 +00:00
Mike Jolley
aec0e0e327
supports() method which mirrors gateways
...
Closes #9471
2015-11-02 11:23:50 +00:00
Mike Jolley
3ca5022649
Added template files for the customer details list in emails. emails/email-customer-details.php
...
Closes #9253
2015-11-02 10:41:05 +00:00
Mike Jolley
dfc1e0a625
Merge remote-tracking branch 'origin/master'
...
Conflicts:
includes/admin/views/html-admin-page-status-report.php
2015-11-02 10:02:35 +00:00
Mike Jolley
781adc121c
Check parent theme version
...
Closes #9477
2015-11-02 10:01:42 +00:00
Mike Jolley
f4c24ee824
Make from name methods match
2015-11-02 09:11:25 +00:00
Claudio Sanches
494dd9dae2
Merge pull request #9482 from ahmadawais/patch-5
...
Better Documentation: Period Endings
2015-11-01 19:24:14 -02:00
Kathy Darling
f893d73af6
pass email object to email templates and template hooks
2015-10-31 23:04:59 -05:00
Ahmad Awais
d690e43345
Better Documentation: Period Endings
...
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/ ), this commit helps make the documentation better by adding:
- Period endings
2015-11-01 00:12:12 +05:00
Ahmad Awais
9954602229
Better Documentation: Period Endings
...
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/ ), this commit helps make the documentation better by adding:
- Period endings
- Short descriptions
- Long descriptions
2015-11-01 00:10:45 +05:00
Claudio Sanches
ecb3ca2ea3
Merge pull request #9480 from ahmadawais/patch-3
...
Better Documentation: Period Endings
2015-10-31 17:05:38 -02:00
Claudio Sanches
317aeb39f1
Merge pull request #9478 from WPprodigy/system-status-fix2
...
Typo in system status report
2015-10-31 17:03:48 -02:00
Ahmad Awais
b07854ed77
Better Documentation: Period Endings
2015-11-01 00:01:46 +05:00
Caleb Burks
46b43f4c7c
Typo in system status report
2015-10-31 12:00:51 -04:00
Caleb Burks
10bb2c6ca1
Check for child themes in the .org repo
2015-10-31 11:23:07 -04:00
Kathy Darling
856d192bff
Use generic `ajax_add_to_cart` class for adding items in the loop to the cart via ajax.
2015-10-30 12:54:49 -05:00
Mike Jolley
37ed73f5b4
Merge pull request #9469 from javorszky/fix-dockblock-ipnhandler
...
Fix docblock for validate_receiver_email
2015-10-30 15:26:03 +00:00
Gabor Javorszky
2fce596b25
Fix docblock for validate_receiver_email
2015-10-30 15:11:41 +00:00
Claudio Sanches
a8ddd8acf9
Disabled Jetpack for products
...
Implemented the new Jetpack jetpack_comment_form_enabled_for_* filter
Closes #9152
2015-10-30 13:08:44 -02:00
Mike Jolley
f5933bf9d9
Fix active state check
...
Closes #9467
2015-10-30 13:31:52 +00:00
Mike Jolley
ad38f6e34f
Add pay link to order screen
...
Closes #9428
2015-10-30 13:29:16 +00:00
Mike Jolley
92310feb98
Merge pull request #9457 from woothemes/9251-wc-cart-functions
...
Moving some methods from WC_Cart to new functions
2015-10-30 13:12:55 +00:00
Claudio Sanches
0ff88deb98
Improved wc_coupons_enabled() name and description
2015-10-29 17:23:10 -02:00
Mike Jolley
afca32a31b
Check item_meta_array exists
...
Fixes #9449
2015-10-29 16:06:23 +00:00
Mike Jolley
5b6e16682c
Handle partial/full refund for orders containing free items
...
Also adds helper method to determine if such as free item exists or
not. Closes #9460
2015-10-29 15:34:33 +00:00
Mike Jolley
871c8591f0
Number format the discount
...
Closes #9462
2015-10-29 15:23:34 +00:00
Claudio Sanches
4522b68a47
[2.4] [API] Avoid undefined $taxonomy warnings while save variable attributes, closes #9456
2015-10-28 16:31:05 -02:00
Claudio Sanches
f3b6870837
Sort get_woocommerce_currencies() items
2015-10-28 16:24:06 -02:00
Claudio Sanches
f64ea948f1
Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only()
2015-10-28 16:03:24 -02:00
Claudio Sanches
29229ada45
Added deprecated description to WC_Cart methods
2015-10-28 16:01:03 -02:00
Claudio Sanches
3ab4e76cd0
Replaed old WC_Cart methods to the new functions
2015-10-28 15:56:31 -02:00
Claudio Sanches
1caaea7b33
Moved methods from WC_Cart to single functions
...
Changes:
- WC_Cart::coupons_enabled() to wc_is_coupons_enabled()
- WC_Cart::get_cart_url() to wc_get_cart_url()
- WC_Cart::get_checkout_url() to wc_get_checkout_url()
This methods can be used in any place, but WC_Cart() is present only on
the frontend.
2015-10-28 15:43:31 -02:00
Mike Jolley
327134e471
Merge pull request #9454 from apkoponen/master
...
WC_Product __get should check for False instead of empty
2015-10-28 09:48:12 -06: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
Mohsin Rasool
6683baffaa
Add Currency Symbol for Pakistan, Issue #9453
2015-10-28 16:13:42 +05:00
Ari-Pekka Koponen
11ab216993
WC_Product __get should check for False instead of empty
2015-10-28 12:45:54 +02:00
Claudio Sanches
d6dbb4aec2
Added "Hide empty categories" option on Product Category Widget
...
Closes #9441
2015-10-27 14:10:32 -02:00
Claudio Sanches
454ffa4677
[2.4] Fixed bulk edit sale_price when empty
...
This avoid sale_price saved as "0" and update correct update _price
field, related issue: #8076
Closes #9437
2015-10-27 11:27:31 -02:00
Shohei Tanaka
94dc4e310b
Customer Name in admin Order list
...
In Japan we want to use full name order in admin order list.
2015-10-27 06:37:04 +09:00
Claudio Sanches
cf6fb76741
Created function to disable author archives for customers
...
cc @mikejolley
2015-10-26 15:38:44 -02:00
Mike Jolley
59dc92e113
Merge pull request #9417 from woothemes/9381-help-tip-icon-font
...
Use new "question" mark icon font for Help Tips
2015-10-26 08:45:10 -06:00
Claudio Sanches
4f9e4a87e8
Updated Simplify Commerce lib to version 1.2.0, closes #9420
2015-10-26 11:27:14 -02:00
Claudio Sanches
154dac6d14
[2.4] [API] Fixed attributes save when using non-latin letters
...
Changed sanitize_title() to wc_sanitize_term_text_based() since
wp_set_object_terms() is creating wrong terms
Closes #9421
2015-10-23 14:38:37 -02:00
Claudio Sanches
e91e0a9f5e
Changed <i> to <span> in wc_help_tip()
...
<span> is more semantically correct
2015-10-23 13:17:35 -02:00
Claudio Sanches
b85ae9056c
Rename wc_add_help_tip() function to wc_help_tip()
2015-10-23 13:09:08 -02:00
Mike Jolley
705fbef31a
[2.4] Default selections fix for methods with multiple rates
2015-10-23 13:49:27 +01:00
Mike Jolley
79010b634f
Cast grouped product children to int
...
Avoids invalid or empty data and fixes #9416
2015-10-23 12:52:52 +01:00
Mike Jolley
8279db6679
If redirection to setup wizard does not occur, do not redirect at all
2015-10-23 12:24:04 +01:00
Mike Jolley
12fe4e7a52
Use delimiter in hashing function
2015-10-23 12:02:29 +01:00
Mike Jolley
b81fc128ac
Use hash_equals when comparing hashes
...
PHP 5.6+ but WP has a fallback inside.
2015-10-23 12:00:56 +01:00
Claudio Sanches
2e95a68357
Use new "question" mark icon font
...
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]
We'll keep the old image and styles in order to maintain backwards
compatibility
Closes #9381
2015-10-23 01:40:52 -02:00
Claudio Sanches
c1b46113bc
[2.4] Make "Not right now" button on Setup Wizard go to the WP dashboard
...
closes #9392
2015-10-22 18:17:14 -02:00
Claudio Sanches
bfe98a283c
[2.4] [API] Fixed editing product variations
...
Fixed general variations edition and make sync again variations when just
edit a variable product and don't send any 'variations' data
closes #9406
2015-10-22 17:19:16 -02:00
Mike Jolley
d363e810d8
Default to first found gateway
...
Closes #9378
2015-10-22 16:39:15 +01:00
Mike Jolley
b3a3a998bb
Add trailing slash in get_page_uris to reduce likelihood of conflicts
...
Fixes #9386
2015-10-22 16:33:05 +01:00
Mike Jolley
63947376db
Merge pull request #9336 from woothemes/issue/9268-get-coupon-id-from-code-caching
...
Cache coupon id from code lookup in a transient.
2015-10-22 09:19:37 -06:00
Mike Jolley
2a651ce64b
Merge pull request #9332 from Biont/master
...
WC_AJAX::calc_line_taxes - Provide a filter after tax calculations are done
2015-10-22 09:17:57 -06:00
Mike Jolley
08365f4145
Merge pull request #9333 from roykho/onboard
...
[onboard wizard] Remove required attribute from currency_code form el…
2015-10-22 09:03:48 -06:00
Mike Jolley
d46e57d9d6
Merge pull request #9318 from woothemes/issue/8458-refactor-verified-purchase-review-meta
...
Refactor "verified owner" logic to reduce queries and transients.
2015-10-22 09:00:38 -06:00
Mike Jolley
509d59df3d
Merge pull request #9391 from krautnerds/fix-login-with-mail-and-whitespace
...
Fixed login form handling for whitespaces before/after mail address
2015-10-22 07:23:43 -06:00
Mike Jolley
db1ecae936
Merge pull request #9405 from javorszky/issue_9404
...
Shipping calculation results no longer bleed over
2015-10-22 06:57:45 -06:00
Mike Jolley
97e28d7f49
Added wc_checkout_is_https() function helper and added to simplify class
...
Closes #9408
2015-10-22 12:30:30 +01:00
Mike Jolley
4dbfe1551c
Settings API - don't save title fields
...
Closes #9401
2015-10-22 11:27:39 +01:00
Gabor Javorszky
852ab311e0
Shipping calculation results no longer bleed over
...
Fixes #9404
Before we decide whether to just return from shipping calculation or
actually calculate it, let's null the values.
Reason for this and not `reset` is because reset also wiped the chosen
shipping method, which might have unintended consequences.
Please test this extensively. You know WooCommerce a lot better than I
do, and I'd like to avoid side effects.
2015-10-21 21:35:58 +01:00
Jeff Stieler
d73ef76568
Remove generation of review verification comment meta from 2.5 upgrade routine.
2015-10-20 22:05:17 -06:00
Jeff Stieler
58ec17f76d
Use new review verification status retrieval method on single review template and in APIs.
2015-10-20 22:05:17 -06:00
Jeff Stieler
1b370bb64a
Helper method to retrieve review verification status from comment meta, generating it on the fly for existing reviews.
2015-10-20 22:05:17 -06:00
Jeff Stieler
e9bfa2553c
Return verification status in WC_Comments::add_comment_purchase_verification().
2015-10-20 22:03:30 -06:00
Jeff Stieler
a34d58c18f
Backfill existing reviews with “verified” comment meta on update to 2.5.
2015-10-20 22:03:29 -06:00
Jeff Stieler
95fe3d47c2
Use review comment meta for verification status in API calls and WP-CLI.
2015-10-20 22:03:29 -06:00
Jeff Stieler
71cfde70c9
Mark a comment as “verified” if the customer leaving it has purchased the product they’re reviewing.
2015-10-20 22:03:29 -06:00
Jeff Stieler
80628e9f97
Store all purchased product ids for a given customer in a single transient.
2015-10-20 22:03:29 -06:00
Jeff Stieler
883170e261
Cache coupon id from code lookup in a transient.
2015-10-20 21:42:46 -06:00
Florian Ludwig
b549c73dea
Fixed bug where customer couldn't log in because of whitespace after mail address
2015-10-20 21:20:50 +02:00
Claudio Sanches
1ea5b8433f
Escape normalized for the woocommerce_variation_option_name filter
2015-10-18 10:42:44 -06:00
Ewout Fernhout
ab85ebfbc4
check if product exists
...
fixes #9363
2015-10-15 09:43:53 +02:00
Mike Jolley
da8cae596b
Simplify cart shipping template + text
...
Also prevents calculate shipping showing multiple times when multiple
packages are present.
@jameskoster @claudiosmweb
2015-10-13 15:41:21 -06:00
Claudio Sanches
5372579546
Fixed the hook name for #9290
...
cc @jeffstieler
2015-10-13 15:13:31 -06:00
Claudio Sanches
5c6206e511
[2.4] Fixed WC_API_Orders::set_line_item() for v2 #9338
2015-10-11 11:34:34 -03:00
Claudio Sanches
5465cdadb1
[2.4] Fixed WC_API_Orders::set_line_item(), closes #9338
2015-10-11 11:32:56 -03:00
Claudio Sanches
f6526d72a7
[API] Allow get variable products by sku, closes #9330
2015-10-09 16:43:12 -03:00
Claudio Sanches
eedff144e7
Created assets/js/frontend/password-strength-meter.js #9319
2015-10-09 13:31:47 -03:00
Claudio Sanches
0248ebdac7
Better password-strength-meter load #9319
2015-10-09 11:22:31 -03:00
Claudio Sanches
c4bd6b25c1
Merge pull request #9319 from nishitlangaliya/Issue-8938
...
Issue 8938
2015-10-09 11:12:56 -03:00
roykho
27db35dd12
[onboard wizard] Remove required attribute from currency_code form element so it is not required
2015-10-09 07:01:49 -07:00
Biont
bf4c5b1d91
Provide a filter after tax calculations are done #9313
2015-10-09 15:46:23 +02:00
Mike Jolley
6027b355ca
Further get_variation_prices tweaks
...
For 2.5, I’ve adjusted the caching to store 1 transient per variable
product. The cache key etc is still needed, but its stored within a
single transient instead of several.
This should prevent exponential growth of transient data for users.
Thoughts?
@daigo75 @franticpsyx @claudiosmweb
2015-10-09 12:49:39 +01:00
Mike Jolley
68cb6b11ee
Removed welcome page
...
2.5 release doesn’t have enough user-facing features to justify a
full-blown welcome page, and translation credits are no longer
obtainable after translate.wordpress switch. Removed the page to keep
things streamlined.
@claudiosmweb @mattyza
2015-10-09 11:56:13 +01:00
Mike Jolley
919f19b698
Remove transifex references
2015-10-09 11:31:42 +01:00
Mike Jolley
b913555d54
Change customer role caps
...
Fixes #9309 . @claudiosmweb
2015-10-09 11:00:25 +01:00
Mike Jolley
4399a3b48a
Allow wc_clean to support arrays
...
Closes #9329 @claudiosmweb
2015-10-09 10:41:51 +01:00
nishitlangaliya
f468f16e29
fixes: changes as per suggestion given by claudiosmweb ref #8938
2015-10-09 13:25:47 +05:30
Shiva Poudel
3763c416a9
Docblock for related products
2015-10-09 07:38:15 +05:45
Claudio Sanches
59303a1709
Merge pull request #9308 from woothemes/api-tax-endpoint
...
[API] Tax endpoint
2015-10-08 18:49:43 -03:00
Claudio Sanches
15e79820aa
[API] Better naming for returned data on the taxes endpoint
2015-10-08 18:49:05 -03:00
Claudio Sanches
e84fa58e35
[API] Created taxes bulk method
2015-10-08 18:44:26 -03:00
Claudio Sanches
860d292f4f
[API] Added method to edit tax rates
2015-10-08 18:34:47 -03:00
Claudio Sanches
1a3b5f3a6f
[API] Fixed the tax_rate key
2015-10-08 18:01:38 -03:00
Claudio Sanches
3200a1dc0c
Removed error_log()
2015-10-08 17:35:34 -03:00
Claudio Sanches
6d485a2fed
[API] Created woocommerce_api_create_tax_rate_data filter
2015-10-08 17:35:00 -03:00
Claudio Sanches
52bdc2c3a5
[API] Changed returned data name from tax to tax_rate
2015-10-08 17:34:39 -03:00
Claudio Sanches
47c3ba9d21
Created WC_Tax::_get_tax_rate() method
2015-10-08 17:24:37 -03:00
Claudio Sanches
1cded0e1a3
[API] Added method to create tax rates
2015-10-08 17:15:00 -03:00
nishitlangaliya
a45ef9f814
fixes: done changes using dom operation. ref #8938
2015-10-08 20:14:53 +05:30
Mike Jolley
dda0f0c2bd
Check for existence of global attribute when you get_attributes() for a product
...
Fixes #9141
2015-10-08 13:55:01 +01:00
Claudio Sanches
befda55262
Removed test
2015-10-08 09:40:20 -03:00
Mike Jolley
d5409f5b5e
Merge conflicts
2015-10-08 13:28:25 +01:00
Mike Jolley
0197a99065
Merge branch 'issue/8587'
...
Conflicts:
assets/css/admin.css
assets/css/woocommerce.css
includes/admin/class-wc-admin-assets.php
includes/admin/settings/views/html-settings-tax.php
2015-10-08 13:26:52 +01:00
Mike Jolley
8ee479afd7
Remove unused input
2015-10-08 13:25:01 +01:00
Mike Jolley
ac02ec290a
Improved styling and wording
2015-10-08 13:18:00 +01:00
Mike Jolley
81b4d5535d
Merge pull request #9315 from wtom/validate_postcode_de
...
german postcode validation
2015-10-08 11:56:34 +01:00
Shiva Poudel
af7b603690
Added new woocommerce_sessions table in system status
2015-10-08 16:26:16 +05:45
wtom
7368377e8d
german postcode validation
2015-10-08 12:20:57 +02:00
Claudio Sanches
1081c2cbe6
[API] Added method to create tax classes
2015-10-07 22:52:45 -03:00
Claudio Sanches
d4c1c4cca4
[API] Added endpoint to get total of tax classes
2015-10-07 22:35:34 -03:00
Claudio Sanches
ef00fe5b2f
[API] Added method for delete tax classes
2015-10-07 22:27:42 -03:00
Claudio Sanches
6cd57e2611
[API] Added method to delete tax rates
2015-10-07 22:10:33 -03:00
Claudio Sanches
34ef764477
[API] Included standard rate in get tax classes response
2015-10-07 19:12:31 -03:00
Claudio Sanches
4f45b04722
[API] Added endpoint to get taxes count
2015-10-07 19:07:45 -03:00
Claudio Sanches
40b210a144
[API] Get taxes method
2015-10-07 19:00:36 -03:00
Claudio Sanches
e3d57ab70c
[API] Created method to get tax rate by ID
2015-10-07 17:44:04 -03:00
Claudio Sanches
16b9f22706
[API] Created method to return tax classes
2015-10-07 17:02:06 -03:00
Claudio Sanches
07836ae277
[API] Include taxes endpoint
2015-10-07 16:37:53 -03:00
Claudio Sanches
1168adf8af
[API] Created initial WC_API_Taxes class
2015-10-07 11:42:25 -03:00
Claudio Sanches
1889c66061
Fixed coding standards
2015-10-07 10:58:13 -03:00
Mike Jolley
b27635409c
New Session Handler
...
This merges and adapts
https://github.com/kloon/woocommerce-large-sessions for core. Closes
#6846 .
Differences:
- Rather than delete each cache key individually, this invalidates all
at once (idea from https://core.trac.wordpress.org/ticket/4476 )
- Removes ‘replace’ which increments session_id keys unnecessarily.
- Fixes remove/restore cart sessions from making it dirty each page load
Kudos to @kloon for the bulk of the work and testing on Woo.com.
cc @claudiosmweb
2015-10-07 14:47:29 +01:00
Claudio Sanches
3f0cb4763a
[CLI] Stop round product prices
2015-10-06 11:16:03 -03:00
Claudio Sanches
76ef4cdb50
xD
2015-10-06 11:12:32 -03:00
Claudio Sanches
5b0a5d15a8
[API] Stop round product prices, closes #9271
2015-10-06 11:12:23 -03:00
Mike Jolley
9c6d524c95
Missing close bracket
2015-10-06 15:08:17 +01:00
Claudio Sanches
eef347a5ad
Added textdomain to PayPal refund error message
2015-10-06 11:03:49 -03:00
Mike Jolley
f1c6b3628a
Pass mimes when checking file type
...
#9207
2015-10-06 15:01:41 +01:00
Mike Jolley
abaa8f47d8
Moved refund hooks to avoid emails after API refund failure
2015-10-06 14:43:36 +01:00
Mike Jolley
54d5fc20ab
Improve refund error messages for PayPal
...
Fixes #8945
2015-10-06 14:43:36 +01:00
Claudio Sanches
9169458590
Updated recent reviews url escaping
2015-10-06 10:35:33 -03:00
Claudio Sanches
c53fe24c20
Removed our own language packs manager
2015-10-06 10:27:17 -03:00
Mike Jolley
d2d1330898
Show order by template on product search
...
Fixes #9285
2015-10-06 14:10:01 +01:00
Mike Jolley
92b5e79add
Merge pull request #9260 from Spreeuw/issue/8793
...
add $display_refunded parameter to get_formatted_order_total
2015-10-06 12:55:03 +01:00
Mike Jolley
d028e65748
Merge pull request #9163 from nvartolomei/downloadable-products-permissions-cleanup
...
Remove downloadable permissions on permanent order deletion
2015-10-06 12:41:56 +01:00
Mike Jolley
277dbeb029
Merge branch 'WPprodigy-patch-2'
2015-10-06 12:33:55 +01:00
Mike Jolley
5ec400e514
Validate terms and conditions and improve templates
2015-10-06 12:33:45 +01:00
Mike Jolley
5bc7de0d91
Merge pull request #9290 from woothemes/issue/9166-reset-order-customer-id-on-user-delete
...
When a WordPress user is deleted, turn any orders they have into Guest orders.
2015-10-06 10:49:15 +01:00
Mike Jolley
1404f6a37e
Merge remote-tracking branch 'origin/master'
2015-10-06 10:39:58 +01:00
Mike Jolley
6cef38902b
Merge branch 'pr/9282'
2015-10-06 10:39:41 +01:00
Mike Jolley
2093c06637
Merge pull request #9286 from woothemes/issue/9284-fix-potential-fatal-for-earlier-init-plugins
...
Avoid potential PHP Fatals by avoiding premature script enqueues.
2015-10-06 10:31:58 +01:00
Shiva Poudel
f6f7646cb6
Escape using esc_url instead of esc_attr for link
2015-10-06 10:40:11 +05:45
Claudio Sanches
f2b3364fc9
Fixed coding standards
2015-10-05 20:31:05 -03:00
Claudio Sanches
db6f51216e
Improved coupons status display in admin table
2015-10-05 20:30:03 -03:00
roykho
f97eb5606e
add onboarding wizard button to the contextual help so it can be accessed again closes #9134
2015-10-05 15:26:59 -07:00
Jeff Stieler
aa86069e56
When a WordPress user is deleted, turn any orders they have into Guest orders.
2015-10-05 14:38:20 -06:00
Jeff Stieler
a34c0578fb
Avoid potential PHP Fatals by avoiding premature script enqueues.
2015-10-05 12:12:19 -06:00
Mike Jolley
1f6260a880
Use tax settings in backend and default to base country
...
Closes #9186
2015-10-05 15:31:58 +01:00
Mike Jolley
1ec3cb0ef6
[2.4] Default value should not apply if value of option is 0
...
Fixes #9270 @claudiosmweb
2015-10-05 15:07:46 +01:00
Mike Jolley
84f83e0bf4
Fix return value @roykho
2015-10-05 14:39:08 +01:00
Mike Jolley
6975335941
Coupon description is escaped
...
@claudiosmweb Closes #9273
2015-10-05 14:30:02 +01:00
Mike Jolley
42d90594af
Fix password with & saving
...
@claudiosmweb
2015-10-05 14:09:11 +01:00
Mike Jolley
5ad38f8b65
Tweak and link product permalink settings to WordPress settings
...
Fixes #8442
2015-10-05 12:15:35 +01:00
Serg
98523c8dd4
Add woocommerce_is_price_filter_active filter to Query class
2015-10-05 11:53:24 +03:00
Mike Jolley
4fd987c165
Merge pull request #9266 from woothemes/issues/9125-report-does-not-match-with-chart
...
[2.4] Fixed wrong gross sales calculation on sales by date report.
2015-10-05 09:17:59 +01:00
Mike Jolley
a3f3148cd0
Merge pull request #9277 from jackgregory/product-categories-show-count
...
Fix Product Categories Widget dropdown show count arg
2015-10-05 09:11:18 +01:00
Shiva Poudel
178df9cec9
Remove duplicated 'thumb' for product custom columns
2015-10-05 13:41:29 +05:45
Jack Gregory
0e3c46dd3b
Fix Product Categories Widget dropdown show count arg
2015-10-03 13:46:14 +01:00
Akeda Bagus
dc0d5362cd
Fixed wrong gross sales calculation on sales by date report.
...
The order amounts should exclude refunds.
Fixes #9125 .
2015-10-02 11:08:41 +02:00
Mike Jolley
a7228e8305
search variation skus
...
Fixes #7926
2015-10-02 10:52:27 +02:00
Mike Jolley
3d10a1f671
Merge pull request #9263 from roykho/image-flicker2
...
fix variation image flicker issue when default variations are set clo…
2015-10-02 10:44:18 +02:00
Mike Jolley
96103724dc
Display 2 averages on report
...
Closes #9144
2015-10-02 10:42:48 +02:00
roykho
52ec35cab6
tweak to use product class function instead of body class function
2015-10-02 10:26:53 +02:00
Mike Jolley
246804f9dd
Merge pull request #9264 from shivapoudel/register-script
...
Remove the duplicated variable jquery_version ;)
2015-10-02 10:13:05 +02:00
Mike Jolley
069a3defad
[2.4] Handle method ids with colon
...
Fixes #9247
2015-10-02 10:10:18 +02:00
Mike Jolley
4747e097e2
[2.4] Fix notice in wc_nav_menu_items when endpoint is not set
...
Fixes #9216
2015-10-02 10:04:18 +02:00
Mike Jolley
786c87523f
Improve product search and use WPDB instead of several get_posts queries
...
Fixes #9203 @claudiosmweb
2015-10-02 10:00:29 +02:00
Shiva Poudel
836ac8ae79
Remove the duplicated variable jquery_version ;)
2015-10-02 11:30:05 +05:45
roykho
5ba6ff1dac
fix variation image flicker issue when default variations are set closes #7904
2015-10-02 03:45:11 +02:00
James Koster
2c00927c0b
Remove the product loop title template
...
Provides consistency with the product category template. This template
was really too simple to require it’s own file. It can be plugged or
unhooked to edit.
2015-10-01 17:58:33 +01:00
Mike Jolley
2816260388
Merge pull request #8807 from franticpsyx/get_formatted_variation_attributes
...
get_formatted_name() produces cryptic output for variations
2015-10-01 18:54:46 +02:00
Mike Jolley
e5575361f2
Merge pull request #9252 from shivapoudel/unused-global
...
Removed unused global variable
2015-10-01 18:50:03 +02:00
Mike Jolley
948ba904de
Merge pull request #9244 from franticpsyx/template_override_check_path
...
[2.4] System Report: Template version check path incorrect
2015-10-01 18:48:55 +02:00
Manos Psychogyiopoulos
4fc018a88b
stray error_log
2015-10-01 19:27:43 +03:00
Mike Jolley
d4fbe0e45c
Use SKU for stock order notes
...
Fixes #9133
2015-10-01 18:13:37 +02:00
Mike Jolley
19db1a6b4f
Add notes for manual email send
...
Closes #8902
2015-10-01 17:39:32 +02:00
Claudio Sanches
3a536ac8b7
Sanitize shipping method label/title, closes #9159
2015-10-01 17:17:45 +02:00
Mike Jolley
7b751dc622
Clean post cache after variation update
...
Closes #9173
2015-10-01 16:48:41 +02:00
Claudio Sanches
033f8636a7
Merge pull request #9258 from krautnerds/fix-status-update-order-comment
...
Add username on marking order status
2015-10-01 16:34:55 +02:00
Claudio Sanches
522a7f4c04
:P
2015-10-01 16:30:14 +02:00
Claudio Sanches
7c05671188
Added new actions to make easy add custom fields for variations, closes #8827
2015-10-01 16:30:02 +02:00
James Koster
018bcc9d2d
hook the product category links in, instead of hard coding into the template. #8575
2015-10-01 15:28:57 +01:00
James Koster
fe689d3d24
Let's not create template files for such simple code. #8575
...
Also removes pluggability of code that simply shouldn’t have any need
to be overwritten.
2015-10-01 15:20:05 +01:00
Florian Ludwig
2d39a91fdc
Add username on marking order status
...
At the moment the status updates via the order list action buttons are
not linked to the correct user. Lets fix that :)
2015-10-01 16:15:29 +02:00
Claudio Sanches
bb59b9aabb
Merge pull request #9085 from woothemes/feature/wp-cli_support
...
WP-CLI support for WooCommerce
2015-10-01 16:14:30 +02:00
James Koster
9de9f87c17
product category title is now hooked in rather than hard-coded into template
2015-10-01 15:12:56 +01:00
Claudio Sanches
b6bef31f27
:)
2015-10-01 16:10:25 +02:00
Claudio Sanches
f6a5e48a59
Register all styles on admin before call #8488
2015-10-01 16:10:18 +02:00
James Koster
02ddb7fc4d
product archive anchors are now hooked into templates rather than hard coded. #8575
2015-10-01 14:49:40 +01:00
Claudio Sanches
0966fedb12
Moved JS vendor libraries for our own directories #8488
2015-10-01 15:46:08 +02:00
Akeda Bagus
7cbc94a50f
Added tool subcommand.
...
Currenly only `clear_transients` is available. We'll add more in the
next release.
2015-10-01 15:46:04 +02:00
Akeda Bagus
0eea6a434c
Better wording for report command.
...
The command is not managing report, only show reports.
2015-10-01 15:34:37 +02:00
Claudio Sanches
1e5332dc07
Register all styles on frontend before call #8488
2015-10-01 15:31:05 +02:00
Akeda Bagus
7157b64588
Allow orders to be filtered by customer_id.
2015-10-01 15:20:18 +02:00
Akeda Bagus
df34fa9396
Implement cli command for customer' orders.
2015-10-01 15:20:05 +02:00
Akeda Bagus
0d91e1b6d3
Added more command help for `wp wc product`.
2015-10-01 15:18:54 +02:00
Claudio Sanches
6cb5c08037
[API] Added inventory_delta attribute to products endpoint, closes #7673
2015-10-01 15:05:02 +02:00
Claudio Sanches
e34e234481
[API] Added grouped_products attribute to products endpoint, closes #8862
2015-10-01 14:08:42 +02:00
Shiva Poudel
b614222b11
Removed unused global variable
2015-10-01 15:28:41 +05:45