Merge pull request #1 from woocommerce/master
WooCommerce 3.5.0 version
|
@ -21,6 +21,6 @@ parsers:
|
|||
macro: no
|
||||
|
||||
comment:
|
||||
layout: "reach, diff, flags, files, footer"
|
||||
layout: "files"
|
||||
behavior: default
|
||||
require_changes: no
|
||||
require_changes: yes
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
/.* export-ignore
|
||||
apigen* export-ignore
|
||||
CODE_OF_CONDUCT.md export-ignore
|
||||
CHANGELOG.txt export-ignore
|
||||
composer.* export-ignore
|
||||
Gruntfile.js export-ignore
|
||||
package.json export-ignore
|
||||
package-lock.json export-ignore
|
||||
phpcs.xml export-ignore
|
||||
phpunit.* export-ignore
|
||||
README.md export-ignore
|
||||
|
|
|
@ -1,56 +1,63 @@
|
|||
# How To Contribute
|
||||
# Contributing to WooCommerce ✨
|
||||
|
||||
Community made patches, localizations, bug reports and contributions are always welcome and crucial to ensure WooCommerce remains the leading eCommerce platform for WordPress. WooCommerce currently powers 30% of all online stores across the internet, and your help making it even more awesome will be greatly appreciated :)
|
||||
There are many ways to contribute to the WooCommerce project!
|
||||
|
||||
When contributing please ensure you follow the guidelines below to help us keep on top of things.
|
||||
- Translating strings into your language.
|
||||
- Answering questions on GitHub and within the various WooCommerce communities.
|
||||
- Submitting fixes, improvements, and enhancements.
|
||||
|
||||
__Please Note:__
|
||||
WooCommerce currently powers 30% of all online stores across the internet, and your help making it even more awesome will be greatly appreciated :)
|
||||
|
||||
GitHub is for _bug reports and contributions only_ - if you have a support question or a request for a customization this is not the right place to post it. Use [WooCommerce Support](https://support.woocommerce.com) for customer support, [WordPress.org](https://wordpress.org/support/plugin/woocommerce) for community support, and for customizations we recommend one of the following services:
|
||||
If you think something can be improved and you wish to contribute code,
|
||||
[fork](https://help.github.com/articles/fork-a-repo/) WooCommerce, commit your changes,
|
||||
and [send a pull request](https://help.github.com/articles/using-pull-requests/). We'll be happy to review your changes!
|
||||
|
||||
## Feature Requests
|
||||
|
||||
Feature requests can be [submitted to our issue tracker](https://github.com/woocommerce/woocommerce/issues/new?template=Feature_request.md). Be sure to include a description of the expected behavior and use case, and before submitting a request, please search for similar ones in the closed issues.
|
||||
|
||||
Feature request issues will remain closed until we see sufficient interest via comments and [👍 reactions](https://help.github.com/articles/about-discussions-in-issues-and-pull-requests/) from the community.
|
||||
|
||||
You can see a [list of current feature requests which require votes here](https://github.com/woocommerce/woocommerce/issues?q=label%3A%22votes+needed%22+label%3Aenhancement+sort%3Areactions-%2B1-desc+is%3Aclosed).
|
||||
|
||||
## Technical Support / Questions
|
||||
|
||||
We don't offer technical support on GitHub so we recommend using the following:
|
||||
|
||||
**Reading our documentation**
|
||||
Usage docs can be found here: https://docs.woocommerce.com/
|
||||
|
||||
If you have a problem, you may want to start with the self help guide here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/
|
||||
|
||||
**Technical support for premium extensions or if you're a WooCommerce.com customer**
|
||||
from a human being - submit a ticket via the helpdesk
|
||||
https://woocommerce.com/contact-us/
|
||||
|
||||
**General usage and development questions**
|
||||
- WooCommerce Slack Community: https://woocommerce.com/community-slack/
|
||||
- WordPress.org Forums: https://wordpress.org/support/plugin/woocommerce
|
||||
- The WooCommerce Help and Share Facebook group
|
||||
|
||||
**Customizations**
|
||||
- [WooExperts](https://woocommerce.com/experts/)
|
||||
- [Codeable](https://codeable.io/)
|
||||
|
||||
## Contributing to Core
|
||||
## Coding Guidelines
|
||||
|
||||
### Reporting Issues
|
||||
- **Ensure you stick to the [WordPress Coding Standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/)**
|
||||
- Install our pre-commit hook using composer. It'll help with the Coding Standards. To install run `composer install` from the command line within the woocommerce plugin directory.
|
||||
- Ensure you use LF line endings in your code editor. Use [EditorConfig](http://editorconfig.org/) if your editor supports it so that indentation, line endings and other settings are auto configured.
|
||||
- When committing, reference your issue number (#1234) and include a note about the fix.
|
||||
- Ensure that your code is compatible with PHP 5.2+.
|
||||
- Push the changes to your fork and submit a pull request on the master branch of the WooCommerce repository. Existing maintenance branches will be maintained by WooCommerce developers.
|
||||
|
||||
Reporting issues is a great way to became a contributor as it doesn't require technical skills. In fact you don't even need to know a programming language or to be able to check the code itself, you just need to make sure that everything works as expected and [submit an issue report](https://github.com/woocommerce/woocommerce/issues/new) if you spot a bug. Sound like something you're up for? Go for it!
|
||||
Please **don't** modify the changelog or update the .pot files. These will be maintained by the WooCommerce team.
|
||||
|
||||
#### How To Submit An Issue Report
|
||||
## Translating WooCommerce
|
||||
|
||||
If something isn't working, congratulations you've found a bug! Help us fix it by submitting an issue report:
|
||||
We have a [project on translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce). You can join the localization team of your language and help by translating WooCommerce. [Find more about using joining a language team and using GlotPress](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/).
|
||||
|
||||
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
||||
* Search the [Existing Issues](https://github.com/woocommerce/woocommerce/issues) to be sure that the one you've noticed isn't already there
|
||||
* Submit a report for your issue
|
||||
* Clearly describe the issue (including steps to reproduce it if it's a bug)
|
||||
* Make sure you fill in the earliest version that you know has the issue.
|
||||
|
||||
### Making Changes
|
||||
|
||||
Making changes to the core is a key way to help us improve WooCommerce. You will need some technical skills to make a change, like knowing a bit of PHP, CSS, SASS or JavaScript.
|
||||
|
||||
If you think something could be improved and you're able to do so, make your changes and submit a Pull Request. We'll be pleased to get it :)
|
||||
|
||||
#### How To Submit A PR
|
||||
|
||||
* Fork the repository on GitHub
|
||||
* Make the changes to your forked repository
|
||||
* **Ensure you stick to the [WordPress Coding Standards](https://make.wordpress.org/core/handbook/coding-standards/php/)**
|
||||
* Install our pre-commit hook using composer. It'll help with the Coding Standards. To install just run `composer install`
|
||||
* Ensure you use LF line endings - no crazy Windows line endings please :)
|
||||
* Optionally it's possible install [EditorConfig](http://editorconfig.org/) on your editor to auto configure with indentation, line endings and other settings
|
||||
* When committing, reference your issue number (#1234) and include a note about the fix
|
||||
* Push the changes to your fork and submit a pull request on the master branch of the WooCommerce repository. Existing maintenance branches will be maintained by WooCommerce developers
|
||||
* Please **don't** modify the changelog - this will be maintained by the WooCommerce developers.
|
||||
* Please **don't** add your localizations or update the .pot files - these will also be maintained by the WooCommerce developers. To contribute to the localization of WooCommerce, please join the [translate.wordpress.org project](https://translate.wordpress.org/projects/wp-plugins/woocommerce). This is much needed, if you speak a language that needs translating consider yourself officially invited to the party.
|
||||
|
||||
After you follow the step above, the next stage will be waiting on us to merge your Pull Request. We review them all, and make suggestions and changes as and if necessary.
|
||||
|
||||
## Contribute To Localizing WooCommerce
|
||||
|
||||
Localization is a very important part of WooCommerce. We believe in net neutrality and want our platform to be available to everyone, everywhere with equal ease. When you localize WooCommerce, you are helping hundreds of people in the world, and all the people who speak your language. That's pretty neat.
|
||||
If WooCommerce is already 100% translated for your language, join the team anyway! We regularly update our language files and there will definitely be need of your help soon.
|
||||
|
||||
### Glossary & Style Guide
|
||||
|
||||
|
@ -80,22 +87,8 @@ We don’t have a Style Guide template available, so feel free to create your ow
|
|||
|
||||
If you created a style guide for your language, please let us know so we can add it in the list above. You can also add it by yourself by submitting a PR for this file.
|
||||
|
||||
### Translating Core
|
||||
|
||||
We have a [project on translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce). You can join the localization team of your language and help by translating WooCommerce. [Find more about using joining a language team and using GlotPress](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/).
|
||||
|
||||
If WooCommerce is already 100% translated for your language, join the team anyway! We regularly update our language files and there will definitely be need of your help soon.
|
||||
|
||||
### Translating Video Tutorials
|
||||
|
||||
Another valuable way to help is by translating our growing library of WooCommerce video tutorials. Check out the [Translating Our Videos](https://docs.woocommerce.com/document/translating-our-videos/) doc and join in!
|
||||
|
||||
By translating video tutorials you'll be helping non-English speaking users and people affected by disabilities to get to grips with using WooCommerce for the first time, and to go on and create their businesses and make a living! That's something to be proud of and if you choose to dive into this area, we salute you.
|
||||
|
||||
# Additional Resources
|
||||
|
||||
* [General GitHub documentation](https://help.github.com/)
|
||||
* [GitHub pull request documentation](https://help.github.com/articles/about-pull-requests/)
|
||||
* [Translator Handbook](https://make.wordpress.org/polyglots/handbook/)
|
||||
* [WooCommerce Docs](https://docs.woocommerce.com/)
|
||||
* [WooCommerce Support](https://support.woocommerce.com)
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
<!-- Hi there! This form is for reporting bugs and issues specific to the WooCommerce plugin. This is not a support portal. If you need technical support from a human being, please submit a ticket via the helpdesk instead: https://woocommerce.com/contact-us/ -->
|
||||
<!-- This form is for reporting bugs and issues specific to the WooCommerce plugin. This is not a support portal. If you need technical support from a human being, please submit a ticket via the helpdesk instead: https://woocommerce.com/contact-us/ -->
|
||||
|
||||
<!-- Usage questions can also be directed to the public support forum here: https://wordpress.org/support/plugin/woocommerce, unless this is a question about a premium extension in which case you should use the helpdesk. -->
|
||||
|
||||
<!-- If you have a feature request, submit it to: http://ideas.woocommerce.com/forums/133476-woocommerce -->
|
||||
|
||||
<!-- If you are a developer who needs a new filter/hook raise a PR instead :) -->
|
||||
|
||||
<!-- Please be as descriptive as possible; issues lacking the below details, or for any other reason than to report a bug, may be closed without action. -->
|
||||
|
||||
|
||||
|
||||
## Prerequisites
|
||||
|
||||
<!-- Mark completed items with an [x] -->
|
||||
<!-- MARK COMPLETED ITEMS WITH AN [x] -->
|
||||
|
||||
- [ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
|
||||
- [ ] The issue still exists against the latest `master` branch of WooCommerce on Github (this is **not** the same version as on WordPress.org!)
|
||||
- [ ] I have attempted to find the simplest possible steps to reproduce the issue
|
||||
- [ ] I have included a failing test as a pull request (Optional)
|
||||
|
||||
|
||||
|
||||
## Steps to reproduce the issue
|
||||
|
||||
<!-- We need to be able to reproduce the bug in order to fix it so please be descriptive! -->
|
||||
|
@ -27,26 +25,20 @@
|
|||
2.
|
||||
3.
|
||||
|
||||
|
||||
|
||||
## Expected/actual behavior
|
||||
|
||||
When I follow those steps, I see...
|
||||
|
||||
I was expecting to see...
|
||||
|
||||
|
||||
|
||||
## Isolating the problem
|
||||
|
||||
<!-- Mark completed items with an [x] -->
|
||||
<!-- MARK COMPLETED ITEMS WITH AN [x] -->
|
||||
|
||||
- [ ] This bug happens with only WooCommerce plugin active
|
||||
- [ ] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/)
|
||||
- [ ] I can reproduce this bug consistently using the steps above
|
||||
|
||||
|
||||
|
||||
## WordPress Environment
|
||||
|
||||
<details>
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
name: "\U0001F41E Bug report"
|
||||
about: Report a bug if something isn't working as expected in the core WooCommerce
|
||||
plugin.
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is. Please be as descriptive as possible; issues lacking detail, or for any other reason than to report a bug, may be closed without action.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Isolating the problem (mark completed items with an [x]):**
|
||||
- [ ] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
|
||||
- [ ] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/).
|
||||
- [ ] I can reproduce this bug consistently using the steps above.
|
||||
|
||||
**WordPress Environment**
|
||||
<details>
|
||||
```
|
||||
Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin.
|
||||
```
|
||||
</details>
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
name: "✨ New Enhancement"
|
||||
about: "If you have an idea to improve an existing feature in core or need something for development (such as a new hook) please let us know or submit a Pull Request!"
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
name: "\U0001F680 Feature request"
|
||||
about: "Suggest a new feature \U0001F389 We'll consider building it if it receives sufficient interest! \U0001F44D"
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
name: "❓ Support Question"
|
||||
about: "If you have a question \U0001F4AC please see our docs or use our forums, helpdesk,
|
||||
or Slack Community!"
|
||||
|
||||
---
|
||||
|
||||
We don't offer technical support on GitHub so we recommend using the following:
|
||||
|
||||
**Reading our documentation**
|
||||
Usage docs can be found here: https://docs.woocommerce.com/
|
||||
|
||||
If you have a problem, you may want to start with the self help guide here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/
|
||||
|
||||
**Technical support for premium extensions or if you're a WooCommerce.com customer**
|
||||
from a human being - submit a ticket via the helpdesk
|
||||
https://woocommerce.com/contact-us/
|
||||
|
||||
**General usage and development questions**
|
||||
- WooCommerce Slack Community: https://woocommerce.com/community-slack/
|
||||
- WordPress.org Forums: https://wordpress.org/support/plugin/woocommerce
|
||||
- The WooCommerce Help and Share Facebook group
|
|
@ -0,0 +1,33 @@
|
|||
### All Submissions:
|
||||
|
||||
* [ ] Have you followed the [WooCommerce Contributing guideline](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md)?
|
||||
* [ ] Does your code follow the [WordPress' coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/)?
|
||||
* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change?
|
||||
|
||||
<!-- Mark completed items with an [x] -->
|
||||
|
||||
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
|
||||
|
||||
### Changes proposed in this Pull Request:
|
||||
|
||||
<!-- Describe the changes made to this Pull Request, and the reason for such changes. -->
|
||||
|
||||
Closes # .
|
||||
|
||||
### How to test the changes in this Pull Request:
|
||||
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
### Other information:
|
||||
|
||||
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
|
||||
* [ ] Have you written new tests for your changes, as applicable?
|
||||
* [ ] Have you successfully ran tests with your changes locally?
|
||||
|
||||
<!-- Mark completed items with an [x] -->
|
||||
|
||||
### Changelog entry
|
||||
|
||||
> Enter a short summary of all changes on this Pull Request. This will appear in the changelog if accepted.
|
|
@ -38,9 +38,14 @@ tests/cli/vendor
|
|||
/tmp
|
||||
/tests/bin/tmp
|
||||
/tests/e2e-tests/config/local-*.json
|
||||
/tests/e2e-tests/config/local.json
|
||||
|
||||
# Logs
|
||||
/logs
|
||||
|
||||
# Composer
|
||||
/vendor/
|
||||
contributors.md
|
||||
|
||||
# Screenshots for e2e tests failures
|
||||
/screenshots/
|
||||
|
|
20
.travis.yml
|
@ -1,5 +1,11 @@
|
|||
language: php
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
apt:
|
||||
packages:
|
||||
- nginx
|
||||
|
||||
sudo: false
|
||||
|
||||
# Test main supported versions of PHP against latest WP.
|
||||
|
@ -7,6 +13,7 @@ php:
|
|||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.3
|
||||
|
||||
env:
|
||||
- WP_VERSION=latest WP_MULTISITE=0
|
||||
|
@ -21,13 +28,21 @@ matrix:
|
|||
- php: 5.2
|
||||
dist: precise
|
||||
- php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1
|
||||
- php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 RUN_E2E=1
|
||||
- php: 7.1
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
allow_failures:
|
||||
- env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
- php: 7.3
|
||||
|
||||
before_script:
|
||||
- |
|
||||
# Remove Xdebug for a huge performance increase:
|
||||
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
|
||||
phpenv config-rm xdebug.ini
|
||||
else
|
||||
echo "xdebug.ini does not exist"
|
||||
fi
|
||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
||||
- bash tests/bin/travis.sh before
|
||||
|
@ -35,6 +50,7 @@ before_script:
|
|||
script:
|
||||
- bash tests/bin/phpunit.sh
|
||||
- bash tests/bin/phpcs.sh
|
||||
- travis_retry bash tests/bin/run-e2e-CI.sh
|
||||
|
||||
after_script:
|
||||
- bash tests/bin/travis.sh after
|
||||
|
|
676
CHANGELOG.txt
|
@ -1,5 +1,681 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.5.0 - 2018-10-17 =
|
||||
* Feature - REST API v3. #20111
|
||||
* Feature - Option has been added on the inventory tab of the edit product page to set a low stock threshold for individual products. #20260
|
||||
* Feature - Add ability to export products by category to the CSV exporter. #20870
|
||||
* Feature - Ability to define custom product placeholder images that will resize to correct store aspect ratio. #20644
|
||||
* Enhancement - Excluded children categories from WP_Query in product shortcode if cat_operator=AND. #20207
|
||||
* Enhancement - Add anchor tag example to email template preview. #20246
|
||||
* Enhancement - Introduce is_paypal_supported_currency check in setup wizard. #20244
|
||||
* Enhancement - Payment method table reordering accessibility. #19844
|
||||
* Enhancement - Log errors from transaction emails with logger. #20203
|
||||
* Enhancement - Improved shipping calculator experience. Shows destination country and added context to calculate shipping link. #20345
|
||||
* Enhancement - On the fly image generation for frontend, if image sizes are missing. #20011
|
||||
* Enhancement - SelectWoo enabled product categories dropdown widget. #20617
|
||||
* Enhancement - Make it easier to read and act upon the outdated template notice. #20732
|
||||
* Enhancement - Styled date, time, etc. inputs in admin to match styling of other inputs. #21013
|
||||
* Enhancement - Show update notices on the System Status page for WordPress.org hosted Official WooCommerce extensions. #21073
|
||||
* Enhancement - Better wording for transactional emails. #21288
|
||||
* Fix - Check billing email is posted before using in WC_Cart::check_customer_coupons. #20180
|
||||
* Fix - Shipping postcode formatting when only posting a billing address. #20330
|
||||
* Fix - Correctly show/hide save card checkbox on tokenization form. #20506
|
||||
* Fix - orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs() were ignored. #20931
|
||||
* Fix - Unslash city name to prevent double escape in tax settings. #21205
|
||||
* Fix - Updated phone validation logic. #21188
|
||||
* Fix - Fix weight and dimensions cache of variable products if childs doesn't have any of those params. #21244
|
||||
* Fix - Correctly replace images in the woocommerce_uploads folder with the placeholder image. #20848
|
||||
* Fix - Show parent variable product in shipping class admin screen when variation has shipping class. #21278
|
||||
* Fix - Correctly excluded administrators from "Customer list" report. #21304
|
||||
* Fix - Update quick edit logic to show/hide Stock qty and Backorders fields. #21301
|
||||
* Fix - Fix Layered Nav Widget where special HTML entities did not display correctly in the "Any %s" string. #21312
|
||||
* Fix - Set the is_checkout javascript parameter on any page that uses the checkout filter or shortcode. #21328
|
||||
* Fix - Fix cron_interval property support in WP_Background_Process. #21353
|
||||
* Fix - CSS Changes to make text fields line up on the shipping settings page. #21247
|
||||
* Fix - Add extra null check to fix an issue with select payment fields using disabed select as placeholders. #21391
|
||||
* Fix - Don't modify attributes orderby when sorting by name. #21408
|
||||
* Fix - Allow saving a stock quantity of 0 using quick edit. #21447
|
||||
* Fix - Change the query used to save session data to the database to protect against deadlocks. #21455
|
||||
* Fix - Make sure default category tooltip is rendered when the image column is deactivated. #21410
|
||||
* Fix - Fix warning when using logger instance in woocommerce_logging_class filter. #21448
|
||||
* Fix - Use uppercase "ID" when sorting product queries by ID. #21461
|
||||
* Fix - Consistently escape the gateway ID in the checkout payment method template. #21439
|
||||
* Fix - Avoid treating HTTP 301 and 302 codes as failures for webhooks. #21491
|
||||
* Fix - Add address_1 to shipping packages info in WC_Cart:: get_shipping_packages to make it work correctly in address formatting functions. #21493
|
||||
* Fix - Don't fire two of the same action when saving shipping settings. #21494
|
||||
* Fix - Remove double condition for address line 2 in `WC_Countries::get_default_address_fields`. #20629
|
||||
* Fix - Correctly handle shorthand values for memory_limit in php.ini. #21557
|
||||
* Fix - Product shortcode numeric term slug matching. #21560
|
||||
* Fix - Remove the erasure tools links from the descriptions of the erasure settings for users without the manage_privacy_options capability. #21565
|
||||
* Fix - Don't double urldecode posted variation attributes. #21570
|
||||
* Fix - Don't double-sanitize cart images. #21574
|
||||
* Fix - Check if ID exists and is not empty before set Product's download ID in API. #21588
|
||||
* Fix - Ensure wp_list_pluck() gets a array and not possibly null in WC_Product_Data_Store_CPT::update_attributes. #21591
|
||||
* Fix - Trim CSV header rows to prevent leading/trailing whitespace issues. #21614
|
||||
* Fix - Show draft products in previews on unsupported themes. #21619
|
||||
* Fix/Tweak - Fire `woocommerce_grant_product_download_access` hook after the download has its ID set. #20905
|
||||
* Fix/Tweak/Performance - Change wp_woocommerce_sessions primary key to session_id. #21245
|
||||
* Tweak - Show empty terms in admin product category filter dropdown. #20324
|
||||
* Tweak - Don't force default token gateway active by default. #20125
|
||||
* Tweak - Move notice output to hooked in functions. #19794
|
||||
* Tweak - Apply order bulk actions in chronological order. #20338
|
||||
* Tweak - Updated Emogrifier to 2.0. #20547
|
||||
* Tweak - Avoid using wp.template (eval) in add-to-cart-variation.js. #19496
|
||||
* Tweak - Hide Preview button when creating new products, as most fields aren't set up for it. #20650
|
||||
* Tweak - For guests, store all address fields to the session whilst placing an order. #20665
|
||||
* Tweak - Removed 'ajax_add_to_cart' class from 'Read more' button. #20690
|
||||
* Tweak - Removed unnecessary checkout form change trigger on load of the checkout page. #20655
|
||||
* Tweak - Add image size filters to wc_get_product_attachment_props(). #20722
|
||||
* Tweak - Only display the current site's tables for a multisite install when viewing the system status. #20731
|
||||
* Tweak - include the file path and line number where a fatal error occurred in the fatal errors log. #20787
|
||||
* Tweak - Cast tax rate to float so that it can be treated as number further on in the code. #20910
|
||||
* Tweak - Send webhooks using Action Scheduler. #20030
|
||||
* Tweak - Update customer's ip address on successful payment. #21038
|
||||
* Tweak - Changed wc_clean to checking for valid utf8 for line items and password. #20993
|
||||
* Tweak - Add to cart notice actions (View cart/Continue shopping) now have tabindex 1 for improved accessibility. #21108
|
||||
* Tweak - Remove icanhazip from geolocation services. #21198
|
||||
* Tweak - Remove unnecessary aria-required attributes from product reviews template. #21211
|
||||
* Tweak - Added hidden label for screen readers on checkout address line 2 input. #21193
|
||||
* Tweak - Remove empty space in mini-cart template. #21261
|
||||
* Tweak - Tax display in cart now depends on whether customer is tax exempt. #21292
|
||||
* Tweak - Change sort dropdown option "Sort by newness" to "Sort by latest". #21311
|
||||
* Tweak - Sanitize endpoint slugs upon saving. #21355
|
||||
* Tweak - Ignore converting float meta value for registered post meta. #21333
|
||||
* Tweak - Remove 'order_again' query string to avoid multiple re-orders. #21444
|
||||
* Tweak - Remove Netherlands Antilles from the North America continent definitions. #21449
|
||||
* Tweak - Display label and meta on the same line in order emails to match frontend Order Details styling. #21456
|
||||
* Tweak - Use wp_get_upload_dir for geolite DB path. #21550
|
||||
* Performance/Tweak - Use post_author for the order customer instead of '_customer_user' meta data. #17895
|
||||
* Performance - Exclude frontend include from REST API calls. #20000
|
||||
* Performance - Improve performance of the query to delete version transients by removing unneeded "ORDER BY". #21274
|
||||
* Dev - REST API - Allows oAuth1.0a authentication under SSL.
|
||||
* Dev - REST API - Fix position param for images. #20497
|
||||
* Dev - REST API - Handle children products deletion regardless of type. #20670
|
||||
* Dev - Added woocommerce_increase_coupon_usage_count and woocommerce_decrease_coupon_usage_count action hooks to increase extensibility of Coupons. #19981
|
||||
* Dev - Add endpoints to account menu items filter. #19980
|
||||
* Dev - Added qty param to `wc_add_to_cart_message` filter. #19817
|
||||
* Dev - Added `woocommerce_search_products_ids` filter. #20160
|
||||
* Dev - Introduced `woocommerce_cart_calculate_shipping_address` field to allow manipulation of cart shipping calculator data. #20046
|
||||
* Dev - Introduced `woocommerce_shipping_calculator_enable_country` filter. #20046
|
||||
* Dev - Pass product id to backorder notification. #20416
|
||||
* Dev - Added woocommerce_cart_shipping_total filter to control shipping display. #20591
|
||||
* Dev - Refactor "Order again" handling to separate logic better. #20606
|
||||
* Dev - Added 'woocommerce_products_admin_list_table_filters' filter to make it easier to customize the products list table filters. #20634
|
||||
* Dev - Added `woocommerce_shipping_method_add_rate_args` and `woocommerce_shipping_method_add_rate` filters. #20633
|
||||
* Dev - Added `woocommerce_coupon_validate_user_usage_limit` filter. #20630
|
||||
* Dev - Add hooks needed for product custom tables feature plugin. #20520
|
||||
* Dev - Added new filter to 'Item in quotes' translation for messages. #20714
|
||||
* Dev - Add 'woocommerce_shutdown_error' hook triggered on request termination with an error. #20787
|
||||
* Dev - New filter 'woocommerce_admin_meta_boxes_variations_count' to customize the shown count of variations. #21067
|
||||
* Dev - Added ability to query products that have a field set in wc_get_products/WC_Product_Query using the wildcard symbol '*'. #21162
|
||||
* Dev - Added a JavaScript events before and after the order total recalculation on the Edit Order page. #21181
|
||||
* Dev - Check for `needs_payment` instead of `has_status( 'pending' )` in PayPal PDT handler for custom order status support. #21200
|
||||
* Dev - Added form action hooks for edit account and login templates. #21248
|
||||
* Dev - Add action for when system tools are run. #21270
|
||||
* Dev - Add - woocommerce_restock_refunded_items filter to control default state of the restock option when refunding items on an order. #21314
|
||||
* Dev - Add an extensible/swappable job queue via WC_Action_Queue and WC_Queue_Interface. #20030
|
||||
* Dev - Use WC_Action_Queue for schedule and delivery of webhooks. #20030
|
||||
* Dev - Include Action Scheduler v2.1.0 and use it for the default job queue. #21424 / #20030
|
||||
* Dev - Save reviews under the 'review' comment type. #21305
|
||||
* Localization - Updated IT provinces. #20286
|
||||
* Localization - Eircode validation. #20330
|
||||
* Localization - Disable postcode requirement for Bahrain. #21103
|
||||
* Localization - Make postcode field optional and hidden for Nigeria and label State. #21056
|
||||
* Localization - Make Romania state selection mandatory. #21180
|
||||
* Localization - Make city field optional and hidden for Singapore addresses. #21016
|
||||
|
||||
= 3.4.6 - 2018-10-11 =
|
||||
* Fix - Security issues
|
||||
* Fix - Allow percent coupons with sale restrictions to apply to carts with sale items in them. #21241
|
||||
* Fix - Prevent multiple slashing of variation's SKU. #21019
|
||||
|
||||
= 3.4.5 - 2018-08-29 =
|
||||
* Fix - Tweak sanitization when resetting password cookie. #20901
|
||||
* Fix - Use `+` instead of `array_merge` when appending parent to tax class to fix issues with numeric tax class names. #20916
|
||||
* Fix - Correct translation for North Khorasan. #20972
|
||||
* Fix - Unify scroll-to notices for all browsers. #20992
|
||||
* Fix - Prevent multiple slashing of variation's SKU. #21019
|
||||
* Fix - Variation image in fullscreen now shows correct caption for the respective image. #21022
|
||||
* Fix - Vertically center admin order action buttons. #21053
|
||||
* Fix - Correct context for shipping packages translation. #21065
|
||||
* Fix - Add permission checks for installing Jetpack on the setup wizard. #21072
|
||||
* Fix - Use refund currency instead of store default currency when displaying refund amount in the edit order screen. #21106
|
||||
* Fix - Fix a typo in REST API customer schema. #21171
|
||||
* Fix - Use entire sentence for checkout address_2 placeholder string. #21186
|
||||
* Fix - Only suppress comments number on unsupported theme shop page. #21191
|
||||
* Fix - Don't allow users without manage_product_terms permissions to create categories using the product importer. #21192
|
||||
* Fix - Correct sale coupon restriction logic. #21219
|
||||
|
||||
= 3.4.4 - 2018-07-25 =
|
||||
* Fix - Only wordwrap plain email content. #20723
|
||||
* Fix - Better escaping on product quick edit. #20740
|
||||
* Fix - Log file deletion. #20730
|
||||
* Fix - Search feature in Webhooks and REST API keys settings. #20706
|
||||
* Fix - Notices in REST API keys settings screen. #20706
|
||||
* Fix - add a check to prevent WC_Geolite_Integration::get_country_iso() from generating a PHP undefined index notice when unable to determine the country code for a given IP address. #20608
|
||||
* Fix - Variable product stock display if parent is stock managed and not the variation. #20661
|
||||
* Fix - Correctly hide cost for zero cost shipping methods after placing orders. #20663
|
||||
* Fix - Disabled autocomplete to prevent datepicker overlapping. #20687
|
||||
* Fix - Prevent a PHP notice in the setup wizard when store state is not selectable. #20695
|
||||
* Fix - Fix logic error in WC_Product_CSV_Exporter::get_column_value_stock. #20753
|
||||
* Fix - Fixed missing notice about no product variation matching. #20762
|
||||
* Fix - Correct PHPDocs in exporter class. #20861
|
||||
* Fix - Prevent Mailchimp redirection during the Setup Wizard. #20879
|
||||
* Fix - Don't hide coupon form after coupon has been applied. #20889
|
||||
* Tweak - Remove (optional) text from Address line 2 field. #20622 #20639
|
||||
* Tweak - Removed 100% width for images on single product page using 2017 theme. #20818
|
||||
* Tweak - Add margin to best selling product title in the dashboard widget to avoid overlapping the sparkline. #20849
|
||||
* Tweak - Re-add woocommerce_order_details_after_customer_details_filter removed during WC 3.2. #20886
|
||||
* Dev - Added woocommerce_calculate_item_totals_taxes filter. #20586
|
||||
* Dev - Links to next and previous page sent out in HTTP header via REST API fixed for some endpoints. #20686
|
||||
* Dev - Better wc_format_phone_number cleaning. #20637
|
||||
|
||||
= 3.4.3 - 2018-06-20 =
|
||||
* Fix - Fix label for the price filter widget on RTL sites. #20417
|
||||
* Fix - Checkout: stopPropagation when payment method selected so description tips show on radio buttons. #20432
|
||||
* Fix - Shipping zone settings: fixed title for shipping methods without settings. #20441
|
||||
* Fix - Ensure custom Webhook topic selections are correctly saved in admin. #20406
|
||||
* Fix - Webhook bottom bulk actions. #20445
|
||||
* Fix - Fixes multisite orders dashboard widget to use order number rather than ID. #20457
|
||||
* Fix - Add check to ensure download log FK does not exist before adding it. Update routine will cleanup any duplicates. #20478
|
||||
* Fix - IPv6 support with HTTP_X_FORWARDED_FOR header. #20479
|
||||
* Fix - Avoid setting wrong prices when syncing grouped products with children. #20482
|
||||
* Fix - Separation of explode and end functions in two lines. End function should get a reference as parameter. #20500
|
||||
* Fix - Initialize payment gateways before running bulk actions so gateways can listen for events. #20502
|
||||
* Fix - Cast shipping total to a float so incl. tax shows only when needed. #20531
|
||||
* Fix - Fix automatic stock status updates based on stock level. #20573
|
||||
* Fix - Improved sanitize_special_column_name_regex trim to fix column matching when importing CSVs. #20486
|
||||
* Fix - Force importer log table to wrap long columns. #20534
|
||||
* Fix - Rest API: Prevent errors if variation parent is invalid and cannot be read. #20572
|
||||
* Fix - Rest API: Remove legacy API enabled check from auth endpoint. #20499
|
||||
* Fix - Display products on sub-subcategories when sorting parent category by price. #20579
|
||||
* Fix - Set order status to refunded when a PayPal transaction is refunded. #20574
|
||||
* Fix - fix undefined index in abstract-wc-widget. #20544
|
||||
* Fix - Round items for order total when recalculating order values to match cart. #20533
|
||||
* Fix - Removed mysql transactions when updating order status, tweaked caching, and improved version transient cleanup to prevent possible deadlocks on checkout. #20537
|
||||
* Tweak - Added a message to promote Wootenberg when running Gutenberg feature plugin. #20524
|
||||
* Tweak - Added a warning notice before removing personal data from orders in bulk. #20481
|
||||
* Dev - generate_select_html and generate_multiselect_html functions again support the usage of integer-keyed arrays as available values. #20569
|
||||
* Dev - Allow order billing fields to use a provided 'value'. #20424
|
||||
|
||||
= 3.4.2 - 2018-06-05 =
|
||||
* Fix - Flexslider gallery fixes for RTL sites, and for variation image switching. #20328 #20321
|
||||
* Fix - Allow forms to be submitted when the password strength library fails to load. #20362
|
||||
* Fix - Personal data exporter: Do not export a customer data group containing no data. #20347
|
||||
* Fix - Fix navigation notification in settings when clicking save. #20335
|
||||
* Fix - Show discount amount for free shipping coupons. #20334
|
||||
* Fix - Fixed cache clearing for category children for sites running object caching. #20308
|
||||
* Fix - Use correct escaping on select2 placeholders. #20364
|
||||
* Fix - Order by price clauses when searching within terms. #20391
|
||||
* Fix - Clear needs_processing transient when adding a product to an order. #20390
|
||||
* Enhancement - Permission_id constraint checks on install. #20366
|
||||
* Dev - Added order to "woocommerce_order_is_vat_exempt" filter arguments. #20365
|
||||
* Localization - Disable states for Bahrain. #20363
|
||||
* Localization - Disable states for Luxemberg. #20389
|
||||
|
||||
= 3.4.1 - 2018-05-29 =
|
||||
* Fix - Fix webhook admin filtering URLs. #20236
|
||||
* Fix - Add missing wp_unslash calls to product data meta box to prevent quote characters being escaped on save. #20235
|
||||
* Fix - Display price filter widget in LTR mode on RTL sites. #20221
|
||||
* Fix - Refactor WC_Coupon constructor to allow for passing in coupon objects. #20193
|
||||
* Fix - Path field in advanced CSV importer was broken due to an esc_url call. #20191
|
||||
* Fix - Prevent shipping method instances trying to save settings on non-instance screens. #20217
|
||||
* Fix - Wrapper function to get full mysql version string with mariadb handling. #20231
|
||||
* Fix - woocommerce_pagination had some extra white space. #20214
|
||||
* Fix - If a file size cannot be read, ignore range headers to prevent offsite downloads being 0kb. #20205
|
||||
* Fix - Allow HTML when using `wc_attribute_label()`. #20202
|
||||
* Fix - Update address-i18n.js to prevent appending multiple "(optional)" labels. #20195
|
||||
* Fix - Check plugin properties exist when listening to auto_update_plugin hook. #20234
|
||||
* Fix - Add extra checks in `get_canonical_package_rate_ids` to prevent notices. #20237
|
||||
* Fix - Fix infinite loop with importing tax rates. #20253
|
||||
* Fix - Echo attribute label for "empty" default option. #20256
|
||||
* Fix - Fix download sample tax rates URL format. #20272
|
||||
* Fix - Product properties should not be accessed directly PHP notice when calling `wc_get_product_attachment_props`. #20282
|
||||
* Fix - If flexslider is disabled, gallery images also need to trigger photoswipe on click. #20290
|
||||
* Fix - Product import file uploads on windows servers. #20273
|
||||
* Fix - Fix variation attribute selection via the cart page/query string. #20293
|
||||
* Fix - Add greater specificity to required styling in 2017 theme. #20296
|
||||
* Enhancement - Export legacy paypal meta data in personal data exporter. #20200
|
||||
* Enhancement - Improve performance of `wc_update_340_states` update routine to help prevent timeouts. #20241
|
||||
* Dev - Remove red styling for PHP notice if using > 5.6. #20294
|
||||
* Dev - Add an action hook after printing the cart item name. #20190
|
||||
* Localization - Use "payment tokens" terminology in exports. #20197
|
||||
|
||||
= 3.4.0 - 2018-05-23 =
|
||||
* Feature - GDPR: Tools to export WooCommerce data using the new export functionality in WordPress 4.9.6. #19330
|
||||
* Feature - GDPR: Tools to bulk anonymize order data in admin. #19330
|
||||
* Feature - GDPR: Tools to turn off company/address-2/phone checkout fields to avoid unnecessary data collection, and a toggle to choose how required fields are presented. This is available via the Customizer. #19637
|
||||
* Feature - GDPR: Tools in the Customizer to change the terms and conditions checkbox label on the checkout. #19637
|
||||
* Feature - GDPR: Tools to define a privacy policy for the account page and checkout page in "account privacy" settings and within the Customizer. #19747
|
||||
* Feature - GDPR: Tools to automatically clean up and remove order personal data after a set time period. #19743
|
||||
* Feature - GDPR: Added privacy snippet which works with the new privacy page functionality in WordPress 4.9.6. #19749
|
||||
* Feature - Added a new order widget to the dashboard (on multisite) so you can see your orders across multiple stores on the same WordPress network. #17598
|
||||
* Feature - Added "display name" input on the My Account page. #19078
|
||||
* Feature - Product search improvements including stopword support and support for searching for multiple products at the same time. #19096
|
||||
* Feature - Cash on Delivery gateway can be enabled/disabled for specific shipping methods instead of only method types. #19221
|
||||
* Feature - Add wildcard email support for coupons. #19331
|
||||
* Feature - Added support for the GeoLite2 library as a replacement for the deprecated MaxMind GeoIP library. #19419
|
||||
* Feature - Added tool for cleaning up download permissions table. #19922
|
||||
* Tweak - GDPR: Improved appearance of checkout field 'descriptions' (if used) to make them more useful for privacy notices. #19637
|
||||
* Tweak - GDPR: Improved related data cleanup when deleting users/orders. #19330
|
||||
* Tweak - GDPR: Notice about HTTPS as a requirement in admin if missing. #19756
|
||||
* Tweak - GDPR: Improved the checkout (payments) settings screen, moved page options to a new "advanced" section, and made an "Accounts and Privacy" section. #19703
|
||||
* Tweak - GDPR: Hash customer email address in download URLs to protect privacy. #18957
|
||||
* Tweak - GDPR: Add highlight to T&C checkbox if not checked to show it needs to be checked. #19177
|
||||
* Tweak - GDPR: Automatically purge old logs after 30 days. #19920
|
||||
* Tweak - GDPR: Only log Webhook body if WP_DEBUG is enabled. #19914
|
||||
* Tweak - GDPR: Store less PII in PayPal standard. #19914
|
||||
* Tweak - Only show admin notices on WooCommerce screens/plugins/dashboard. #19772
|
||||
* Tweak - Standardize stock update messages in admin and correctly log who performed the action. When an order note is added after modifying stock manually, update order notes display via AJAX. #18080
|
||||
* Tweak - Rollback if payment complete or update status fails to prevent partial order updates on failure. #18175
|
||||
* Tweak - Made the system status tool which purges user carts also purge persistent carts. #18492
|
||||
* Tweak - Display whether or not external object cache is enabled in system status report. #18595
|
||||
* Tweak - Display zero value when using shipping classes. #18624
|
||||
* Tweak - Fixed settings table styling on mobile. #18655
|
||||
* Tweak - Updated Flexslider to version 2.7.0. #18779
|
||||
* Tweak - Enable screen options for list screens. #18817
|
||||
* Tweak - Don't call WC_Install::install() on downgrades. #18818
|
||||
* Tweak - Remove user login from reset password link to protect personally identifying info. #18820
|
||||
* Tweak - Added a function to return a list of custom tables to aid with cleanup. #18831
|
||||
* Tweak - Enable going backwards in the setup wizard. #18921
|
||||
* Tweak - Make sure terms page exists and isn’t trashed before using it. #18993
|
||||
* Tweak - Toggle when clicking anywhere in toggle row during setup wizard. #19035
|
||||
* Tweak - Use `read_product` permissions instead of `edit_product` for ajax product search. #19087
|
||||
* Tweak - Add `priceSpecification` property with `valueAddedTaxIncluded` to product structured data. #19091
|
||||
* Tweak - Importer remembers mappings across imports. #19110
|
||||
* Tweak - Made coupon total displayed in cart more consistent. #19166
|
||||
* Tweak - Remove forced CSS line-heights to improve text input displays across different browsers. #19174
|
||||
* Tweak - When loading default attributes/variation, if there is no longer a match, reset the form and hide the notice #19190
|
||||
* Tweak - Removed admin product type column from core and made it into a free feature plugin. #19192
|
||||
* Tweak - Use `woocommerce-no-js` class to hide JavaScript-only forms and content. #19199
|
||||
* Tweak - Activate plugins during installation process even if directory doesn't match slug. #19200
|
||||
* Tweak - Allow category and attribute ids in the `products` shortcode instead of only slugs. #19204
|
||||
* Tweak - Invalidate cart items when important props like product type are updated. #19255
|
||||
* Tweak - Don't use mysql functions directly on system status page to prevent errors if they are disabled. #19281
|
||||
* Tweak - Replaces `have_posts` with `woocommerce_product_loop` which looks to see if there are products, or if the loop is going to be showing something else. #19288
|
||||
* Tweak - Delete widget options and order notes on uninstall. #19371
|
||||
* Tweak - Add unique names to all nonces in template fields and forms. #19387
|
||||
* Tweak - Enable using the tab key to select elements in selectWoo dropdowns. #19416
|
||||
* Tweak - Added autocomplete attributes to form elements for better autocomplete support. #19426
|
||||
* Tweak - Removed PayPal line item limit and ensured URLs are shorter than maximum length. #19493
|
||||
* Tweak - Disable Gutenberg editor on products posts. #19543
|
||||
* Tweak - Improvements around UI and wording of store setup step in setup wizard, a revamped extras step, and other improvements.
|
||||
* Tweak - Only push images to lightbox if an image is found. #19568
|
||||
* Tweak - Added and improved notices around old PHP versions and disabled geolocation on PHP 5.4 or lower. #19573
|
||||
* Tweak - The `manage_stock` field in the product API can return a `mixed` type instead of `boolean` for variations. #19598
|
||||
* Tweak - Link product import/export to WordPress import/export capabilities. #19602
|
||||
* Tweak - Use ` ` to separate asterisks in required fields to prevent awkward line breaks. #19610
|
||||
* Tweak - Load meta box input values using CRUD and edit context. #19670
|
||||
* Tweak - Scroll to notices on cart/checkout for better mobile visibility. #19699
|
||||
* Tweak - Add filter to coupon URL on "Edit order" screen. #19777
|
||||
* Tweak - Throw error if order can't be loaded on checkout. #19802
|
||||
* Tweak - Remove deprecated freegeoip service from geolocation. #19841
|
||||
* Tweak - Allow arrays of query vars in wc_get_orders and wc_get_products. #19848
|
||||
* Tweak - Invalidate fragment cache on theme switch.
|
||||
* Tweak - Include select tags when saving payment details temporarily in checkout.js. #19854
|
||||
* Tweak - Update - Include pending products in export. #19928
|
||||
* Tweak - Deprecate woocommerce_ajax_added_order_items action in favor of more useful action. #19933
|
||||
* Tweak - Enable touch-to-zoom on touch devices to make photoswipe more easily accessible. #20002
|
||||
* Tweak - Wizard: List out all plugins to be installed upon proceeding to the next step, with a highlight on hover indicating relevant settings. #19952
|
||||
* Tweak - Hide/show password strength meter instead of removing/inserting password strength meter. #20006
|
||||
* Tweak - Added support for HTTP_RANGE requests (used by iOS devices) to Force download method. #19984
|
||||
* Tweak - Replaced protocol-relative URLs for thumbnails in the cart and mini-cart with protocol-specific URLs to prevent problems with URLs that include port section. #19934
|
||||
* Tweak - In CSV exports, wrap cell in ' rather than just prepending to escape values. #20041
|
||||
* Tweak - Add JS listeners for reloading/reinitializing order items in edit-order page. #20082
|
||||
* Fix - Properly set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads(). #1862
|
||||
* Fix - Set maxlength for order item meta key to avoid values disappearing if too long. #18918
|
||||
* Fix - Remove hardcoded /wp-content check for downloads. #18961
|
||||
* Fix - Made get_on_sale_products respect the setting to hide outofstock products. #18984
|
||||
* Fix - Prevent shortcode [product_page] redirecting to the actual product's page after add to cart. #19043
|
||||
* Fix - Make the "main term" logic match for both the breadcrumb and product categories widget. #19044
|
||||
* Fix - Check parent status too when seeing if variation is purchasable. #19045
|
||||
* Fix - Fix uppercasing of accented characters. #19086
|
||||
* Fix - Do not allow updating parent ID from variations after created. #19097
|
||||
* Fix - Ensure coupon amount is not empty to prevent non-numeric value errors. #19098
|
||||
* Fix - Ensure shop archive works correctly when `paged=1` is in the URL. #19104
|
||||
* Fix - Ensure orders created with `woocommerce_adjust_non_base_location_prices` filter active have the same cost on frontend and admin. #19109
|
||||
* Fix - Handling in the CLI to prevent `Resource does not exist` errors when using commands of a certain format. #19123
|
||||
* Fix - Use subtotal when calculating discounts in admin/orders to ensure prices are the same as on the frontend. #19159
|
||||
* Fix - Use `kses` to process download names to prevent escaped HTML displaying in emails.
|
||||
* Fix - Remove translation from Thailand state file to prevent PayPal errors around unsupported characters. #19219
|
||||
* Fix - Fix auto-select variation URLs with special characters in them. #19283
|
||||
* Fix - Introduced `wc_round_discount` and improved consistency of discount rounding. #19291
|
||||
* Fix - Only add schema for ratings to structured data when ratings are enabled. #19310
|
||||
* Fix - Prevent default state applying unless the country was also unset in JS state/country inputs. #19338
|
||||
* Fix - Escape quantity labels correctly to prevent broken html. #19375
|
||||
* Fix - Delete orphaned variations after product import. #19378
|
||||
* Fix - Ensure API credentials exist before defining PayPal refund support. #19380
|
||||
* Fix - Force word-wrapping in the log viewer to prevent layout-breaking long lines. #19503
|
||||
* Fix - Removes permission checks that were preventing webhooks from displaying properly when no post object existed. #19508
|
||||
* Fix - Empty cart after completing PayPal payment. #19509
|
||||
* Fix - Strip tags on aria-labels in Add to Cart template to prevent broken HTML. #19522
|
||||
* Fix - Update post_modified date when saving products and variations but no other product data. #19595
|
||||
* Fix - Clear comment count transient when cleaning product transients to prevent incorrect comment count displays. #19664
|
||||
* Fix - Load gateways before order is saved/email is triggered to ensure all information gets sent/processed. #19667
|
||||
* Fix - Clear shipping transient when saving shipping method on zones screen. #19668
|
||||
* Fix - Handle escape characters for fputcsv to work around PHP standards issues. #19678
|
||||
* Fix - Cast post IDs to integers in admin meta boxes. #19710
|
||||
* Fix - Fix CSV unescaping of negative numbers in download expiry/limit columns. #19732
|
||||
* Fix - Don't load unsupported theme functionality if shop page ID is -1. #19822
|
||||
* Fix - Select and display "Downloadable" option in product admin filter when selected. #19876
|
||||
* Fix - Add sort handle column when adding new tags. #19875
|
||||
* Fix - More thorough CSV importer cleanup. #19877
|
||||
* Fix - Fix gallery switching when image is the same #19878
|
||||
* Fix - Ensure coupon amount is always returns as a float value #19889
|
||||
* Fix - No update available message after activating subscription that has a valid update. #19831
|
||||
* Fix - Include scheduled products in CSV export. #19907
|
||||
* Fix - Generator tag actions should be filters. #19946
|
||||
* Fix - WC API should not try to create a product image when creating a product variation if an empty image is passed. #19971
|
||||
* Fix - Force settings API settings to autoload by default. #19998
|
||||
* Fix - Cart html5 validation events when using keyboard. #20001
|
||||
* Fix - Don't show stock status fields in external product quick-edit. #20005
|
||||
* Fix - Prevent an infinite loop if 2 grouped products are linked. #20020
|
||||
* Fix - Switch stock_status when manage stock gets changed to prevent being out of stock if stock quantity is > 0. #20021
|
||||
* Fix - When duplicating variation, set the date to null. #20083
|
||||
* Fix - Fix rounding of line items for orders to match cart. #20086
|
||||
* Fix - Remove hardcoded border in email template. #20090
|
||||
* Fix - Prevent autofocus on checkout. #20123
|
||||
* Fix - Recalc taxes if address changes in API. #20137
|
||||
* Dev - Made wc_query_string_form_fields handle strings. #20162
|
||||
* Dev - Added refunded_payment prop to orders for determining if payment was refunded via API. #18196
|
||||
* Dev - Added extra params to `woocommerce_order_get_downloadable_items`. #18408
|
||||
* Dev - Store shipping method ID and instance ID in separate fields instead of both in one serialized field. #18483
|
||||
* Dev - Add `woocommerce_rest_insert_system_status_tool` hook that fires after executing a REST system status tool. #18505
|
||||
* Dev - Gallery meta box is now powered by CRUD. #18511
|
||||
* Dev - Refactor woocommerce_wp_select so it could be used for a multiselect. #18536
|
||||
* Dev - Added ability to declare sanitize_callback in settings API. #18554
|
||||
* Dev - Added support for additional HTML5 input types for settings/checkout forms. #18594
|
||||
* Dev - Made 'woocommerce_email_downloads_column_' hook format aware. #18600
|
||||
* Dev - Add missing `woocommerce_update_options__` actions for settings pages that override save method. #18609
|
||||
* Dev - Allow default value for single_select_country and multi_select_countries. #18754 #18756
|
||||
* Dev - Added `grouped_form` class to grouped product `form` element. #18786
|
||||
* Dev - Mini cart item link now respects value of $product_permalink. #18979
|
||||
* Dev - Added `woocommerce_coupon_get_items_to_validate` filter to enable excluding products from coupon validation. #19002
|
||||
* Dev - Added `woocommerce_persistent_cart_enabled` filter. #19027
|
||||
* Dev - Added `woocommerce_admin_order_item_coupon_url` filter. #19777
|
||||
* Dev - Replaced calls to `exit` with `wp_die` in the ajax methods to enable unit testing of those methods.
|
||||
* Dev - Introduce `woocommerce_coupon_custom_discounts_array` filter to allow post processing on custom coupons. #19148
|
||||
* Dev - Move jQuery UI styles into WooCommerce assets folder and load them from there. #19173
|
||||
* Dev - Added `woocommerce_coupon_validate_expiry_date` filter to enable modifying the coupon expiry date check. #19228
|
||||
* Dev - Added `woocommerce_shipping_calculator_enable_state` filter to enable disabling state section in shipping calculator. #19241
|
||||
* Dev - Added `woocommerce_bacs_process_payment_order_status` filter allowing plugins to change the order status to the BACS gateway. #19311
|
||||
* Dev - Added `woocommerce_coupon_sort` filter to allow plugins to override the default coupon apply order. #19339
|
||||
* Dev - Added `woocommerce_before_output_product_categories` and `woocommerce_after_output_product_categories` filters. #19363
|
||||
* Dev - Added general `woocommerce_form_field` filter to make it easier to filter all of the form fields. #19388
|
||||
* Dev - Added `woocommerce_install_get_tables` filter to enable plugins to register new, WooCommerce-specific tables. $19436
|
||||
* Dev - Use `get_variation_price` method in structured data to grab min/max so filters are ran. #19527
|
||||
* Dev - Added `woocommerce_helper_suppress_connect_notice` filter to enable suppressing the admin WordPress.com connection message. #19599
|
||||
* Dev - Moved all photoswipe styles to `photoswipe.css` to make it easy to dequeue all the photoswipe styles. #19673
|
||||
* Dev - Slash meta values before updating values in the data stores. #19675
|
||||
* Dev - New wc_selected method to handle array key conversion to int. #19705
|
||||
* Performance - Optimized saving of orders. Adds a transient for needs_processing, and only saves changes when saving order items. #18538
|
||||
* Performance - Refactored the SQL query for `WC_Customer_Download_Data_Store::get_downloads()` to fetch available downloads faster. #18559
|
||||
* Performance - Split the layered nav counts into multiple transient records by taxonomy and added a filter to allow bypassing caching. #19225
|
||||
* Performance - Removed duplicate `SET SESSION SQL_BIG_SELECTS=1` queries. #19502
|
||||
* Performance - Avoid storing coupon `_used_by` data to prevent database bloat. #19669
|
||||
* Performance - Introduced new wc_get_product_class() and wc_product_class() functions. #19639
|
||||
* Performance - Series of tweaks aimed at reducing the number of queries performed #19918
|
||||
* Template - Update cart coupon button from input to button type. #19059
|
||||
* Template - Added `woocommerce-form-register` class to registration form. #19486
|
||||
* Template - Added escaping to publish date. #19530
|
||||
* Template - Added a template file for recent product reviews. #19711
|
||||
* Template - Made add to cart templates more consistent between product types. #19666
|
||||
* Localization - Switched Georgian Lari symbol to new UTF symbol. #19603
|
||||
* Localization - Use ISO county codes for Irish states. #19658
|
||||
* Localization - Use ISO county codes for BD states. #19744
|
||||
* Localization - LR-Liberia states. #19709
|
||||
* Localization - Update ZA tax rate. #19909
|
||||
* Localization - Various spelling, grammar fixes, and phrasing improvements.
|
||||
* Localization - Fix missing Bahrain country code. #20061
|
||||
|
||||
= 3.3.5 - 2018-04-10 =
|
||||
* Fix - Shop page notice should not appear when editing the "Hello World!" page.
|
||||
* Fix - Inconsistent order item refund sign.
|
||||
* Fix - Change `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
|
||||
* Fix - Use minimum price instead of maximum price when ordering variable products from low to high on term archives.
|
||||
* Fix - `order` and `orderby` on shop page when using rewrite rules.
|
||||
* Fix - Ajax loading spinner when using twentyseventeen theme.
|
||||
* Fix - Out of Stock products change stock to On Backorder when imported to update existing products.
|
||||
* Fix - Visibility dropdown not responding in quick edit when stock management is disabled.
|
||||
* Fix - Featured paramenter in products endpoint on REST API.
|
||||
* Fix - Linebreaks in order item meta.
|
||||
* Fix - Product rating count when updated by admin.
|
||||
* Tweak - Define array before attempting to append to it.
|
||||
* Tweak - Change WC WP-CLI commands default per_page value to 100.
|
||||
* Tweak - Ensure background process class returns `data` as an array.
|
||||
* Tweak - Increase orders table checkbox column size on small devices.
|
||||
* Tweak - Better support for infinite scroll in Jetpack.
|
||||
|
||||
= 3.3.4 - 2018-03-20 =
|
||||
* Fix - Fixed undefined index after running setup wizard two times on fresh install.
|
||||
* Fix - wc_get_loop_class; force columns to be a minimum of 1.
|
||||
* Fix - Added loading spinner to WC panels in menu admin.
|
||||
* Fix - Use relative scheme for AJAX endpoint to avoid errors when using a mix of HTTP and HTTPS.
|
||||
* Fix - Fix SelectWoo templateSelection property.
|
||||
* Fix - Layered nav support on unsupported theme archives.
|
||||
* Fix - Prevent full refresh when editing store notice in the customizer.
|
||||
* Fix - Only append tax label in email content if taxes are enabled.
|
||||
* Fix - More reliable Jetpack detection.
|
||||
* Fix - Check if product has weight before calculate weight total in cart.
|
||||
* Fix - Correctly handle default ordering on the search page.
|
||||
* Fix - Fix default product category handling in installer.
|
||||
* Fix - Properly check slugs when updating attributes.
|
||||
* Fix - Use gallery thumbnail size for variation image switcher.
|
||||
* Fix - Clear subcategory cache when updating product categories.
|
||||
* Fix - Round fractional cents when out of base.
|
||||
* Fix - Inherit 'is variation' from existing attribute during csv import.
|
||||
* Fix - Set is_shortcode loop prop when outputting subcategories.
|
||||
* Fix - Reload gateways after updating the order.
|
||||
* Tweak - Use wc_get_default_products_per_row as the default for product shortcodes.
|
||||
* Tweak - Add post_excerpt to product search.
|
||||
* Tweak - Update the description of the user tracking notice in the onboarding wizard.
|
||||
* Tweak - Add extra data in order mobile view (status and date).
|
||||
* Tweak - Add profile link to order screen.
|
||||
|
||||
= 3.3.3 - 2018-02-21 =
|
||||
* Fix - Fixed is_numeric check which was affecting order subtotals/totals when using comma decimal separator.
|
||||
* Fix - Add missing direct script access checks to loop templates.
|
||||
* Fix - Added wp-post-image class to main image so variation images are swapped correctly.
|
||||
* Fix - API - Adjusted schema for products shipping_class_id to integer.
|
||||
* Fix - Made init tooltips event more specific to avoid conflict with Product Invoices extension.
|
||||
|
||||
= 3.3.2 - 2018-02-20 =
|
||||
* Fix - Fixed admin product SKU searching and searching non-published products.
|
||||
* Fix - PHP7.1 notice when image height is empty.
|
||||
* Fix - Prevent repeated update_option calls on page load due to php type juggling.
|
||||
* Fix - Only do unsupported template rendering in the loop to prevent conflicts with other shortcodes on the shop page.
|
||||
* Fix - Don't prepend regular shortcodes with categories.
|
||||
* Fix - If using get_catalog_ordering_args. remove the args when finished.
|
||||
* Fix - Remove "Type" column on attributes table by default unless custom types are defined.
|
||||
* Fix - Use verbose page rules when shop is in the URL, including shop base with category, to prevent 404s.
|
||||
* Fix - Set woocommerce_hide_invisible_variations to true so disabled variation attributes are hidden on product pages.
|
||||
* Fix - Help tip for webhook status.
|
||||
* Fix - Shipping zone documentation help link was printing wrong.
|
||||
* Fix - Stop background processing images when disabled via the filter.
|
||||
* Fix - Only search when a search term is provided. Ignore empty strings.
|
||||
* Fix - Fix check for external resources.
|
||||
* Fix - Show full date for future orders.
|
||||
* Fix - Prevent JS error is 'orders' row is disabled on order screen.
|
||||
* Fix - Fix save of tax settings when no changes have been made.
|
||||
* Fix - Add nonce to logout link on my account page so you do not need to confirm the action.
|
||||
* Fix - Fix plain text entity replacement so currency symbols are included.
|
||||
* Fix - API - Set status after order is created/updated so triggered emails are current.
|
||||
* Fix - API - Fix single webhook endpoint.
|
||||
* Tweak - Added help text for background image processing.
|
||||
* Tweak - Added notice when background image processing is running, with cancel button.
|
||||
* Tweak - Run background image processing less often by tracking changes.
|
||||
* Tweak - Added system status tool to run background image processing manually.
|
||||
* Tweak - If using Jetpack Photon, use that instead of background image processing.
|
||||
* Tweak - Gallery thumbnail image size to handle small, square cropped images.
|
||||
* Tweak - Helper function (and template version bump for image templates) to render gallery images.
|
||||
* Tweak - Add help text for the default category to explain usage.
|
||||
* Tweak - Allow changing the default product category.
|
||||
* Tweak - Tweak mobile view of order preview to improve layout in non-english.
|
||||
* Tweak - If selecting text, don't link to order on row click.
|
||||
* Localization - Remove isle of man state.
|
||||
|
||||
= 3.3.1 - 2018-02-06 =
|
||||
* Fix - Added `woocommerce_output_product_categories` to replace `woocommerce_product_subcategories` function to prevent outdated theme template files from outputting categories on the shop and category pages in err.
|
||||
* Fix - Prevented columns from being set to anything lower than 1.
|
||||
* Fix - Added extra error checking in Webhooks API to prevent notices when deleting Webhooks.
|
||||
* Fix - Prevented list table classes being loaded multiple times. This also fixes compatibility with Smart Coupons extension.
|
||||
* Fix - Removed stray debug string from order email template and fixed some typos.
|
||||
* Fix - Set up the loop when calling wc_get_loop_prop. Fixes compatibility with some themes.
|
||||
* Fix - Remove multiple application of filter 'woocommerce_order_item_product'.
|
||||
* Fix - Protect against theme support being defined too late. Fixes some issues with custom themes defining WooCommerce support incorrectly.
|
||||
* Fix - Add fallback for themes that just get the pagination template.
|
||||
* Fix - Made the on-the-fly image regen also regenerate missing sizes.
|
||||
* Fix - Fixed missing user_id in webhook migration script.
|
||||
* Fix - Allow uncategorized category to be sorted like the others.
|
||||
* Fix - If theme support changes, we may need to flush permalinks since some are changed based on this flag.
|
||||
* Fix - Fire hooks for pagination etc only when pagination is enabled.
|
||||
* Fix - Default HTML in end wrapper template.
|
||||
* Fix - Prevent regular pagination showing on archives for unsupported themes.
|
||||
* Fix - Fix shop when shown as homepage in unsupported themes.
|
||||
* Fix - Fix SKU mapping for placeholders during CSV import.
|
||||
* Fix - Use CRUD search helper in admin products table so partial SKU search works.
|
||||
* Fix - Fix bulk sale/regular price percentage handling.
|
||||
* Fix - More specificity on smallscreen style override for columns.
|
||||
* Tweak - Add notice for moved store notice setting.
|
||||
* Tweak - Allow removing coupons on editable orders only.
|
||||
* Tweak - Extended the background processing library to avoid changing methods in the library.
|
||||
* Tweak - Do not show row settings if something is managing the number of products per page.
|
||||
* Tweak - Allow devs to add 'no-link' class to elements to prevent order view link being triggered on row click.
|
||||
* Tweak - Made woocommerce_resize_images filter more useful by calling it later.
|
||||
* Tweak - Revert default columns back to 4 so it's consistent with 3.2.
|
||||
|
||||
= 3.3.0 - 2018-01-30 =
|
||||
* Feature - Improved default appearance in themes which do not support WooCommerce, making the shop page shortcode based.
|
||||
* Feature - Products shortcodes; improved random sorting, with some caching.
|
||||
* Feature - Products shortcodes; support for pagination.
|
||||
* Feature - Added new options to the WordPress Appearance Customizer; control the product grid (rows and columns), and image sizes.
|
||||
* Feature - Improved how image sizes are defined and calculated. Set an aspect ratio (custom, 1:1, uncropped) and image sizes will be automagically calculated based on widths.
|
||||
* Feature - Changing image sizes will trigger automatic thumbnail regeneration in the background.
|
||||
* Feature - Improved how downloads are stored within products, and added new reporting/logging features to track who downloaded what, when.
|
||||
* Feature - Improved the overall appearance of the backend orders list, and added a new 'preview' button to quickly see order details.
|
||||
* Feature - New default sample data and placeholders.
|
||||
* Feature - Added sandbox and live API details to the PayPal standard data, as well as an indication on the checkout to what mode is currently active. PayPal IPN email notifications are also now optional.
|
||||
* Feature - Introduced product category threshold filter (`woocommerce_product_category_filter_threshold`). AJAX powered select will kick in when you have over 100 categories.
|
||||
* Feature - Added `add_to_cart_description` method and aria-labels to cart buttons in the loop for accessibility.
|
||||
* Feature - Ability to search in logs when the database logger is used.
|
||||
* Performance - Adjusted how permalinks are retrieved and saved to avoid switching locales on each page load.
|
||||
* Performance - Added cache when loading product variation attributes.
|
||||
* Fix - Fix wc_notice_count logic.
|
||||
* Fix - Correct bulk edit price formatting.
|
||||
* Fix - Ajax add-to-cart button shortcode fix for variations.
|
||||
* Tweak - Update billing if account form changes.
|
||||
* Tweak - Remove videos from help sections.
|
||||
* Tweak - Preserve seconds when saving order date.
|
||||
* Tweak - Allow quantities less than 1, but not 0, in admin.
|
||||
* Tweak - Post types with no archives should not show in breadcrumb.
|
||||
* Tweak - Only load session handler class on frontend not during cron.
|
||||
* Tweak - Moved the 'Store Notice" option into the customizer.
|
||||
* Tweak - Checkout Postcode / Zip validation error message was missing Billing / Shipping Identification.
|
||||
* Tweak - Added Iris color picker validation.
|
||||
* Tweak - Use scrollIntoView on checkout.
|
||||
* Tweak - Converted input submit elements to button submit elements across the entire codebase for consistency.
|
||||
* Tweak - Added `{site_title}` replacement for email footers.
|
||||
* Tweak - Added delete product confirmation if a product has had sales.
|
||||
* Tweak - Improved when "incl. VAT" is displayed in cart totals.
|
||||
* Tweak - Use base text color for links in email templates.
|
||||
* Tweak - Show theme overrides that are done through the wc_get_template filter in the system status report.
|
||||
* Tweak - Added nofollow tags in layered nav to prevent duplicate indexed content.
|
||||
* Tweak - Hide "incl. VAT" when no rates are defined in "single total" display mode.
|
||||
* Tweak - Added replay protection for refunds.
|
||||
* Tweak - GeoDB empty file handling.
|
||||
* Tweak - Let wp_signon handle email to username conversion.
|
||||
* Tweak - Made email field wider on checkout.
|
||||
* Tweak - Post entire shipping selection when showing multiple packages.
|
||||
* Dev - REST API - Orders should be created for users who exist on the site only.
|
||||
* Dev - REST API - Fixed default value of "dp" on orders and refunds endpoints.
|
||||
* Dev - Theming - Added theme support variables to declare image sizes used for products.
|
||||
* Dev - Theming - Added support for single-product-postname.php template files.
|
||||
* Dev - Added actions before calculations order totals and taxes and is_vat_excempt support.
|
||||
* Dev - Add filter 'woocommerce_coupon_get_apply_quantity'.
|
||||
* Dev - Grouped products; added filters to allow custom columns and changes to values.
|
||||
* Dev - Allow for cloning the WC_Cart object
|
||||
* Dev - Apply filters to registration-error-email-exists error.
|
||||
* Dev - Added `woocommerce_cross_sells_order` filter.
|
||||
* Dev - Add order-details `before` hooks to complement existing hooks.
|
||||
* Dev - WC_CHUNK_SIZE constant for controlling readfile.
|
||||
* Dev - Add short circuit to customer bought product function.
|
||||
* Dev - Added a `wc_caught_exception` method to aid with logging.
|
||||
* Dev - Added Data stores and CRUD for working with Webhooks.
|
||||
* Dev - Bumped minimum WP version requirement to 4.5 and removed legacy API files.
|
||||
* Dev - New actions - `woocommerce_order_details_before_order_table_items`, `woocommerce_order_details_after_order_table_items` and `woocommerce_order_details_before_order_table`
|
||||
* Dev - Passed `widget_id` to `content-widget-product.php` so actions can be ran conditionally, and added sanitisation to `woocommerce_before_widget_product_list` and `woocommerce_after_widget_product_list`.
|
||||
* Dev - Improved the `is_internal_meta_key` checks to consider getters and setters.
|
||||
* Dev - Cleaned up the Order Customer Details template.
|
||||
* Dev - JavaScript payment_method_selected events on checkout.
|
||||
* Dev - Add new `$order->get_edit_order_url()` method.
|
||||
* Dev - Pass through options to zoom, flexslider, and photoswipe.
|
||||
* Dev - Added actions before and after scheduled sales initiation and completion.
|
||||
* Localization - Add direction character to currency output.
|
||||
* Localization - States for Tanzania and Moldova.
|
||||
|
||||
= 3.2.6 - 2017-12-13 =
|
||||
* Fix - CSV Importer - Fix ID mapping to existing IDs.
|
||||
* Fix - CSV Importer - Unslash header fields to avoid extra slashes.
|
||||
* Fix - CSV Importer - Allow import and export of draft products.
|
||||
* Fix - CSV Importer - Get global attribute ID only when is a global attribute.
|
||||
* Fix - Remove URL fragment when appending geolocation hash.
|
||||
* Fix - Additional cart rounding fixes so rounding before subtotal works again. Added more unit tests.
|
||||
* Fix - Add BOM to exported report CSVs.
|
||||
* Fix - is_visible should ensure product is is not trashed before returning true.
|
||||
* Fix - Return packages with no rates back to the cart so the shipping calculator is displayed even when the current country is not shippable.
|
||||
* Fix - Merge session and persistent carts when both exists after login.
|
||||
* Fix - Remove "wc_error" query string after login.
|
||||
* Fix - Allow woocommerce_form_field() have 'custom_attributes' equal 0.
|
||||
* Fix - Bulk actions in status logs table.
|
||||
* Fix - Exclude add-to-cart from pagination links.
|
||||
* Fix - Updated $GLOBALS['post'] data in products shortcode to prevent theme conflicts.
|
||||
* Fix - Only remove base taxes in cart totals class if item is taxable.
|
||||
* Fix - REST API - Fixed date format in reports schema.
|
||||
* Fix - REST API - Updated product categories image schema.
|
||||
* Fix - REST API - UUse KSES for purchase_note like in admin.
|
||||
* Fix - REST API - Filter passed images before processing so they can be unset via querystring.
|
||||
* Tweak - Use protected instead of private methods to allow easy override in session handler.
|
||||
* Tweak - wc_lostpassword_url should not be used before init - added warning.
|
||||
* Localization - Update Japanese prefectures to include prefecture type.
|
||||
|
||||
= 3.2.5 - 2017-11-22 =
|
||||
* Fix - WordPress 4.9 - REST API - Updated schema, sanitization, and validation callbacks to support correct data types.
|
||||
* Fix - WordPress 4.9 - Fix an issue saving variation attributes on new products and with attributes containing slashes.
|
||||
* Fix - Save fee tax lines to new orders on checkout.
|
||||
* Fix - Restore the post global after rendering product shortcodes.
|
||||
* Fix - Fix product filtering when searching for a string including quote characters.
|
||||
* Fix - Fix layered nav drop-downs containing unicode characters.
|
||||
* Fix - Fix an edge case rounding bug with shipping taxes, and another with non-integer quantities.
|
||||
* Fix - Set correct defaults when adding a new shipping class in admin.
|
||||
|
||||
= 3.2.4 - 2017-11-16 =
|
||||
* Fix - Cache IDs in shortcodes rather than query objects.
|
||||
* Fix - Fix float rounding issues in cart with currencies like Bitcoin.
|
||||
* Fix - Prevent slashes appearing in shipping fields and inside meta keys when using quotes.
|
||||
* Fix - Check valid data when filtering `wp_nav_menu_objects` to prevent conflicts.
|
||||
* Fix - `get_total_ex_tax` should exclude fee taxes.
|
||||
* Fix - Fix orders count in tax reports.
|
||||
* Fix - Allow removing coupons from the cart, even if coupons are disabled.
|
||||
* Fix - Prevent calculate_totals totals running too often.
|
||||
* Fix - Set attributes during variation creation so all options are correctly displayed in cart forms.
|
||||
* Fix - Grab description directly to pass through wc_format_content to prevent double sanitization.
|
||||
* Fix - Fix db warnings when using the "Add Order Indexes" tool.
|
||||
* Fix - Remove unnecessary html formatting in variation dimensions field.
|
||||
* Fix - Fix WC_Customer_Download isset method.
|
||||
* Fix - Removed class within class in admin meta boxes HTML.
|
||||
* Fix - Fixed wrong `flex-control-nav` selector scope in `add-to-cart-variation.js`
|
||||
* Fix - Allow variations to be added to cart from query string.
|
||||
* Fix - Use `add_filter` for `comment_feed_where` hook.
|
||||
* Fix - Change nocache_headers hook firing in the cache helper.
|
||||
* Fix - Coupon min/max spend based on displayed subtotal.
|
||||
* Fix - Fix event propagation on click in setup wizard and improve validation.
|
||||
* Fix - API - Change how line items are saved in API so calculations are correct.
|
||||
* Tweak - Hide downloads from admin emails.
|
||||
* Tweak - Set placeholder for variation lxwxh field to that of the parent.
|
||||
* Tweak - Improve the Add Payment Methods display so buttons are not shown when no payment methods support the feature.
|
||||
* Localization - Update NJ tax rate.
|
||||
* Localization - Add Belarusian ruble BYN.
|
||||
|
||||
= 3.2.3 - 2017-11-02 =
|
||||
* Fix - Fixed a conflict with some slider plugins due to sanitization of archive/term descriptions.
|
||||
* Fix - Fixed a flexslider bug when there is only 1 image on the product page (no gallery).
|
||||
|
|
76
Gruntfile.js
|
@ -101,16 +101,9 @@ module.exports = function( grunt ) {
|
|||
ext: '.min.js'
|
||||
}]
|
||||
},
|
||||
simplify_commerce: {
|
||||
flexslider: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'includes/gateways/simplify-commerce/assets/js/',
|
||||
src: [
|
||||
'*.js',
|
||||
'!*.min.js'
|
||||
],
|
||||
dest: 'includes/gateways/simplify-commerce/assets/js/',
|
||||
ext: '.min.js'
|
||||
'<%= dirs.js %>/flexslider/jquery.flexslider.min.js': ['<%= dirs.js %>/flexslider/jquery.flexslider.js']
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
@ -131,7 +124,7 @@ module.exports = function( grunt ) {
|
|||
}
|
||||
},
|
||||
|
||||
// Generate RTL .css files
|
||||
// Generate RTL .css files.
|
||||
rtlcss: {
|
||||
woocommerce: {
|
||||
expand: true,
|
||||
|
@ -171,7 +164,7 @@ module.exports = function( grunt ) {
|
|||
watch: {
|
||||
css: {
|
||||
files: ['<%= dirs.css %>/*.scss'],
|
||||
tasks: ['sass', 'rtlcss', 'cssmin', 'concat']
|
||||
tasks: ['sass', 'rtlcss', 'postcss', 'cssmin', 'concat']
|
||||
},
|
||||
js: {
|
||||
files: [
|
||||
|
@ -230,12 +223,13 @@ module.exports = function( grunt ) {
|
|||
},
|
||||
files: {
|
||||
src: [
|
||||
'**/*.php', // Include all files
|
||||
'!apigen/**', // Exclude apigen/
|
||||
'!node_modules/**', // Exclude node_modules/
|
||||
'!tests/**', // Exclude tests/
|
||||
'!vendor/**', // Exclude vendor/
|
||||
'!tmp/**' // Exclude tmp/
|
||||
'**/*.php', // Include all files
|
||||
'!apigen/**', // Exclude apigen/
|
||||
'!includes/libraries/**', // Exclude libraries/
|
||||
'!node_modules/**', // Exclude node_modules/
|
||||
'!tests/**', // Exclude tests/
|
||||
'!vendor/**', // Exclude vendor/
|
||||
'!tmp/**' // Exclude tmp/
|
||||
],
|
||||
expand: true
|
||||
}
|
||||
|
@ -247,9 +241,9 @@ module.exports = function( grunt ) {
|
|||
stdout: true,
|
||||
stderr: true
|
||||
},
|
||||
apigen: {
|
||||
apidocs: {
|
||||
command: [
|
||||
'apigen generate -q',
|
||||
'vendor/bin/apigen generate -q',
|
||||
'cd apigen',
|
||||
'php hook-docs.php'
|
||||
].join( '&&' )
|
||||
|
@ -262,12 +256,37 @@ module.exports = function( grunt ) {
|
|||
},
|
||||
e2e_tests_grep: {
|
||||
command: 'npm run --silent test:grep "' + grunt.option( 'grep' ) + '"'
|
||||
},
|
||||
contributors: {
|
||||
command: [
|
||||
'echo "Generating contributor list since <%= fromDate %>"',
|
||||
'./node_modules/.bin/githubcontrib --owner woocommerce --repo woocommerce --fromDate <%= fromDate %> --authToken <%= authToken %> --cols 6 --sortBy contributions --format md --sortOrder desc --showlogin true > contributors.md'
|
||||
].join( '&&' )
|
||||
}
|
||||
},
|
||||
|
||||
prompt: {
|
||||
contributors: {
|
||||
options: {
|
||||
questions: [
|
||||
{
|
||||
config: 'fromDate',
|
||||
type: 'input',
|
||||
message: 'What date (YYYY-MM-DD) should we get contributions since?'
|
||||
},
|
||||
{
|
||||
config: 'authToken',
|
||||
type: 'input',
|
||||
message: '(optional) Provide a personal access token. This will allow 5000 requests per hour rather than 60 - use if nothing is generated.'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Clean the directory.
|
||||
clean: {
|
||||
apigen: {
|
||||
apidocs: {
|
||||
src: [ 'wc-apidocs' ]
|
||||
}
|
||||
},
|
||||
|
@ -313,7 +332,7 @@ module.exports = function( grunt ) {
|
|||
}
|
||||
});
|
||||
|
||||
// Load NPM tasks to be used here
|
||||
// Load NPM tasks to be used here.
|
||||
grunt.loadNpmTasks( 'grunt-sass' );
|
||||
grunt.loadNpmTasks( 'grunt-shell' );
|
||||
grunt.loadNpmTasks( 'grunt-phpcs' );
|
||||
|
@ -328,8 +347,9 @@ module.exports = function( grunt ) {
|
|||
grunt.loadNpmTasks( 'grunt-contrib-concat' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-clean' );
|
||||
grunt.loadNpmTasks( 'grunt-prompt' );
|
||||
|
||||
// Register tasks
|
||||
// Register tasks.
|
||||
grunt.registerTask( 'default', [
|
||||
'js',
|
||||
'css',
|
||||
|
@ -339,7 +359,8 @@ module.exports = function( grunt ) {
|
|||
grunt.registerTask( 'js', [
|
||||
'jshint',
|
||||
'uglify:admin',
|
||||
'uglify:frontend'
|
||||
'uglify:frontend',
|
||||
'uglify:flexslider'
|
||||
]);
|
||||
|
||||
grunt.registerTask( 'css', [
|
||||
|
@ -351,8 +372,13 @@ module.exports = function( grunt ) {
|
|||
]);
|
||||
|
||||
grunt.registerTask( 'docs', [
|
||||
'clean:apigen',
|
||||
'shell:apigen'
|
||||
'clean:apidocs',
|
||||
'shell:apidocs'
|
||||
]);
|
||||
|
||||
grunt.registerTask( 'contributors', [
|
||||
'prompt:contributors',
|
||||
'shell:contributors'
|
||||
]);
|
||||
|
||||
// Only an alias to 'default' task.
|
||||
|
|
41
apigen.neon
|
@ -1,53 +1,20 @@
|
|||
source: ./
|
||||
|
||||
destination: wc-apidocs
|
||||
|
||||
templateConfig: apigen/theme-woocommerce/config.neon
|
||||
|
||||
# list of scanned file extensions (e.g. php5, phpt...)
|
||||
extensions: [php]
|
||||
|
||||
# directories and files matching this file mask will not be parsed
|
||||
source:
|
||||
- woocommerce.php
|
||||
- includes
|
||||
exclude:
|
||||
- includes/libraries/
|
||||
- includes/api/legacy/
|
||||
- i18n/
|
||||
- node_modules/
|
||||
- wc-apidocs/
|
||||
- tmp/
|
||||
- tests/
|
||||
- .sass-cache/
|
||||
- apigen/
|
||||
|
||||
# character set of source files; if you use only one across your files, we recommend you name it
|
||||
charset: [UTF-8]
|
||||
|
||||
# elements with this name prefix will be considered as the "main project" (the rest will be considered as libraries)
|
||||
main: WC
|
||||
|
||||
# title of generated documentation
|
||||
title: WooCommerce 3.0.x Code Reference
|
||||
|
||||
# base url used for sitemap (useful for public doc)
|
||||
title: WooCommerce Code Reference
|
||||
baseUrl: https://docs.woocommerce.com/wc-apidocs/
|
||||
|
||||
# choose ApiGen template theme
|
||||
templateTheme: default
|
||||
|
||||
# generate documentation for PHP internal classes
|
||||
php: false
|
||||
|
||||
# generate highlighted source code for elements
|
||||
sourceCode: true
|
||||
|
||||
# generate tree view of classes, interfaces, traits and exceptions
|
||||
tree: true
|
||||
|
||||
# generate documentation for deprecated elements
|
||||
deprecated: true
|
||||
|
||||
# generate list of tasks with @ todo annotation
|
||||
todo: true
|
||||
|
||||
# add link to ZIP archive of documentation
|
||||
download: false
|
||||
|
|
|
@ -58,34 +58,42 @@ class WC_HookFinder {
|
|||
}
|
||||
|
||||
public static function process_hooks() {
|
||||
// If we have one, get the PHP files from it.
|
||||
$template_files = self::get_files( '*.php', GLOB_MARK, '../templates/' );
|
||||
$template_files[] = '../includes/wc-template-functions.php';
|
||||
$template_files[] = '../includes/wc-template-hooks.php';
|
||||
self::$files_to_scan = array();
|
||||
|
||||
$shortcode_files = self::get_files( '*.php', GLOB_MARK, '../includes/shortcodes/' );
|
||||
$widget_files = self::get_files( '*.php', GLOB_MARK, '../includes/widgets/' );
|
||||
$admin_files = self::get_files( '*.php', GLOB_MARK, '../includes/admin/' );
|
||||
$class_files = self::get_files( '*.php', GLOB_MARK, '../includes/' );
|
||||
$other_files = array(
|
||||
'../woocommerce.php'
|
||||
self::$files_to_scan['Template Files'] = self::get_files( '*.php', GLOB_MARK, '../templates/' );
|
||||
self::$files_to_scan['Template Functions'] = array( '../includes/wc-template-functions.php', '../includes/wc-template-hooks.php' );
|
||||
self::$files_to_scan['Shortcodes'] = self::get_files( '*.php', GLOB_MARK, '../includes/shortcodes/' );
|
||||
self::$files_to_scan['Widgets'] = self::get_files( '*.php', GLOB_MARK, '../includes/widgets/' );
|
||||
self::$files_to_scan['Data Stores'] = self::get_files( '*.php', GLOB_MARK, '../includes/data-stores' );
|
||||
self::$files_to_scan['Core Classes'] = array_merge(
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/abstracts/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/customizer/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/emails/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/export/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/gateways/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/import/' ),
|
||||
self::get_files( '*.php', GLOB_MARK, '../includes/shipping/' )
|
||||
);
|
||||
|
||||
self::$files_to_scan = array(
|
||||
'Template Hooks' => $template_files,
|
||||
'Shortcode Hooks' => $shortcode_files,
|
||||
'Widget Hooks' => $widget_files,
|
||||
'Class Hooks' => $class_files,
|
||||
'Admin Hooks' => $admin_files,
|
||||
'Other Hooks' => $other_files,
|
||||
);
|
||||
self::$files_to_scan = array_filter( self::$files_to_scan );
|
||||
|
||||
$scanned = array();
|
||||
|
||||
ob_start();
|
||||
|
||||
$index = array();
|
||||
|
||||
foreach ( self::$files_to_scan as $heading => $files ) {
|
||||
$index[] = '<a href="#hooks-' . str_replace( ' ', '-', strtolower( $heading ) ) . '">' . $heading . '</a>';
|
||||
}
|
||||
|
||||
echo '<div id="content">';
|
||||
echo '<h1>Action and Filter Hook Reference</h1>';
|
||||
echo '<div class="description">
|
||||
<p>This is simply a list of action and filter hooks found within WooCommerce files. View the source to see supported params and usage.</p>
|
||||
<p>' . implode( ', ', $index ) . '</p>
|
||||
</div>';
|
||||
|
||||
foreach ( self::$files_to_scan as $heading => $files ) {
|
||||
self::$custom_hooks_found = array();
|
||||
|
@ -125,43 +133,36 @@ class WC_HookFinder {
|
|||
case 'filter' :
|
||||
case 'action' :
|
||||
$hook = trim( $token[1], "'" );
|
||||
$hook = str_replace( '_FUNCTION_', strtoupper( $current_function ), $hook );
|
||||
$hook = str_replace( '_CLASS_', strtoupper( $current_class ), $hook );
|
||||
$hook = str_replace( '$this', strtoupper( $current_class ), $hook );
|
||||
$hook = str_replace( array( '.', '{', '}', '"', "'", ' ', ')', '(' ), '', $hook );
|
||||
$loop = 0;
|
||||
|
||||
if ( '_' === substr( $hook, '-1', 1 ) ) {
|
||||
$hook .= '{';
|
||||
$open = true;
|
||||
// Keep adding to hook until we find a comma or colon
|
||||
while ( 1 ) {
|
||||
$loop ++;
|
||||
$next_hook = trim( trim( is_string( $tokens[ $index + $loop ] ) ? $tokens[ $index + $loop ] : $tokens[ $index + $loop ][1], '"' ), "'" );
|
||||
// Keep adding to hook until we find a comma or colon
|
||||
while ( 1 ) {
|
||||
$loop ++;
|
||||
$prev_hook = is_string( $tokens[ $index + $loop - 1 ] ) ? $tokens[ $index + $loop - 1 ] : $tokens[ $index + $loop - 1 ][1];
|
||||
$next_hook = is_string( $tokens[ $index + $loop ] ) ? $tokens[ $index + $loop ] : $tokens[ $index + $loop ][1];
|
||||
|
||||
if ( in_array( $next_hook, array( '.', '{', '}', '"', "'", ' ' ) ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$hook_first = substr( $next_hook, 0, 1 );
|
||||
$hook_last = substr( $next_hook, -1, 1 );
|
||||
|
||||
if ( in_array( $next_hook, array( ',', ';' ) ) ) {
|
||||
if ( $open ) {
|
||||
$hook .= '}';
|
||||
$open = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( '_' === $hook_first ) {
|
||||
$next_hook = '}' . $next_hook;
|
||||
$open = false;
|
||||
}
|
||||
|
||||
if ( '_' === $hook_last ) {
|
||||
$next_hook .= '{';
|
||||
$open = true;
|
||||
}
|
||||
|
||||
$hook .= $next_hook;
|
||||
if ( in_array( $next_hook, array( '.', '{', '}', '"', "'", ' ', ')', '(' ) ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( in_array( $next_hook, array( ',', ';' ) ) ) {
|
||||
break;
|
||||
}
|
||||
|
||||
$hook_first = substr( $next_hook, 0, 1 );
|
||||
$hook_last = substr( $next_hook, -1, 1 );
|
||||
|
||||
if ( '{' === $hook_first || '}' === $hook_last || '$' === $hook_first || ')' === $hook_last || '>' === substr( $prev_hook, -1, 1 ) ) {
|
||||
$next_hook = strtoupper( $next_hook );
|
||||
}
|
||||
|
||||
$next_hook = str_replace( array( '.', '{', '}', '"', "'", ' ', ')', '(' ), '', $next_hook );
|
||||
|
||||
$hook .= $next_hook;
|
||||
}
|
||||
|
||||
if ( isset( self::$custom_hooks_found[ $hook ] ) ) {
|
||||
|
@ -185,14 +186,14 @@ class WC_HookFinder {
|
|||
|
||||
foreach ( self::$custom_hooks_found as $hook => $details ) {
|
||||
if ( ! strstr( $hook, 'woocommerce' ) && ! strstr( $hook, 'product' ) && ! strstr( $hook, 'wc_' ) ) {
|
||||
unset( self::$custom_hooks_found[ $hook ] );
|
||||
//unset( self::$custom_hooks_found[ $hook ] );
|
||||
}
|
||||
}
|
||||
|
||||
ksort( self::$custom_hooks_found );
|
||||
|
||||
if ( ! empty( self::$custom_hooks_found ) ) {
|
||||
echo '<div class="panel panel-default"><div class="panel-heading"><h2>' . $heading . '</h2></div>';
|
||||
echo '<div class="panel panel-default"><div class="panel-heading"><h2 id="hooks-' . str_replace( ' ', '-', strtolower( $heading ) ) . '">' . $heading . '</h2></div>';
|
||||
|
||||
echo '<table class="summary table table-bordered table-striped"><thead><tr><th>Hook</th><th>Type</th><th>File(s)</th></tr></thead><tbody>';
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
div.woocommerce-message{overflow:hidden;position:relative;border-right-color:#cc99c2!important}div.woocommerce-message p{max-width:700px}.woocommerce-message .button-primary,p.woocommerce-actions .button-primary{background:#bb77ae;border-color:#a36597;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;color:#fff;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597}.woocommerce-message .button-primary:active,.woocommerce-message .button-primary:focus,.woocommerce-message .button-primary:hover,p.woocommerce-actions .button-primary:active,p.woocommerce-actions .button-primary:focus,p.woocommerce-actions .button-primary:hover{background:#a36597;border-color:#a36597;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.woocommerce-message a.woocommerce-message-close,p.woocommerce-actions a.woocommerce-message-close{position:absolute;top:0;left:0;padding:10px 21px 10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none}.woocommerce-message a.woocommerce-message-close::before,p.woocommerce-actions a.woocommerce-message-close::before{position:absolute;top:8px;right:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.woocommerce-message .button-primary,.woocommerce-message .button-secondary,p.woocommerce-actions .button-primary,p.woocommerce-actions .button-secondary{text-decoration:none!important}.woocommerce-message .twitter-share-button,p.woocommerce-actions .twitter-share-button{margin-top:-3px;margin-right:3px;vertical-align:middle}.woocommerce-about-text,p.woocommerce-actions{margin-bottom:1em!important}div.woocommerce-legacy-shipping-notice,div.woocommerce-no-shipping-methods-notice{overflow:hidden;padding:1px 12px}div.woocommerce-legacy-shipping-notice p,div.woocommerce-no-shipping-methods-notice p{position:relative;z-index:1;max-width:700px;line-height:1.5em;margin:12px 0}div.woocommerce-legacy-shipping-notice p.main,div.woocommerce-no-shipping-methods-notice p.main{font-size:1.1em}div.woocommerce-legacy-shipping-notice::before,div.woocommerce-no-shipping-methods-notice::before{content:'\e01b';font-family:WooCommerce;text-align:center;line-height:1;color:#f7f1f6;display:block;width:1em;font-size:20em;top:36px;left:12px;position:absolute}
|
||||
div.woocommerce-message{overflow:hidden;position:relative;border-right-color:#cc99c2!important}div.woocommerce-message p{max-width:700px}div.woocommerce-message p:last-child{max-width:inherit}.woocommerce-message .button-primary,p.woocommerce-actions .button-primary{background:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;color:#fff;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597}.woocommerce-message .button-primary:active,.woocommerce-message .button-primary:focus,.woocommerce-message .button-primary:hover,p.woocommerce-actions .button-primary:active,p.woocommerce-actions .button-primary:focus,p.woocommerce-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.woocommerce-message a.woocommerce-message-close,p.woocommerce-actions a.woocommerce-message-close{position:static;float:left;top:0;left:0;padding:0 28px 10px 15px;margin-top:-10px;font-size:13px;line-height:1.23076923;text-decoration:none}.woocommerce-message a.woocommerce-message-close::before,p.woocommerce-actions a.woocommerce-message-close::before{position:relative;top:18px;right:-20px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.woocommerce-message .button-primary,.woocommerce-message .button-secondary,p.woocommerce-actions .button-primary,p.woocommerce-actions .button-secondary{text-decoration:none!important}.woocommerce-message .twitter-share-button,p.woocommerce-actions .twitter-share-button{margin-top:-3px;margin-right:3px;vertical-align:middle}.woocommerce-about-text,p.woocommerce-actions{margin-bottom:1em!important}div.woocommerce-legacy-shipping-notice,div.woocommerce-no-shipping-methods-notice{overflow:hidden;padding:1px 12px}div.woocommerce-legacy-shipping-notice p,div.woocommerce-no-shipping-methods-notice p{position:relative;z-index:1;max-width:700px;line-height:1.5em;margin:12px 0}div.woocommerce-legacy-shipping-notice p.main,div.woocommerce-no-shipping-methods-notice p.main{font-size:1.1em}div.woocommerce-legacy-shipping-notice::before,div.woocommerce-no-shipping-methods-notice::before{content:'\e01b';font-family:WooCommerce;text-align:center;line-height:1;color:#f7f1f6;display:block;width:1em;font-size:20em;top:36px;left:12px;position:absolute}
|
|
@ -1 +1 @@
|
|||
div.woocommerce-message{overflow:hidden;position:relative;border-left-color:#cc99c2!important}div.woocommerce-message p{max-width:700px}.woocommerce-message .button-primary,p.woocommerce-actions .button-primary{background:#bb77ae;border-color:#a36597;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;color:#fff;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.woocommerce-message .button-primary:active,.woocommerce-message .button-primary:focus,.woocommerce-message .button-primary:hover,p.woocommerce-actions .button-primary:active,p.woocommerce-actions .button-primary:focus,p.woocommerce-actions .button-primary:hover{background:#a36597;border-color:#a36597;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.woocommerce-message a.woocommerce-message-close,p.woocommerce-actions a.woocommerce-message-close{position:absolute;top:0;right:0;padding:10px 15px 10px 21px;font-size:13px;line-height:1.23076923;text-decoration:none}.woocommerce-message a.woocommerce-message-close::before,p.woocommerce-actions a.woocommerce-message-close::before{position:absolute;top:8px;left:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.woocommerce-message .button-primary,.woocommerce-message .button-secondary,p.woocommerce-actions .button-primary,p.woocommerce-actions .button-secondary{text-decoration:none!important}.woocommerce-message .twitter-share-button,p.woocommerce-actions .twitter-share-button{margin-top:-3px;margin-left:3px;vertical-align:middle}.woocommerce-about-text,p.woocommerce-actions{margin-bottom:1em!important}div.woocommerce-legacy-shipping-notice,div.woocommerce-no-shipping-methods-notice{overflow:hidden;padding:1px 12px}div.woocommerce-legacy-shipping-notice p,div.woocommerce-no-shipping-methods-notice p{position:relative;z-index:1;max-width:700px;line-height:1.5em;margin:12px 0}div.woocommerce-legacy-shipping-notice p.main,div.woocommerce-no-shipping-methods-notice p.main{font-size:1.1em}div.woocommerce-legacy-shipping-notice::before,div.woocommerce-no-shipping-methods-notice::before{content:'\e01b';font-family:WooCommerce;text-align:center;line-height:1;color:#f7f1f6;display:block;width:1em;font-size:20em;top:36px;right:12px;position:absolute}
|
||||
div.woocommerce-message{overflow:hidden;position:relative;border-left-color:#cc99c2!important}div.woocommerce-message p{max-width:700px}div.woocommerce-message p:last-child{max-width:inherit}.woocommerce-message .button-primary,p.woocommerce-actions .button-primary{background:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;color:#fff;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.woocommerce-message .button-primary:active,.woocommerce-message .button-primary:focus,.woocommerce-message .button-primary:hover,p.woocommerce-actions .button-primary:active,p.woocommerce-actions .button-primary:focus,p.woocommerce-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.woocommerce-message a.woocommerce-message-close,p.woocommerce-actions a.woocommerce-message-close{position:static;float:right;top:0;right:0;padding:0 15px 10px 28px;margin-top:-10px;font-size:13px;line-height:1.23076923;text-decoration:none}.woocommerce-message a.woocommerce-message-close::before,p.woocommerce-actions a.woocommerce-message-close::before{position:relative;top:18px;left:-20px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.woocommerce-message .button-primary,.woocommerce-message .button-secondary,p.woocommerce-actions .button-primary,p.woocommerce-actions .button-secondary{text-decoration:none!important}.woocommerce-message .twitter-share-button,p.woocommerce-actions .twitter-share-button{margin-top:-3px;margin-left:3px;vertical-align:middle}.woocommerce-about-text,p.woocommerce-actions{margin-bottom:1em!important}div.woocommerce-legacy-shipping-notice,div.woocommerce-no-shipping-methods-notice{overflow:hidden;padding:1px 12px}div.woocommerce-legacy-shipping-notice p,div.woocommerce-no-shipping-methods-notice p{position:relative;z-index:1;max-width:700px;line-height:1.5em;margin:12px 0}div.woocommerce-legacy-shipping-notice p.main,div.woocommerce-no-shipping-methods-notice p.main{font-size:1.1em}div.woocommerce-legacy-shipping-notice::before,div.woocommerce-no-shipping-methods-notice::before{content:'\e01b';font-family:WooCommerce;text-align:center;line-height:1;color:#f7f1f6;display:block;width:1em;font-size:20em;top:36px;right:12px;position:absolute}
|
|
@ -13,6 +13,9 @@ div.woocommerce-message {
|
|||
p {
|
||||
max-width: 700px;
|
||||
}
|
||||
p:last-child {
|
||||
max-width: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
p.woocommerce-actions,
|
||||
|
@ -32,17 +35,19 @@ p.woocommerce-actions,
|
|||
}
|
||||
|
||||
a.woocommerce-message-close {
|
||||
position: absolute;
|
||||
position: static;
|
||||
float: right;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 10px 15px 10px 21px;
|
||||
padding: 0px 15px 10px 28px;
|
||||
margin-top: -10px;
|
||||
font-size: 13px;
|
||||
line-height: 1.23076923;
|
||||
text-decoration: none;
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 0;
|
||||
position: relative;
|
||||
top: 18px;
|
||||
left: -20px;
|
||||
transition: all 0.1s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
|
12606
assets/css/admin.scss
|
@ -1 +1 @@
|
|||
body{background:#f1f1f1;-webkit-box-shadow:none;box-shadow:none;margin:100px auto 24px;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:50%}.wc-auth-content{background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13);overflow:hidden;padding:24px 24px 0;zoom:1}.wc-auth-content h1,.wc-auth-content h2,.wc-auth-content h3,.wc-auth-content table{border:0;clear:none;color:#666;margin:0 0 24px;padding:0}.wc-auth-content p,.wc-auth-content ul{color:#666;font-size:1em;line-height:1.75em;margin:0 0 24px}.wc-auth-content p{padding:0}.wc-auth-content a{color:#a16696}.wc-auth-content a:focus,.wc-auth-content a:hover{color:#111}.wc-auth-content .wc-auth-login label{color:#999;display:block;margin-bottom:.5em}.wc-auth-content .wc-auth-login input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1.3em;padding:.5em;width:100%}.wc-auth-content .wc-auth-login .wc-auth-actions{padding:0}.wc-auth-content .wc-auth-login .wc-auth-actions .wc-auth-login-button{float:none;width:100%}.wc-auth-permissions{list-style:disc inside;padding:0}.wc-auth-permissions li{font-size:1em}.wc-auth-logged-in-as{background:#f5f5f5;border-bottom:2px solid #eee;line-height:70px;margin:0 0 24px;padding:0 0 0 1em}.wc-auth-logged-in-as p{margin:0;line-height:70px}.wc-auth-logged-in-as img{float:right;height:70px;margin:0 0 0 1em}.wc-auth-logged-in-as .wc-auth-logout{float:left}.wc-auth .wc-auth-actions{overflow:hidden;padding-right:24px}.wc-auth .wc-auth-actions .button{background:#f7f7f7;border-bottom-width:2px;border:1px solid #d7d7d7;-webkit-box-sizing:border-box;box-sizing:border-box;color:#777;float:left;font-size:1.25em;height:auto;line-height:1em;padding:1em 2em;text-align:center;width:50%}.wc-auth .wc-auth-actions .button:focus,.wc-auth .wc-auth-actions .button:hover{background:#fcfcfc}.wc-auth .wc-auth-actions .button-primary{background:#ad6ea1;border-color:#a16696;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);color:#fff;float:left;opacity:1;text-shadow:0 -1px 1px #8a4f7f,-1px 0 1px #8a4f7f,0 1px 1px #8a4f7f,1px 0 1px #8a4f7f}.wc-auth .wc-auth-actions .button-primary:focus,.wc-auth .wc-auth-actions .button-primary:hover{background:#b472a8;color:#fff}.wc-auth .wc-auth-actions .wc-auth-approve{float:left}.wc-auth .wc-auth-actions .wc-auth-deny{float:right;margin-right:-24px}
|
||||
body{background:#f1f1f1;box-shadow:none;margin:100px auto 24px;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:50%}.wc-auth-content{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13);overflow:hidden;padding:24px 24px 0;zoom:1}.wc-auth-content h1,.wc-auth-content h2,.wc-auth-content h3,.wc-auth-content table{border:0;clear:none;color:#666;margin:0 0 24px;padding:0}.wc-auth-content p,.wc-auth-content ul{color:#666;font-size:1em;line-height:1.75em;margin:0 0 24px}.wc-auth-content p{padding:0}.wc-auth-content a{color:#a16696}.wc-auth-content a:focus,.wc-auth-content a:hover{color:#111}.wc-auth-content .wc-auth-login label{color:#999;display:block;margin-bottom:.5em}.wc-auth-content .wc-auth-login input{box-sizing:border-box;font-size:1.3em;padding:.5em;width:100%}.wc-auth-content .wc-auth-login .wc-auth-actions{padding:0}.wc-auth-content .wc-auth-login .wc-auth-actions .wc-auth-login-button{float:none;width:100%}.wc-auth-permissions{list-style:disc inside;padding:0}.wc-auth-permissions li{font-size:1em}.wc-auth-logged-in-as{background:#f5f5f5;border-bottom:2px solid #eee;line-height:70px;margin:0 0 24px;padding:0 0 0 1em}.wc-auth-logged-in-as p{margin:0;line-height:70px}.wc-auth-logged-in-as img{float:right;height:70px;margin:0 0 0 1em}.wc-auth-logged-in-as .wc-auth-logout{float:left}.wc-auth .wc-auth-actions{overflow:hidden;padding-right:24px}.wc-auth .wc-auth-actions .button{background:#f7f7f7;border-bottom-width:2px;border:1px solid #d7d7d7;box-sizing:border-box;color:#777;float:left;font-size:1.25em;height:auto;line-height:1em;padding:1em 2em;text-align:center;width:50%}.wc-auth .wc-auth-actions .button:focus,.wc-auth .wc-auth-actions .button:hover{background:#fcfcfc}.wc-auth .wc-auth-actions .button-primary{background:#ad6ea1;border-color:#a16696;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);color:#fff;float:left;opacity:1;text-shadow:0 -1px 1px #8a4f7f,-1px 0 1px #8a4f7f,0 1px 1px #8a4f7f,1px 0 1px #8a4f7f}.wc-auth .wc-auth-actions .button-primary:focus,.wc-auth .wc-auth-actions .button-primary:hover{background:#b472a8;color:#fff}.wc-auth .wc-auth-actions .wc-auth-approve{float:left}.wc-auth .wc-auth-actions .wc-auth-deny{float:right;margin-right:-24px}
|
|
@ -1 +1 @@
|
|||
body{background:#f1f1f1;-webkit-box-shadow:none;box-shadow:none;margin:100px auto 24px;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:50%}.wc-auth-content{background:#fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13);overflow:hidden;padding:24px 24px 0;zoom:1}.wc-auth-content h1,.wc-auth-content h2,.wc-auth-content h3,.wc-auth-content table{border:0;clear:none;color:#666;margin:0 0 24px;padding:0}.wc-auth-content p,.wc-auth-content ul{color:#666;font-size:1em;line-height:1.75em;margin:0 0 24px}.wc-auth-content p{padding:0}.wc-auth-content a{color:#a16696}.wc-auth-content a:focus,.wc-auth-content a:hover{color:#111}.wc-auth-content .wc-auth-login label{color:#999;display:block;margin-bottom:.5em}.wc-auth-content .wc-auth-login input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1.3em;padding:.5em;width:100%}.wc-auth-content .wc-auth-login .wc-auth-actions{padding:0}.wc-auth-content .wc-auth-login .wc-auth-actions .wc-auth-login-button{float:none;width:100%}.wc-auth-permissions{list-style:disc inside;padding:0}.wc-auth-permissions li{font-size:1em}.wc-auth-logged-in-as{background:#f5f5f5;border-bottom:2px solid #eee;line-height:70px;margin:0 0 24px;padding:0 1em 0 0}.wc-auth-logged-in-as p{margin:0;line-height:70px}.wc-auth-logged-in-as img{float:left;height:70px;margin:0 1em 0 0}.wc-auth-logged-in-as .wc-auth-logout{float:right}.wc-auth .wc-auth-actions{overflow:hidden;padding-left:24px}.wc-auth .wc-auth-actions .button{background:#f7f7f7;border-bottom-width:2px;border:1px solid #d7d7d7;-webkit-box-sizing:border-box;box-sizing:border-box;color:#777;float:right;font-size:1.25em;height:auto;line-height:1em;padding:1em 2em;text-align:center;width:50%}.wc-auth .wc-auth-actions .button:focus,.wc-auth .wc-auth-actions .button:hover{background:#fcfcfc}.wc-auth .wc-auth-actions .button-primary{background:#ad6ea1;border-color:#a16696;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);color:#fff;float:right;opacity:1;text-shadow:0 -1px 1px #8a4f7f,1px 0 1px #8a4f7f,0 1px 1px #8a4f7f,-1px 0 1px #8a4f7f}.wc-auth .wc-auth-actions .button-primary:focus,.wc-auth .wc-auth-actions .button-primary:hover{background:#b472a8;color:#fff}.wc-auth .wc-auth-actions .wc-auth-approve{float:right}.wc-auth .wc-auth-actions .wc-auth-deny{float:left;margin-left:-24px}
|
||||
body{background:#f1f1f1;box-shadow:none;margin:100px auto 24px;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:50%}.wc-auth-content{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13);overflow:hidden;padding:24px 24px 0;zoom:1}.wc-auth-content h1,.wc-auth-content h2,.wc-auth-content h3,.wc-auth-content table{border:0;clear:none;color:#666;margin:0 0 24px;padding:0}.wc-auth-content p,.wc-auth-content ul{color:#666;font-size:1em;line-height:1.75em;margin:0 0 24px}.wc-auth-content p{padding:0}.wc-auth-content a{color:#a16696}.wc-auth-content a:focus,.wc-auth-content a:hover{color:#111}.wc-auth-content .wc-auth-login label{color:#999;display:block;margin-bottom:.5em}.wc-auth-content .wc-auth-login input{box-sizing:border-box;font-size:1.3em;padding:.5em;width:100%}.wc-auth-content .wc-auth-login .wc-auth-actions{padding:0}.wc-auth-content .wc-auth-login .wc-auth-actions .wc-auth-login-button{float:none;width:100%}.wc-auth-permissions{list-style:disc inside;padding:0}.wc-auth-permissions li{font-size:1em}.wc-auth-logged-in-as{background:#f5f5f5;border-bottom:2px solid #eee;line-height:70px;margin:0 0 24px;padding:0 1em 0 0}.wc-auth-logged-in-as p{margin:0;line-height:70px}.wc-auth-logged-in-as img{float:left;height:70px;margin:0 1em 0 0}.wc-auth-logged-in-as .wc-auth-logout{float:right}.wc-auth .wc-auth-actions{overflow:hidden;padding-left:24px}.wc-auth .wc-auth-actions .button{background:#f7f7f7;border-bottom-width:2px;border:1px solid #d7d7d7;box-sizing:border-box;color:#777;float:right;font-size:1.25em;height:auto;line-height:1em;padding:1em 2em;text-align:center;width:50%}.wc-auth .wc-auth-actions .button:focus,.wc-auth .wc-auth-actions .button:hover{background:#fcfcfc}.wc-auth .wc-auth-actions .button-primary{background:#ad6ea1;border-color:#a16696;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 0 rgba(0,0,0,.15);color:#fff;float:right;opacity:1;text-shadow:0 -1px 1px #8a4f7f,1px 0 1px #8a4f7f,0 1px 1px #8a4f7f,-1px 0 1px #8a4f7f}.wc-auth .wc-auth-actions .button-primary:focus,.wc-auth .wc-auth-actions .button-primary:hover{background:#b472a8;color:#fff}.wc-auth .wc-auth-actions .wc-auth-approve{float:right}.wc-auth .wc-auth-actions .wc-auth-deny{float:left;margin-left:-24px}
|
|
@ -1 +1 @@
|
|||
@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:25%;padding:0 1em;text-align:center;float:right;font-size:.8em;border-right:1px solid #fff;border-left:1px solid #ececec;-webkit-box-sizing:border-box;box-sizing:border-box}ul.woocommerce_stats li:first-child{border-right:0}ul.woocommerce_stats li:last-child{border-left:0}ul.woocommerce_stats strong{font-family:Georgia,'Times New Roman','Bitstream Charter',Times,serif;font-size:4em;line-height:1.2em;font-weight:400;text-align:center;display:block}#woocommerce_dashboard_status .inside{padding:0;margin:0}#woocommerce_dashboard_status .wc_status_list{overflow:hidden;margin:0}#woocommerce_dashboard_status .wc_status_list li{width:50%;float:right;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;border-top:1px solid #ececec;color:#aaa}#woocommerce_dashboard_status .wc_status_list li a{display:block;color:#aaa;padding:9px 12px;-webkit-transition:all ease .5s;transition:all ease .5s;position:relative;font-size:12px}#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline{width:4em;height:2em;display:block;float:left;position:absolute;left:0;top:50%;margin-left:12px;margin-top:-1.25em}#woocommerce_dashboard_status .wc_status_list li a strong{font-size:18px;line-height:1.2em;font-weight:400;display:block;color:#21759b}#woocommerce_dashboard_status .wc_status_list li a:hover{color:#2ea2cc}#woocommerce_dashboard_status .wc_status_list li a:hover strong,#woocommerce_dashboard_status .wc_status_list li a:hover::before{color:#2ea2cc!important}#woocommerce_dashboard_status .wc_status_list li a::before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";font-size:2em;position:relative;width:auto;line-height:1.2em;color:#464646;float:right;margin-left:12px;margin-bottom:12px}#woocommerce_dashboard_status .wc_status_list li:first-child{border-top:0}#woocommerce_dashboard_status .wc_status_list li.sales-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.sales-this-month a::before{font-family:Dashicons;content:'\f185'}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a::before{content:'\e006'}#woocommerce_dashboard_status .wc_status_list li.processing-orders{border-left:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.processing-orders a::before{content:'\e011';color:#7ad03a}#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a::before{content:'\e033';color:#999}#woocommerce_dashboard_status .wc_status_list li.low-in-stock{border-left:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.low-in-stock a::before{content:'\e016';color:#ffba00}#woocommerce_dashboard_status .wc_status_list li.out-of-stock a::before{content:'\e013';color:#a00}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-.2em 0 0 0;font-weight:400;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:right;margin:0 0 5px 10px}#woocommerce_dashboard_recent_reviews .star-rating{float:left;overflow:hidden;position:relative;height:1.5em;line-height:1.5;margin-right:.5em;width:5.4em;font-family:WooCommerce!important}#woocommerce_dashboard_recent_reviews .star-rating::before{content:'\e021\e021\e021\e021\e021';color:#b3b2b2;float:right;top:0;right:0;position:absolute;letter-spacing:.1em}#woocommerce_dashboard_recent_reviews .star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}#woocommerce_dashboard_recent_reviews .star-rating span::before{content:'\e020\e020\e020\e020\e020';top:0;position:absolute;right:0;letter-spacing:.1em;color:#9c5d90}#dash-right-now li.product-count a::before{font-family:WooCommerce;content:'\e01d'}
|
||||
@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:25%;padding:0 1em;text-align:center;float:right;font-size:.8em;border-right:1px solid #fff;border-left:1px solid #ececec;box-sizing:border-box}ul.woocommerce_stats li:first-child{border-right:0}ul.woocommerce_stats li:last-child{border-left:0}ul.woocommerce_stats strong{font-family:Georgia,'Times New Roman','Bitstream Charter',Times,serif;font-size:4em;line-height:1.2em;font-weight:400;text-align:center;display:block}#woocommerce_dashboard_status .inside{padding:0;margin:0}#woocommerce_dashboard_status .best-seller-this-month a strong{margin-left:48px}#woocommerce_dashboard_status .wc_status_list{overflow:hidden;margin:0}#woocommerce_dashboard_status .wc_status_list li{width:50%;float:right;padding:0;box-sizing:border-box;margin:0;border-top:1px solid #ececec;color:#aaa}#woocommerce_dashboard_status .wc_status_list li a{display:block;color:#aaa;padding:9px 12px;-webkit-transition:all ease .5s;transition:all ease .5s;position:relative;font-size:12px}#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline{width:4em;height:2em;display:block;float:left;position:absolute;left:0;top:50%;margin-left:12px;margin-top:-1.25em}#woocommerce_dashboard_status .wc_status_list li a strong{font-size:18px;line-height:1.2em;font-weight:400;display:block;color:#21759b}#woocommerce_dashboard_status .wc_status_list li a:hover{color:#2ea2cc}#woocommerce_dashboard_status .wc_status_list li a:hover strong,#woocommerce_dashboard_status .wc_status_list li a:hover::before{color:#2ea2cc!important}#woocommerce_dashboard_status .wc_status_list li a::before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";font-size:2em;position:relative;width:auto;line-height:1.2em;color:#464646;float:right;margin-left:12px;margin-bottom:12px}#woocommerce_dashboard_status .wc_status_list li:first-child{border-top:0}#woocommerce_dashboard_status .wc_status_list li.sales-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.sales-this-month a::before{font-family:Dashicons;content:'\f185'}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a::before{content:'\e006'}#woocommerce_dashboard_status .wc_status_list li.processing-orders{border-left:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.processing-orders a::before{content:'\e011';color:#7ad03a}#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a::before{content:'\e033';color:#999}#woocommerce_dashboard_status .wc_status_list li.low-in-stock{border-left:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.low-in-stock a::before{content:'\e016';color:#ffba00}#woocommerce_dashboard_status .wc_status_list li.out-of-stock a::before{content:'\e013';color:#a00}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-.2em 0 0 0;font-weight:400;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:right;margin:0 0 5px 10px}#woocommerce_dashboard_recent_reviews .star-rating{float:left;overflow:hidden;position:relative;height:1.5em;line-height:1.5;margin-right:.5em;width:5.4em;font-family:WooCommerce!important}#woocommerce_dashboard_recent_reviews .star-rating::before{content:'\e021\e021\e021\e021\e021';color:#b3b2b2;float:right;top:0;right:0;position:absolute;letter-spacing:.1em}#woocommerce_dashboard_recent_reviews .star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}#woocommerce_dashboard_recent_reviews .star-rating span::before{content:'\e020\e020\e020\e020\e020';top:0;position:absolute;right:0;letter-spacing:.1em;color:#9c5d90}#dash-right-now li.product-count a::before{font-family:WooCommerce;content:'\e01d'}
|
|
@ -1 +1 @@
|
|||
@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:25%;padding:0 1em;text-align:center;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;-webkit-box-sizing:border-box;box-sizing:border-box}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,'Times New Roman','Bitstream Charter',Times,serif;font-size:4em;line-height:1.2em;font-weight:400;text-align:center;display:block}#woocommerce_dashboard_status .inside{padding:0;margin:0}#woocommerce_dashboard_status .wc_status_list{overflow:hidden;margin:0}#woocommerce_dashboard_status .wc_status_list li{width:50%;float:left;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;border-top:1px solid #ececec;color:#aaa}#woocommerce_dashboard_status .wc_status_list li a{display:block;color:#aaa;padding:9px 12px;-webkit-transition:all ease .5s;transition:all ease .5s;position:relative;font-size:12px}#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline{width:4em;height:2em;display:block;float:right;position:absolute;right:0;top:50%;margin-right:12px;margin-top:-1.25em}#woocommerce_dashboard_status .wc_status_list li a strong{font-size:18px;line-height:1.2em;font-weight:400;display:block;color:#21759b}#woocommerce_dashboard_status .wc_status_list li a:hover{color:#2ea2cc}#woocommerce_dashboard_status .wc_status_list li a:hover strong,#woocommerce_dashboard_status .wc_status_list li a:hover::before{color:#2ea2cc!important}#woocommerce_dashboard_status .wc_status_list li a::before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";font-size:2em;position:relative;width:auto;line-height:1.2em;color:#464646;float:left;margin-right:12px;margin-bottom:12px}#woocommerce_dashboard_status .wc_status_list li:first-child{border-top:0}#woocommerce_dashboard_status .wc_status_list li.sales-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.sales-this-month a::before{font-family:Dashicons;content:'\f185'}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a::before{content:'\e006'}#woocommerce_dashboard_status .wc_status_list li.processing-orders{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.processing-orders a::before{content:'\e011';color:#7ad03a}#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a::before{content:'\e033';color:#999}#woocommerce_dashboard_status .wc_status_list li.low-in-stock{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.low-in-stock a::before{content:'\e016';color:#ffba00}#woocommerce_dashboard_status .wc_status_list li.out-of-stock a::before{content:'\e013';color:#a00}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-.2em 0 0 0;font-weight:400;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:left;margin:0 10px 5px 0}#woocommerce_dashboard_recent_reviews .star-rating{float:right;overflow:hidden;position:relative;height:1.5em;line-height:1.5;margin-left:.5em;width:5.4em;font-family:WooCommerce!important}#woocommerce_dashboard_recent_reviews .star-rating::before{content:'\e021\e021\e021\e021\e021';color:#b3b2b2;float:left;top:0;left:0;position:absolute;letter-spacing:.1em}#woocommerce_dashboard_recent_reviews .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}#woocommerce_dashboard_recent_reviews .star-rating span::before{content:'\e020\e020\e020\e020\e020';top:0;position:absolute;left:0;letter-spacing:.1em;color:#9c5d90}#dash-right-now li.product-count a::before{font-family:WooCommerce;content:'\e01d'}
|
||||
@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:25%;padding:0 1em;text-align:center;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;box-sizing:border-box}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,'Times New Roman','Bitstream Charter',Times,serif;font-size:4em;line-height:1.2em;font-weight:400;text-align:center;display:block}#woocommerce_dashboard_status .inside{padding:0;margin:0}#woocommerce_dashboard_status .best-seller-this-month a strong{margin-right:48px}#woocommerce_dashboard_status .wc_status_list{overflow:hidden;margin:0}#woocommerce_dashboard_status .wc_status_list li{width:50%;float:left;padding:0;box-sizing:border-box;margin:0;border-top:1px solid #ececec;color:#aaa}#woocommerce_dashboard_status .wc_status_list li a{display:block;color:#aaa;padding:9px 12px;-webkit-transition:all ease .5s;transition:all ease .5s;position:relative;font-size:12px}#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline{width:4em;height:2em;display:block;float:right;position:absolute;right:0;top:50%;margin-right:12px;margin-top:-1.25em}#woocommerce_dashboard_status .wc_status_list li a strong{font-size:18px;line-height:1.2em;font-weight:400;display:block;color:#21759b}#woocommerce_dashboard_status .wc_status_list li a:hover{color:#2ea2cc}#woocommerce_dashboard_status .wc_status_list li a:hover strong,#woocommerce_dashboard_status .wc_status_list li a:hover::before{color:#2ea2cc!important}#woocommerce_dashboard_status .wc_status_list li a::before{font-family:WooCommerce;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";font-size:2em;position:relative;width:auto;line-height:1.2em;color:#464646;float:left;margin-right:12px;margin-bottom:12px}#woocommerce_dashboard_status .wc_status_list li:first-child{border-top:0}#woocommerce_dashboard_status .wc_status_list li.sales-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.sales-this-month a::before{font-family:Dashicons;content:'\f185'}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a::before{content:'\e006'}#woocommerce_dashboard_status .wc_status_list li.processing-orders{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.processing-orders a::before{content:'\e011';color:#7ad03a}#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a::before{content:'\e033';color:#999}#woocommerce_dashboard_status .wc_status_list li.low-in-stock{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.low-in-stock a::before{content:'\e016';color:#ffba00}#woocommerce_dashboard_status .wc_status_list li.out-of-stock a::before{content:'\e013';color:#a00}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-.2em 0 0 0;font-weight:400;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:left;margin:0 10px 5px 0}#woocommerce_dashboard_recent_reviews .star-rating{float:right;overflow:hidden;position:relative;height:1.5em;line-height:1.5;margin-left:.5em;width:5.4em;font-family:WooCommerce!important}#woocommerce_dashboard_recent_reviews .star-rating::before{content:'\e021\e021\e021\e021\e021';color:#b3b2b2;float:left;top:0;left:0;position:absolute;letter-spacing:.1em}#woocommerce_dashboard_recent_reviews .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}#woocommerce_dashboard_recent_reviews .star-rating span::before{content:'\e020\e020\e020\e020\e020';top:0;position:absolute;left:0;letter-spacing:.1em;color:#9c5d90}#dash-right-now li.product-count a::before{font-family:WooCommerce;content:'\e01d'}
|
|
@ -52,6 +52,14 @@ ul.woocommerce_stats {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.best-seller-this-month {
|
||||
a {
|
||||
strong {
|
||||
margin-right: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wc_status_list {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
|
|
After Width: | Height: | Size: 98 B |
After Width: | Height: | Size: 97 B |
After Width: | Height: | Size: 113 B |
After Width: | Height: | Size: 82 B |
After Width: | Height: | Size: 89 B |
After Width: | Height: | Size: 115 B |
After Width: | Height: | Size: 113 B |
After Width: | Height: | Size: 86 B |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1 @@
|
|||
#woocommerce_network_orders .inside{margin:0;padding:0}#woocommerce_network_orders .woocommerce-network-order-table,#woocommerce_network_orders .woocommerce-network-order-table-loading,#woocommerce_network_orders .woocommerce-network-orders-no-orders{width:100%;display:none}#woocommerce_network_orders .woocommerce-network-order-table-loading.is-active,#woocommerce_network_orders .woocommerce-network-order-table.is-active,#woocommerce_network_orders .woocommerce-network-orders-no-orders.is-active{display:block}#woocommerce_network_orders .woocommerce-network-order-table-loading p,#woocommerce_network_orders .woocommerce-network-orders-no-orders p{text-align:center}#woocommerce_network_orders .woocommerce-network-order-table{margin-top:0}#woocommerce_network_orders .woocommerce-network-order-table.is-active{display:table}#woocommerce_network_orders .woocommerce-network-order-table thead td{padding:.5em 1em}#woocommerce_network_orders .spinner{margin-top:0;float:none}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td,#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody th{border-top:1px solid #f5f5f5}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td{vertical-align:middle;padding:1em}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status{display:-webkit-inline-box;display:inline-flex;padding:0 1em;line-height:2.5em;color:#777;background:#e5e5e5;border-radius:4px;border-bottom:1px solid rgba(0,0,0,.05);margin:-.5em 0;cursor:inherit!important}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-completed{background:#c8d7e1;color:#2e4453}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-on-hold{background:#f8dda7;color:#94660c}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-failed{background:#eba3a3;color:#761919}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-processing{background:#c6e1c6;color:#5b841b}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-trash{background:#eba3a3;color:#761919}
|
|
@ -0,0 +1 @@
|
|||
#woocommerce_network_orders .inside{margin:0;padding:0}#woocommerce_network_orders .woocommerce-network-order-table,#woocommerce_network_orders .woocommerce-network-order-table-loading,#woocommerce_network_orders .woocommerce-network-orders-no-orders{width:100%;display:none}#woocommerce_network_orders .woocommerce-network-order-table-loading.is-active,#woocommerce_network_orders .woocommerce-network-order-table.is-active,#woocommerce_network_orders .woocommerce-network-orders-no-orders.is-active{display:block}#woocommerce_network_orders .woocommerce-network-order-table-loading p,#woocommerce_network_orders .woocommerce-network-orders-no-orders p{text-align:center}#woocommerce_network_orders .woocommerce-network-order-table{margin-top:0}#woocommerce_network_orders .woocommerce-network-order-table.is-active{display:table}#woocommerce_network_orders .woocommerce-network-order-table thead td{padding:.5em 1em}#woocommerce_network_orders .spinner{margin-top:0;float:none}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td,#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody th{border-top:1px solid #f5f5f5}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td{vertical-align:middle;padding:1em}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status{display:-webkit-inline-box;display:inline-flex;padding:0 1em;line-height:2.5em;color:#777;background:#e5e5e5;border-radius:4px;border-bottom:1px solid rgba(0,0,0,.05);margin:-.5em 0;cursor:inherit!important}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-completed{background:#c8d7e1;color:#2e4453}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-on-hold{background:#f8dda7;color:#94660c}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-failed{background:#eba3a3;color:#761919}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-processing{background:#c6e1c6;color:#5b841b}#woocommerce_network_orders .post-type-shop_order .woocommerce-network-order-table tbody td .order-status.status-trash{background:#eba3a3;color:#761919}
|
|
@ -0,0 +1,92 @@
|
|||
#woocommerce_network_orders {
|
||||
.inside {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.woocommerce-network-orders-no-orders,
|
||||
.woocommerce-network-order-table-loading,
|
||||
.woocommerce-network-order-table {
|
||||
width: 100%;
|
||||
display: none;
|
||||
|
||||
&.is-active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-network-orders-no-orders,
|
||||
.woocommerce-network-order-table-loading {
|
||||
p {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-network-order-table {
|
||||
&.is-active {
|
||||
display: table;
|
||||
}
|
||||
|
||||
margin-top: 0;
|
||||
|
||||
thead td {
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.spinner {
|
||||
margin-top: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.post-type-shop_order {
|
||||
.woocommerce-network-order-table {
|
||||
tbody {
|
||||
th, td {
|
||||
border-top: 1px solid #f5f5f5;
|
||||
}
|
||||
td {
|
||||
vertical-align: middle;
|
||||
padding: 1em;
|
||||
|
||||
.order-status {
|
||||
display: inline-flex;
|
||||
padding: 0px 1em;
|
||||
line-height: 2.5em;
|
||||
color: #777;
|
||||
background: #E5E5E5;
|
||||
border-radius: 4px;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.05);
|
||||
margin: -.5em 0;
|
||||
cursor: inherit !important;
|
||||
|
||||
&.status-completed {
|
||||
background: #C8D7E1;
|
||||
color: #2e4453;
|
||||
}
|
||||
|
||||
&.status-on-hold {
|
||||
background: #f8dda7;
|
||||
color: #94660c;
|
||||
}
|
||||
|
||||
&.status-failed {
|
||||
background: #eba3a3;
|
||||
color: #761919;
|
||||
}
|
||||
|
||||
&.status-processing {
|
||||
background: #C6E1C6;
|
||||
color: #5B841B;
|
||||
}
|
||||
|
||||
&.status-trash {
|
||||
background: #eba3a3;
|
||||
color: #761919;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +1,35 @@
|
|||
/**
|
||||
* WooCommerce Photoswipe styles.
|
||||
* 1. These styles are required to overwrite default theme button styles (Twenty Twelve adds gradients via background-image).
|
||||
* 2. For zooming on mobile.
|
||||
*/
|
||||
.woocommerce img.pswp__img,
|
||||
.woocommerce-page img.pswp__img {
|
||||
max-width: none; /* 2 */
|
||||
}
|
||||
button.pswp__button {
|
||||
box-shadow: none !important;
|
||||
background-image: url('default-skin/default-skin.png') !important;
|
||||
}
|
||||
button.pswp__button,
|
||||
button.pswp__button:hover,
|
||||
button.pswp__button--arrow--left::before,
|
||||
button.pswp__button--arrow--right::before {
|
||||
background-color: transparent !important; /* 1 */
|
||||
}
|
||||
button.pswp__button--arrow--left,
|
||||
button.pswp__button--arrow--right,
|
||||
button.pswp__button--arrow--left:hover,
|
||||
button.pswp__button--arrow--right:hover {
|
||||
background-image: none !important; /* 1 */
|
||||
}
|
||||
button.pswp__button--close:hover {
|
||||
background-position: 0 -44px;
|
||||
}
|
||||
button.pswp__button--zoom:hover {
|
||||
background-position: -88px 0;
|
||||
}
|
||||
|
||||
/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */
|
||||
/*
|
||||
Styles for basic PhotoSwipe functionality (sliding area, open/close transitions)
|
||||
|
|
|
@ -1 +1 @@
|
|||
*{background:0 0!important;color:#000!important;text-shadow:none!important;-webkit-filter:none!important;filter:none!important;-ms-filter:none!important;font-size:9pt!important;opacity:1;-webkit-transition:none!important;transition:none!important}@page{margin:.5cm}#adminmenuback,#adminmenuwrap,#screen-meta-links,#wpadminbar,#wpfooter,.update-nag,.updated,.woo-nav-tab-wrapper,.woocommerce-reports-wide .button,.woocommerce-reports-wide .postbox h3.stats_range .export_csv,.woocommerce-reports-wrap .postbox h3.stats_range .export_csv{display:none}h2 .nav-tab{line-height:14px}.woocommerce-reports-wide .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom,.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom{padding:5px;line-height:14px}#wpcontent{margin-right:0}.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar{margin-right:-130px;width:130px;display:block}.woocommerce-reports-wide .postbox .chart-with-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar{padding-right:130px}.chart-legend{overflow:hidden;zoom:1}.chart-legend li{padding:.25em .5em!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid gray!important}
|
||||
*{background:0 0!important;color:#000!important;text-shadow:none!important;-webkit-filter:none!important;filter:none!important;-ms-filter:none!important;font-size:9pt!important;opacity:1;-webkit-transition:none!important;transition:none!important}@page{margin:.5cm}#adminmenuback,#adminmenuwrap,#screen-meta-links,#wpadminbar,#wpfooter,.update-nag,.updated,.woo-nav-tab-wrapper,.woocommerce-reports-wide .button,.woocommerce-reports-wide .postbox h3.stats_range .export_csv,.woocommerce-reports-wrap .postbox h3.stats_range .export_csv{display:none}h2 .nav-tab{line-height:14px}.woocommerce-reports-wide .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom,.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom{padding:5px;line-height:14px}#wpcontent{margin-right:0}.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar{margin-right:-130px;width:130px;display:block}.woocommerce-reports-wide .postbox .chart-with-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar{padding-right:130px}.chart-legend{overflow:hidden;zoom:1}.chart-legend li{padding:.25em .5em!important;box-shadow:none!important;border-bottom:1px solid gray!important}
|
|
@ -1 +1 @@
|
|||
*{background:0 0!important;color:#000!important;text-shadow:none!important;-webkit-filter:none!important;filter:none!important;-ms-filter:none!important;font-size:9pt!important;opacity:1;-webkit-transition:none!important;transition:none!important}@page{margin:.5cm}#adminmenuback,#adminmenuwrap,#screen-meta-links,#wpadminbar,#wpfooter,.update-nag,.updated,.woo-nav-tab-wrapper,.woocommerce-reports-wide .button,.woocommerce-reports-wide .postbox h3.stats_range .export_csv,.woocommerce-reports-wrap .postbox h3.stats_range .export_csv{display:none}h2 .nav-tab{line-height:14px}.woocommerce-reports-wide .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom,.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom{padding:5px;line-height:14px}#wpcontent{margin-left:0}.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar{margin-left:-130px;width:130px;display:block}.woocommerce-reports-wide .postbox .chart-with-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar{padding-left:130px}.chart-legend{overflow:hidden;zoom:1}.chart-legend li{padding:.25em .5em!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid gray!important}
|
||||
*{background:0 0!important;color:#000!important;text-shadow:none!important;-webkit-filter:none!important;filter:none!important;-ms-filter:none!important;font-size:9pt!important;opacity:1;-webkit-transition:none!important;transition:none!important}@page{margin:.5cm}#adminmenuback,#adminmenuwrap,#screen-meta-links,#wpadminbar,#wpfooter,.update-nag,.updated,.woo-nav-tab-wrapper,.woocommerce-reports-wide .button,.woocommerce-reports-wide .postbox h3.stats_range .export_csv,.woocommerce-reports-wrap .postbox h3.stats_range .export_csv{display:none}h2 .nav-tab{line-height:14px}.woocommerce-reports-wide .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom,.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom{padding:5px;line-height:14px}#wpcontent{margin-left:0}.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar{margin-left:-130px;width:130px;display:block}.woocommerce-reports-wide .postbox .chart-with-sidebar,.woocommerce-reports-wrap .postbox .chart-with-sidebar{padding-left:130px}.chart-legend{overflow:hidden;zoom:1}.chart-legend li{padding:.25em .5em!important;box-shadow:none!important;border-bottom:1px solid gray!important}
|
|
@ -2,6 +2,7 @@
|
|||
* Twenty Seventeen integration styles
|
||||
*/
|
||||
@import 'mixins';
|
||||
@import 'animation';
|
||||
|
||||
/**
|
||||
* Fonts
|
||||
|
@ -63,6 +64,22 @@
|
|||
.loader {
|
||||
@include loader();
|
||||
}
|
||||
|
||||
form .form-row {
|
||||
.required {
|
||||
color: firebrick;
|
||||
text-decoration: none;
|
||||
visibility: hidden; // Only show optional by default.
|
||||
|
||||
&[title] {
|
||||
border: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.optional {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-breadcrumb {
|
||||
|
@ -136,14 +153,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.required {
|
||||
color: firebrick;
|
||||
|
||||
&[title] {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-message,
|
||||
.woocommerce-error,
|
||||
.woocommerce-info {
|
||||
|
@ -220,6 +229,10 @@ ul.products {
|
|||
margin-bottom: .75em;
|
||||
}
|
||||
|
||||
.woocommerce-placeholder {
|
||||
border: 1px solid #F2F2F2;
|
||||
}
|
||||
|
||||
.button {
|
||||
@include link();
|
||||
|
||||
|
@ -393,6 +406,11 @@ table.variations {
|
|||
|
||||
.zoomImg {
|
||||
background-color: #fff;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-gallery__image--placeholder {
|
||||
border: 1px solid #F2F2F2;
|
||||
}
|
||||
|
||||
.woocommerce-product-gallery__image:nth-child(n+2) {
|
||||
|
@ -403,8 +421,8 @@ table.variations {
|
|||
.flex-control-thumbs {
|
||||
li {
|
||||
list-style: none;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
}
|
||||
|
||||
img {
|
||||
|
@ -419,6 +437,7 @@ table.variations {
|
|||
|
||||
img {
|
||||
display: block;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -563,30 +582,6 @@ table.variations {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Photoswipe
|
||||
* 1. These styles are required to overwrite default theme button styles (Twenty Twelve adds gradients via background-image).
|
||||
*/
|
||||
|
||||
button.pswp__button,
|
||||
button.pswp__button:hover,
|
||||
button.pswp__button--arrow--left::before,
|
||||
button.pswp__button--arrow--right::before {
|
||||
background-color: transparent !important; /* 1 */
|
||||
}
|
||||
|
||||
button.pswp__button--close:hover {
|
||||
background-position: 0 -44px;
|
||||
}
|
||||
|
||||
button.pswp__button--zoom:hover {
|
||||
background-position: -88px 0;
|
||||
}
|
||||
|
||||
.pswp img {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
|
@ -826,19 +821,43 @@ button.pswp__button--zoom:hover {
|
|||
}
|
||||
}
|
||||
|
||||
.cart_totals {
|
||||
th, td {
|
||||
vertical-align: top;
|
||||
padding: 1em 0;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
th {
|
||||
padding-right: 1em;
|
||||
}
|
||||
.woocommerce-shipping-destination {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.shipping-calculator-button {
|
||||
margin-top: .5em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.shipping-calculator-form {
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
#shipping_method {
|
||||
list-style: none;
|
||||
margin-top: 1em;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: .5em;
|
||||
|
||||
input {
|
||||
float: left;
|
||||
margin-top: 0.17em;
|
||||
}
|
||||
|
||||
label {
|
||||
line-height: 1.15;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -917,13 +936,77 @@ button.pswp__button--zoom:hover {
|
|||
}
|
||||
}
|
||||
|
||||
.woocommerce-no-js {
|
||||
form.woocommerce-form-login,
|
||||
form.woocommerce-form-coupon {
|
||||
display: block !important;
|
||||
}
|
||||
.woocommerce-form-login-toggle,
|
||||
.woocommerce-form-coupon-toggle,
|
||||
.showcoupon {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-terms-and-conditions {
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
||||
background: rgba(0,0,0,.05);
|
||||
}
|
||||
|
||||
.woocommerce-terms-and-conditions-link {
|
||||
display: inline-block;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
border-style: solid;
|
||||
margin-bottom: 2px;
|
||||
margin-left: .25em;
|
||||
border-width: 6px 6px 0 6px;
|
||||
border-color: #111 transparent transparent transparent;
|
||||
}
|
||||
&.woocommerce-terms-and-conditions-link--open:after {
|
||||
border-width: 0 6px 6px 6px;
|
||||
border-color: transparent transparent #111 transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-checkout {
|
||||
.woocommerce-input-wrapper {
|
||||
.description {
|
||||
background: royalblue;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
padding: 1em;
|
||||
margin: .5em 0 0;
|
||||
clear: both;
|
||||
display: none;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: 50%;
|
||||
top: 0%;
|
||||
margin-top: -4px;
|
||||
transform: translatex(-50%) rotate(180deg);
|
||||
content: "";
|
||||
position: absolute;
|
||||
border-width: 4px 6px 0 6px;
|
||||
border-style: solid;
|
||||
border-color: royalblue transparent transparent transparent;
|
||||
z-index: 100;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select2-choice,
|
||||
.select2-choice:hover {
|
||||
box-shadow: none !important;
|
||||
|
|
|
@ -13,6 +13,16 @@ body {
|
|||
max-width: 30%;
|
||||
}
|
||||
}
|
||||
.wc-setup {
|
||||
text-align: center;
|
||||
|
||||
.select2-container {
|
||||
text-align: left;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.wc-setup-content {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
|
||||
padding: 2em;
|
||||
|
@ -20,6 +30,7 @@ body {
|
|||
background: #fff;
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
text-align: left;
|
||||
|
||||
h1, h2, h3, table {
|
||||
margin: 0 0 20px;
|
||||
|
@ -297,7 +308,6 @@ body {
|
|||
}
|
||||
}
|
||||
.woocommerce-newsletter,
|
||||
.woocommerce-tracker,
|
||||
.updated {
|
||||
padding: 24px 24px 0;
|
||||
margin: 0 0 24px;
|
||||
|
@ -312,9 +322,74 @@ body {
|
|||
margin: 0 0 24px;
|
||||
}
|
||||
}
|
||||
.woocommerce-tracker + .woocommerce-newsletter {
|
||||
margin-top: -24px;
|
||||
border-top: 2px dashed #ddd;
|
||||
.woocommerce-tracker {
|
||||
margin: 24px 0;
|
||||
border: 1px solid #eee;
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
|
||||
p {
|
||||
font-size: 14px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
.checkbox {
|
||||
line-height: 24px;
|
||||
font-weight: 500;
|
||||
font-size: 1em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.checkbox {
|
||||
input[type="checkbox"] {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
}
|
||||
label {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding-left: 28px;
|
||||
&:before,
|
||||
&:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
}
|
||||
&:before {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
left: 0px;
|
||||
top: 3px;
|
||||
border: 1px solid #aaa;
|
||||
background-color: #fff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
&:after {
|
||||
height: 5px;
|
||||
width: 9px;
|
||||
border-left: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
transform: rotate(-45deg);
|
||||
left: 4px;
|
||||
top: 7px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
input[type="checkbox"] + label::after {
|
||||
content: none;
|
||||
}
|
||||
input[type="checkbox"]:checked + label::after {
|
||||
content: "";
|
||||
}
|
||||
input[type="checkbox"]:focus + label::before {
|
||||
outline: rgb(59, 153, 252) auto 5px;
|
||||
}
|
||||
input[type="checkbox"]:checked + label::before {
|
||||
background: #935687;
|
||||
border-color: #935687;
|
||||
}
|
||||
}
|
||||
}
|
||||
.wc-setup-steps {
|
||||
|
@ -326,7 +401,7 @@ body {
|
|||
width:100%;
|
||||
display: inline-flex;
|
||||
li {
|
||||
width: 20%;
|
||||
width: 100%;
|
||||
float: left;
|
||||
padding: 0 0 0.8em;
|
||||
margin: 0;
|
||||
|
@ -334,6 +409,18 @@ body {
|
|||
position: relative;
|
||||
border-bottom: 4px solid #ccc;
|
||||
line-height: 1.4em;
|
||||
a {
|
||||
color: #a16696;
|
||||
text-decoration: none;
|
||||
padding: 1.5em;
|
||||
margin: -1.5em;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
&:hover, &:focus {
|
||||
color: #111;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
li::before {
|
||||
content: '';
|
||||
|
@ -351,6 +438,7 @@ body {
|
|||
li.active {
|
||||
border-color: #a16696;
|
||||
color: #a16696;
|
||||
font-weight: bold;
|
||||
&::before {
|
||||
border-color: #a16696;
|
||||
}
|
||||
|
@ -367,6 +455,7 @@ body {
|
|||
.wc-setup .wc-setup-actions {
|
||||
overflow: hidden;
|
||||
margin: 20px 0 0;
|
||||
position: relative;
|
||||
.button {
|
||||
font-size: 1.25em;
|
||||
padding: 0.5em 1em;
|
||||
|
@ -400,11 +489,11 @@ body {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
.wc-return-to-dashboard {
|
||||
.wc-setup-footer-links {
|
||||
font-size: 0.85em;
|
||||
color: #b5b5b5;
|
||||
margin: 1.18em 0;
|
||||
display: block;
|
||||
color: #7b7b7b;
|
||||
margin: 1.18em auto;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
@ -508,7 +597,10 @@ body {
|
|||
align-self: stretch;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
|
||||
.wc-wizard-payment-gateway-form & {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 75px;
|
||||
|
@ -542,6 +634,14 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
&.eway-logo .wc-wizard-service-name img {
|
||||
max-width: 87px;
|
||||
}
|
||||
|
||||
&.payfast-logo .wc-wizard-service-name img {
|
||||
max-width: 140px;
|
||||
}
|
||||
|
||||
.wc-wizard-service-description {
|
||||
flex-grow: 1;
|
||||
padding: 20px;
|
||||
|
@ -554,10 +654,6 @@ body {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wc-wizard-service-settings {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.wc-wizard-service-settings-description {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
|
@ -615,6 +711,7 @@ body {
|
|||
|
||||
.wc-wizard-service-settings {
|
||||
display: none;
|
||||
margin-top: 0.75em;
|
||||
margin-bottom: 0;
|
||||
cursor: default;
|
||||
|
||||
|
@ -640,6 +737,8 @@ body {
|
|||
|
||||
// Toggle display a list of services.
|
||||
.wc-wizard-services-list-toggle {
|
||||
cursor: pointer;
|
||||
|
||||
.wc-wizard-service-enable::before {
|
||||
content: "\f343"; // up chevron
|
||||
font-family: "dashicons";
|
||||
|
@ -659,7 +758,6 @@ body {
|
|||
.wc-wizard-service-enable input {
|
||||
visibility: hidden;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -669,15 +767,20 @@ body {
|
|||
|
||||
// Shipping list of services
|
||||
.wc-wizard-services.shipping {
|
||||
margin: 0;
|
||||
|
||||
.wc-wizard-service-name {
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
align-items: center;
|
||||
max-height: 5em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// List header
|
||||
.wc-wizard-service-item {
|
||||
padding-left: 2em;
|
||||
padding-top: 0.67em;
|
||||
|
||||
&:first-child {
|
||||
border-bottom: 0;
|
||||
|
@ -713,7 +816,10 @@ body {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #a6a6a6;
|
||||
}
|
||||
.wc-wizard-service-item:not(:first-child) .wc-wizard-service-description {
|
||||
font-size: 0.92em;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.shipping-method-setting {
|
||||
|
@ -747,13 +853,15 @@ body {
|
|||
line-height: 1.5em;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0.25em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wc-setup-shipping-unit {
|
||||
margin-bottom: 1.75em;
|
||||
|
||||
.select2 {
|
||||
min-width: 100%; // widen dropdowns
|
||||
min-width: 125px; // widen dropdowns
|
||||
top: -5px; // vertically align dropdown value with surrounding text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -807,11 +915,21 @@ h3.jetpack-reasons {
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
.jetpack-logo {
|
||||
.jetpack-logo, .wcs-notice {
|
||||
display: block;
|
||||
margin: 1.75em auto 2em auto;
|
||||
max-height: 175px;
|
||||
}
|
||||
.activate-splash {
|
||||
.jetpack-logo {
|
||||
width: 170px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wcs-notice {
|
||||
margin-top: 1em;
|
||||
padding-left: 57px;
|
||||
}
|
||||
}
|
||||
|
||||
.step {
|
||||
text-align: center;
|
||||
|
@ -833,12 +951,50 @@ h3.jetpack-reasons {
|
|||
}
|
||||
}
|
||||
|
||||
.wc-setup .wc-setup-actions .plugin-install-info {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
line-height: 1.5em;
|
||||
margin: 5px 0;
|
||||
|
||||
& > * {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.plugin-install-info-list-item::after {
|
||||
content: ', ';
|
||||
}
|
||||
|
||||
.plugin-install-info-list-item:last-of-type::after {
|
||||
content: '. ';
|
||||
}
|
||||
|
||||
a {
|
||||
white-space: nowrap;
|
||||
|
||||
&:not(:hover):not(:focus) {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.plugin-install-source {
|
||||
$background: rgba( #bb77ae, 0.15 );
|
||||
background: $background;
|
||||
|
||||
&:not(.wc-wizard-service-item) {
|
||||
box-shadow: 0 0 0 10px $background;
|
||||
}
|
||||
}
|
||||
|
||||
.location-prompt {
|
||||
color: #666;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 1em;
|
||||
margin-top: 0.85em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
@ -867,8 +1023,6 @@ h3.jetpack-reasons {
|
|||
}
|
||||
|
||||
.store-address-container {
|
||||
margin-bottom: 24px; // match margin-bottom on top paragraph
|
||||
|
||||
.city-and-postcode {
|
||||
display: flex;
|
||||
|
||||
|
@ -881,6 +1035,18 @@ h3.jetpack-reasons {
|
|||
}
|
||||
}
|
||||
}
|
||||
input[type="text"],
|
||||
select,
|
||||
.select2-container {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
.product-type-container {
|
||||
margin-top: 14px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
#woocommerce_sell_in_person {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.wc-wizard-service-settings {
|
||||
|
@ -894,6 +1060,10 @@ h3.jetpack-reasons {
|
|||
color: #444;
|
||||
background-color: #fff;
|
||||
display: inline-block;
|
||||
|
||||
&[disabled] {
|
||||
color: #aaa;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -955,7 +1125,7 @@ h3.jetpack-reasons {
|
|||
align-items: center;
|
||||
|
||||
.button {
|
||||
margin: 1em;
|
||||
margin: 1em 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -979,6 +1149,26 @@ h3.jetpack-reasons {
|
|||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.wc-wizard-additional-steps {
|
||||
border-top: 1px solid #eee;
|
||||
|
||||
.wc-wizard-next-step-description {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wc-setup-actions {
|
||||
margin: 0 0 1.5em 0;
|
||||
|
||||
.button {
|
||||
font-size: 15px;
|
||||
margin: 1em 0 1em 1.5em;
|
||||
}
|
||||
.button::last-child {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p.next-steps-help-text {
|
||||
|
@ -1021,22 +1211,13 @@ p.jetpack-terms {
|
|||
}
|
||||
}
|
||||
|
||||
.allow-tracking {
|
||||
color: #9f9f9f;
|
||||
margin-top: 1em;
|
||||
text-align: center;
|
||||
font-size: 0.9em;
|
||||
padding-top: 2em;
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.wc-wizard-service-setting-stripe_create_account, .wc-wizard-service-setting-ppec_paypal_reroute_requests {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
margin-top: 0.75em;
|
||||
align-items: flex-start;
|
||||
|
||||
.payment-checkbox-input {
|
||||
order: 1;
|
||||
margin-top: 5px;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 1.5em;
|
||||
|
@ -1050,6 +1231,7 @@ p.jetpack-terms {
|
|||
|
||||
.wc-wizard-service-setting-stripe_email, .wc-wizard-service-setting-ppec_paypal_email {
|
||||
margin-top: 0.75em;
|
||||
margin-left: 1.5em;
|
||||
|
||||
label.stripe_email, label.ppec_paypal_email {
|
||||
position: absolute;
|
||||
|
@ -1063,12 +1245,113 @@ p.jetpack-terms {
|
|||
}
|
||||
|
||||
input.payment-email-input {
|
||||
margin-left: 1.5em;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: .5em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wc-wizard-service-settings-description {
|
||||
margin-left: 1.5em;
|
||||
height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.wc-setup-content .recommended-step {
|
||||
border: 1px solid #ebebeb;
|
||||
border-radius: 4px;
|
||||
padding: 2.5em;
|
||||
}
|
||||
|
||||
.wc-setup-content .recommended-item {
|
||||
list-style: none;
|
||||
|
||||
&:last-child label {
|
||||
margin-bottom: 0; // Avoid extra space at the end of the list.
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5em;
|
||||
|
||||
&:before, &:after {
|
||||
top: auto;
|
||||
}
|
||||
&:after {
|
||||
margin-top: -1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.recommended-item-icon {
|
||||
border: 1px solid #fff;
|
||||
border-radius: 7px;
|
||||
height: 3.5em;
|
||||
margin-right: 1em;
|
||||
margin-left: 4px;
|
||||
|
||||
&.recommended-item-icon-storefront_theme {
|
||||
background-color: #f4a224;
|
||||
max-height: 3em;
|
||||
max-width: 3em;
|
||||
padding: ( 3.5em - 3em ) / 2;
|
||||
}
|
||||
|
||||
&.recommended-item-icon-automated_taxes {
|
||||
background-color: #d0011b;
|
||||
max-height: 1.75em;
|
||||
padding: ( 3.5em - 1.75em ) / 2;
|
||||
}
|
||||
|
||||
&.recommended-item-icon-mailchimp {
|
||||
background-color: #209bbb;
|
||||
height: 2em;
|
||||
padding: ( 3.5em - 2em ) / 2;
|
||||
}
|
||||
|
||||
&.recommended-item-icon-woocommerce_services {
|
||||
background-color: #f0f0f0;
|
||||
max-height: 1.5em;
|
||||
padding: 1.3em .7em;
|
||||
}
|
||||
|
||||
&.recommended-item-icon-shipstation {
|
||||
background-color: #f0f0f0;
|
||||
padding: .3em;
|
||||
}
|
||||
}
|
||||
|
||||
.recommended-item-description-container {
|
||||
h3 {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wc-wizard-service-info {
|
||||
padding: 1em 2em;
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.help_tip {
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
.wc-setup {
|
||||
#tiptip_content {
|
||||
background: #5f6973;
|
||||
}
|
||||
|
||||
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
||||
border-top-color: #5f6973;
|
||||
}
|
||||
}
|
||||
|
||||
.wc-setup-shipping-recommended {
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-top: 0;
|
||||
padding: 30px 0;
|
||||
}
|
|
@ -98,18 +98,16 @@
|
|||
/**
|
||||
* Products
|
||||
*/
|
||||
&, &[class*='columns-'] {
|
||||
ul.products {
|
||||
li.product {
|
||||
width: 48%;
|
||||
float: left;
|
||||
clear: both;
|
||||
margin: 0 0 2.992em;
|
||||
ul.products[class*='columns-'] {
|
||||
li.product {
|
||||
width: 48%;
|
||||
float: left;
|
||||
clear: both;
|
||||
margin: 0 0 2.992em;
|
||||
|
||||
&:nth-child( 2n ) {
|
||||
float: right;
|
||||
clear: none !important; // This should never clear.
|
||||
}
|
||||
&:nth-child( 2n ) {
|
||||
float: right;
|
||||
clear: none !important; // This should never clear.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,6 +186,11 @@ p.demo_store,
|
|||
|
||||
.woocommerce-product-gallery__wrapper .zoomImg {
|
||||
background-color: #fff;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-gallery__image--placeholder {
|
||||
border: 1px solid #F2F2F2;
|
||||
}
|
||||
|
||||
.woocommerce-product-gallery__image:nth-child(n+2) {
|
||||
|
@ -363,17 +368,18 @@ p.demo_store,
|
|||
width: 5px;
|
||||
height: 5px;
|
||||
content: ' ';
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: -6px;
|
||||
left: -5px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-width: 0 1px 1px 0;
|
||||
box-shadow: 2px 2px 0 $secondary;
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: -6px;
|
||||
right: -5px;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-width: 0 0 1px 1px;
|
||||
box-shadow: -2px 2px 0 $secondary;
|
||||
|
@ -476,7 +482,7 @@ p.demo_store,
|
|||
}
|
||||
|
||||
.group_table {
|
||||
td.label {
|
||||
td.woocommerce-grouped-product-list-item__label {
|
||||
padding-right: 1em;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
@ -569,6 +575,10 @@ p.demo_store,
|
|||
display: block;
|
||||
}
|
||||
|
||||
.woocommerce-placeholder {
|
||||
border: 1px solid #F2F2F2;
|
||||
}
|
||||
|
||||
.star-rating {
|
||||
font-size: 0.857em;
|
||||
}
|
||||
|
@ -1056,12 +1066,14 @@ p.demo_store,
|
|||
th {
|
||||
font-weight: 700;
|
||||
padding: 9px 12px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
td {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
||||
padding: 6px 12px;
|
||||
padding: 9px 12px;
|
||||
vertical-align: middle;
|
||||
line-height: 1.5em;
|
||||
|
||||
small {
|
||||
font-weight: normal;
|
||||
|
@ -1275,6 +1287,40 @@ p.demo_store,
|
|||
display: inline;
|
||||
}
|
||||
|
||||
.woocommerce-input-wrapper {
|
||||
.description {
|
||||
background: #1e85be;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
padding: 1em;
|
||||
margin: .5em 0 0;
|
||||
clear: both;
|
||||
display: none;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: 50%;
|
||||
top: 0%;
|
||||
margin-top: -4px;
|
||||
transform: translatex(-50%) rotate(180deg);
|
||||
content: "";
|
||||
position: absolute;
|
||||
border-width: 4px 6px 0 6px;
|
||||
border-style: solid;
|
||||
border-color: #1e85be transparent transparent transparent;
|
||||
z-index: 100;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
|
@ -1283,9 +1329,15 @@ p.demo_store,
|
|||
.required {
|
||||
color: red;
|
||||
font-weight: 700;
|
||||
border: 0;
|
||||
border: 0 !important;
|
||||
text-decoration: none;
|
||||
visibility: hidden; // Only show optional by default.
|
||||
}
|
||||
|
||||
.optional {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.input-checkbox {
|
||||
display: inline;
|
||||
margin: -2px 8px 0 0;
|
||||
|
@ -1299,7 +1351,7 @@ p.demo_store,
|
|||
width: 100%;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
line-height: 1;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
textarea {
|
||||
|
@ -1362,12 +1414,12 @@ p.demo_store,
|
|||
padding: 0;
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
padding: 0.25em 0 0.25em 22px;
|
||||
text-indent: -22px;
|
||||
margin: 0 0 .5em;
|
||||
line-height: 1.5em;
|
||||
list-style: none outside;
|
||||
input {
|
||||
margin: 3px 0.5ex;
|
||||
margin: 3px 0.4375em 0 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
label {
|
||||
display: inline;
|
||||
|
@ -1620,45 +1672,16 @@ p.demo_store,
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Photoswipe
|
||||
* 1. These styles are required to overwrite default theme button styles (Twenty Twelve adds gradients via background-image).
|
||||
* 2. For zooming on mobile.
|
||||
*/
|
||||
.pswp {
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
.woocommerce img.pswp__img,
|
||||
.woocommerce-page img.pswp__img {
|
||||
max-width: none; /* 2 */
|
||||
}
|
||||
|
||||
button.pswp__button {
|
||||
box-shadow: none !important;
|
||||
background-image: url('photoswipe/default-skin/default-skin.png') !important;
|
||||
}
|
||||
|
||||
button.pswp__button,
|
||||
button.pswp__button:hover,
|
||||
button.pswp__button--arrow--left::before,
|
||||
button.pswp__button--arrow--right::before {
|
||||
background-color: transparent !important; /* 1 */
|
||||
}
|
||||
|
||||
button.pswp__button--arrow--left,
|
||||
button.pswp__button--arrow--right,
|
||||
button.pswp__button--arrow--left:hover,
|
||||
button.pswp__button--arrow--right:hover {
|
||||
background-image: none !important; /* 1 */
|
||||
}
|
||||
|
||||
button.pswp__button--close:hover {
|
||||
background-position: 0 -44px;
|
||||
}
|
||||
|
||||
button.pswp__button--zoom:hover {
|
||||
background-position: -88px 0;
|
||||
.woocommerce-no-js {
|
||||
form.woocommerce-form-login,
|
||||
form.woocommerce-form-coupon {
|
||||
display: block !important;
|
||||
}
|
||||
.woocommerce-form-login-toggle,
|
||||
.woocommerce-form-coupon-toggle,
|
||||
.showcoupon {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-message,
|
||||
|
@ -1698,8 +1721,11 @@ button.pswp__button--zoom:hover {
|
|||
/**
|
||||
* Right to left styles
|
||||
*/
|
||||
.rtl.woocommerce div.product div.images .flex-control-thumbs li {
|
||||
float: right;
|
||||
.rtl.woocommerce .price_label,
|
||||
.rtl.woocommerce .price_label span {
|
||||
/* rtl:ignore */
|
||||
direction: ltr;
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
|
||||
.woocommerce-message {
|
||||
|
@ -1806,13 +1832,11 @@ button.pswp__button--zoom:hover {
|
|||
padding: 6px 6px 5px;
|
||||
margin: 0 4px 0 0;
|
||||
outline: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
input {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1830,16 +1854,18 @@ button.pswp__button--zoom:hover {
|
|||
}
|
||||
|
||||
.cart-collaterals {
|
||||
.shipping_calculator {
|
||||
.button {
|
||||
width: 100%;
|
||||
float: none;
|
||||
display: block;
|
||||
}
|
||||
.shipping-calculator-button {
|
||||
float: none;
|
||||
margin-top: .5em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.shipping-calculator-button::after {
|
||||
@include iconafter( '\e019' );
|
||||
}
|
||||
.shipping-calculator-button::after {
|
||||
@include iconafter( '\e019' );
|
||||
}
|
||||
|
||||
.shipping-calculator-form {
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
.cart_totals {
|
||||
|
@ -1861,7 +1887,7 @@ button.pswp__button--zoom:hover {
|
|||
}
|
||||
|
||||
th {
|
||||
width: 40%;
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
td,
|
||||
|
@ -1889,6 +1915,9 @@ button.pswp__button--zoom:hover {
|
|||
tr th {
|
||||
border-top: 1px solid $secondary;
|
||||
}
|
||||
.woocommerce-shipping-destination {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.cross-sells ul.products li.product {
|
||||
|
@ -2113,6 +2142,13 @@ button.pswp__button--zoom:hover {
|
|||
background: rgba(0,0,0,.05);
|
||||
}
|
||||
|
||||
.woocommerce-invalid {
|
||||
#terms {
|
||||
outline: 2px solid red;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Password strength meter
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<![CDATA[
|
||||
{
|
||||
"fontFamily": "WooCommerce",
|
||||
"fontURL": "https://woothemes.com",
|
||||
"fontURL": "https://woocommerce.com",
|
||||
"designer": "James Koster",
|
||||
"designerURL": "http://jameskoster.co.uk",
|
||||
"license": "SIL OFL",
|
||||
|
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 5.8 KiB |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 367 300"><path fill="#FFF" d="M251 135.1c-6.4 4.9-14.4 7.8-23 7.8-8.9 0-17-3.1-23.5-8.1-6.5 5.1-14.6 8.1-23.5 8.1s-17.1-3.1-23.6-8.2c-6.5 5.1-14.7 8.2-23.6 8.2-8.9 0-17-3.1-23.5-8.1-6.5 5.1-14.6 8.1-23.5 8.1-2 0-4-.2-6-.5v73.4c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12V185.1c6.9 2.2 14.1 3.5 22.8 3.5s17.1-1.3 22.8-3.5V215.8c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12V142c-2.6.6-5.3.9-8 .9-8.4-.1-16.4-3-22.8-7.8zm-115.5 49.8c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1v14.1zm123.3 0c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1v14.1zM294.9 99.9l-30.1-30.1c-3.9-3.9-11.6-7.1-17.1-7.1H113.3c-5.5 0-13.2 3.2-17.1 7.1L66.1 99.9l-7 7c.9 12.5 10 22.7 21.9 25.3h.1c.4.1.9.2 1.3.3h.1c.4.1.8.1 1.3.2h.2c.4 0 .8.1 1.2.1H87c.7 0 1.4 0 2-.1.2 0 .4 0 .6-.1.5 0 .9-.1 1.4-.2.2 0 .5-.1.7-.1.4-.1.8-.1 1.2-.2.2-.1.5-.1.7-.2l1.2-.3c.2-.1.4-.1.6-.2.5-.2 1-.3 1.5-.5.1 0 .2-.1.4-.1.6-.2 1.2-.5 1.7-.8.2-.1.4-.2.5-.3.4-.2.8-.4 1.1-.6.2-.1.4-.3.7-.4l.9-.6c.1-.1.2-.1.3-.2 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7s18.6-5.1 23.6-12.9c2 3.2 4.7 5.9 7.8 8.1.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4.6.1 1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1s1.3 0 1.9-.1h.5c.6-.1 1.3-.1 1.9-.2.6-.1 1.2-.2 1.8-.4.1 0 .3-.1.4-.1.6-.1 1.2-.3 1.8-.5l1.8-.6c.1 0 .2-.1.3-.1 1.2-.5 2.3-1 3.4-1.6.1-.1.2-.1.3-.2.5-.3 1.1-.7 1.6-1 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7 9.5 0 18-4.8 23-12.1 2 2.8 4.4 5.3 7.3 7.2.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4.6.1 1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1.6 0 1.2 0 1.9-.1h.4c.6 0 1.2-.1 1.7-.2h.1c.6-.1 1.3-.2 1.9-.4h.1c11.9-2.7 20.9-12.8 21.8-25.3l-6.7-6.7zM150 107c-.1 8.8-7.3 15.9-16.1 15.9s-16-7.1-16.1-15.9l15-37h25l-7.8 37zm77.8 15.9c-8.8 0-16-7.1-16.1-15.9l-7.8-37h25l15 37c-.1 8.8-7.3 15.9-16.1 15.9z"/></svg>
|
After Width: | Height: | Size: 2.0 KiB |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="266 396.70001220703125 25.5 23.5999755859375"><path fill="#FFF" d="M266 402.5c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm2.9 17.3l8.5-11.8 6.2-10.7h5.2l-8.6 11.9-6 10.7h-5.3zm4.1-17.3c0-1.6-.5-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5zm7.5 12c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm7 0c0-1.6-.6-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5z"/></svg>
|
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 8.6 KiB |
|
@ -121,7 +121,7 @@
|
|||
if ( response.success ) {
|
||||
var data = response.data;
|
||||
|
||||
$( 'h3', self.el ).first().append( '<div class="wc-api-message updated"><p>' + data.message + '</p></div>' );
|
||||
$( 'h2, h3', self.el ).first().append( '<div class="wc-api-message updated"><p>' + data.message + '</p></div>' );
|
||||
|
||||
if ( 0 < data.consumer_key.length && 0 < data.consumer_secret.length ) {
|
||||
$( '#api-keys-options', self.el ).remove();
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(e){new(Backbone.View.extend({el:e("#key-fields"),events:{"click input#update_api_key":"saveKey"},initialize:function(){_.bindAll(this,"saveKey")},block:function(){e(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){e(this.el).unblock()},initTipTip:function(i){e(document.body).on("click",i,function(o){o.preventDefault(),document.queryCommandSupported("copy")?(e("#copy-error").text(""),wcClearClipboard(),wcSetClipboard(e.trim(e(this).prev("input").val()),e(i))):(e(i).parent().find("input").focus().select(),e("#copy-error").text(woocommerce_admin_api_keys.clipboard_failed))}).on("aftercopy",i,function(){e("#copy-error").text(""),e(i).tipTip({attribute:"data-tip",activation:"focus",fadeIn:50,fadeOut:50,delay:0}).focus()}).on("aftercopyerror",i,function(){e(i).parent().find("input").focus().select(),e("#copy-error").text(woocommerce_admin_api_keys.clipboard_failed)})},createQRCode:function(i,o){e("#keys-qrcode").qrcode({text:i+"|"+o,width:120,height:120})},saveKey:function(i){i.preventDefault();var o=this;o.block(),Backbone.ajax({method:"POST",dataType:"json",url:woocommerce_admin_api_keys.ajax_url,data:{action:"woocommerce_update_api_key",security:woocommerce_admin_api_keys.update_api_nonce,key_id:e("#key_id",o.el).val(),description:e("#key_description",o.el).val(),user:e("#key_user",o.el).val(),permissions:e("#key_permissions",o.el).val()},success:function(i){if(e(".wc-api-message",o.el).remove(),i.success){var t=i.data;if(e("h3",o.el).first().append('<div class="wc-api-message updated"><p>'+t.message+"</p></div>"),0<t.consumer_key.length&&0<t.consumer_secret.length){e("#api-keys-options",o.el).remove(),e("p.submit",o.el).empty().append(t.revoke_url);var a=wp.template("api-keys-template");e("p.submit",o.el).before(a({consumer_key:t.consumer_key,consumer_secret:t.consumer_secret})),o.createQRCode(t.consumer_key,t.consumer_secret),o.initTipTip(".copy-key"),o.initTipTip(".copy-secret")}else e("#key_description",o.el).val(t.description),e("#key_user",o.el).val(t.user_id),e("#key_permissions",o.el).val(t.permissions)}else e("h3",o.el).first().append('<div class="wc-api-message error"><p>'+i.data.message+"</p></div>");o.unblock()}})}}))}(jQuery);
|
||||
!function(a){new(Backbone.View.extend({el:a("#key-fields"),events:{"click input#update_api_key":"saveKey"},initialize:function(){_.bindAll(this,"saveKey")},block:function(){a(this.el).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a(this.el).unblock()},initTipTip:function(i){a(document.body).on("click",i,function(e){e.preventDefault(),document.queryCommandSupported("copy")?(a("#copy-error").text(""),wcClearClipboard(),wcSetClipboard(a.trim(a(this).prev("input").val()),a(i))):(a(i).parent().find("input").focus().select(),a("#copy-error").text(woocommerce_admin_api_keys.clipboard_failed))}).on("aftercopy",i,function(){a("#copy-error").text(""),a(i).tipTip({attribute:"data-tip",activation:"focus",fadeIn:50,fadeOut:50,delay:0}).focus()}).on("aftercopyerror",i,function(){a(i).parent().find("input").focus().select(),a("#copy-error").text(woocommerce_admin_api_keys.clipboard_failed)})},createQRCode:function(e,i){a("#keys-qrcode").qrcode({text:e+"|"+i,width:120,height:120})},saveKey:function(e){e.preventDefault();var t=this;t.block(),Backbone.ajax({method:"POST",dataType:"json",url:woocommerce_admin_api_keys.ajax_url,data:{action:"woocommerce_update_api_key",security:woocommerce_admin_api_keys.update_api_nonce,key_id:a("#key_id",t.el).val(),description:a("#key_description",t.el).val(),user:a("#key_user",t.el).val(),permissions:a("#key_permissions",t.el).val()},success:function(e){if(a(".wc-api-message",t.el).remove(),e.success){var i=e.data;if(a("h2, h3",t.el).first().append('<div class="wc-api-message updated"><p>'+i.message+"</p></div>"),0<i.consumer_key.length&&0<i.consumer_secret.length){a("#api-keys-options",t.el).remove(),a("p.submit",t.el).empty().append(i.revoke_url);var o=wp.template("api-keys-template");a("p.submit",t.el).before(o({consumer_key:i.consumer_key,consumer_secret:i.consumer_secret})),t.createQRCode(i.consumer_key,i.consumer_secret),t.initTipTip(".copy-key"),t.initTipTip(".copy-secret")}else a("#key_description",t.el).val(i.description),a("#key_user",t.el).val(i.user_id),a("#key_permissions",t.el).val(i.permissions)}else a("h3",t.el).first().append('<div class="wc-api-message error"><p>'+e.data.message+"</p></div>");t.unblock()}})}}))}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(e,t,n){"use strict";e.fn.WCBackboneModal=function(t){return this.each(function(){new e.WCBackboneModal(e(this),t)})},e.WCBackboneModal=function(t,n){var o=e.extend({},e.WCBackboneModal.defaultOptions,n);o.template&&new e.WCBackboneModal.View({target:o.template,string:o.variable})},e.WCBackboneModal.defaultOptions={template:"",variable:{}},e.WCBackboneModal.View=t.View.extend({tagName:"div",id:"wc-backbone-modal-dialog",_target:undefined,_string:undefined,events:{"click .modal-close":"closeButton","click #btn-ok":"addButton","touchstart #btn-ok":"addButton",keydown:"keyboardActions"},resizeContent:function(){var t=e(".wc-backbone-modal-content").find("article"),n=.75*e(window).height();t.css({"max-height":n+"px"})},initialize:function(t){var o=this;this._target=t.target,this._string=t.string,n.bindAll(this,"render"),this.render(),e(window).resize(function(){o.resizeContent()})},render:function(){var t=wp.template(this._target);this.$el.append(t(this._string)),e(document.body).css({overflow:"hidden"}).append(this.$el),this.resizeContent(),this.$(".wc-backbone-modal-content").attr("tabindex","0").focus(),e(document.body).trigger("init_tooltips"),e(document.body).trigger("wc_backbone_modal_loaded",this._target)},closeButton:function(t){t.preventDefault(),e(document.body).trigger("wc_backbone_modal_before_remove",this._target),this.undelegateEvents(),e(document).off("focusin"),e(document.body).css({overflow:"auto"}),this.remove(),e(document.body).trigger("wc_backbone_modal_removed",this._target)},addButton:function(t){e(document.body).trigger("wc_backbone_modal_response",[this._target,this.getFormData()]),this.closeButton(t)},getFormData:function(){var t={};return e(document.body).trigger("wc_backbone_modal_before_update",this._target),e.each(e("form",this.$el).serializeArray(),function(n,o){-1!==o.name.indexOf("[]")?(o.name=o.name.replace("[]",""),t[o.name]=e.makeArray(t[o.name]),t[o.name].push(o.value)):t[o.name]=o.value}),t},keyboardActions:function(e){var t=e.keyCode||e.which;13!==t||e.target.tagName&&("input"===e.target.tagName.toLowerCase()||"textarea"===e.target.tagName.toLowerCase())||this.addButton(e),27===t&&this.closeButton(e)}})}(jQuery,Backbone,_);
|
||||
!function(o,e,n){"use strict";o.fn.WCBackboneModal=function(e){return this.each(function(){new o.WCBackboneModal(o(this),e)})},o.WCBackboneModal=function(e,t){var n=o.extend({},o.WCBackboneModal.defaultOptions,t);n.template&&new o.WCBackboneModal.View({target:n.template,string:n.variable})},o.WCBackboneModal.defaultOptions={template:"",variable:{}},o.WCBackboneModal.View=e.View.extend({tagName:"div",id:"wc-backbone-modal-dialog",_target:undefined,_string:undefined,events:{"click .modal-close":"closeButton","click #btn-ok":"addButton","touchstart #btn-ok":"addButton",keydown:"keyboardActions"},resizeContent:function(){var e=o(".wc-backbone-modal-content").find("article"),t=.75*o(window).height();e.css({"max-height":t+"px"})},initialize:function(e){var t=this;this._target=e.target,this._string=e.string,n.bindAll(this,"render"),this.render(),o(window).resize(function(){t.resizeContent()})},render:function(){var e=wp.template(this._target);this.$el.append(e(this._string)),o(document.body).css({overflow:"hidden"}).append(this.$el),this.resizeContent(),this.$(".wc-backbone-modal-content").attr("tabindex","0").focus(),o(document.body).trigger("init_tooltips"),o(document.body).trigger("wc_backbone_modal_loaded",this._target)},closeButton:function(e){e.preventDefault(),o(document.body).trigger("wc_backbone_modal_before_remove",this._target),this.undelegateEvents(),o(document).off("focusin"),o(document.body).css({overflow:"auto"}),this.remove(),o(document.body).trigger("wc_backbone_modal_removed",this._target)},addButton:function(e){o(document.body).trigger("wc_backbone_modal_response",[this._target,this.getFormData()]),this.closeButton(e)},getFormData:function(){var n={};return o(document.body).trigger("wc_backbone_modal_before_update",this._target),o.each(o("form",this.$el).serializeArray(),function(e,t){-1!==t.name.indexOf("[]")?(t.name=t.name.replace("[]",""),n[t.name]=o.makeArray(n[t.name]),n[t.name].push(t.value)):n[t.name]=t.value}),n},keyboardActions:function(e){var t=e.keyCode||e.which;13!==t||e.target.tagName&&("input"===e.target.tagName.toLowerCase()||"textarea"===e.target.tagName.toLowerCase())||this.addButton(e),27===t&&this.closeButton(e)}})}(jQuery,Backbone,_);
|
|
@ -112,9 +112,6 @@ jQuery( function ( $ ) {
|
|||
|
||||
if ( ! $country_input.val() ) {
|
||||
$country_input.val( woocommerce_admin_meta_boxes_order.default_country ).change();
|
||||
}
|
||||
|
||||
if ( ! $state_input.val() ) {
|
||||
$state_input.val( woocommerce_admin_meta_boxes_order.default_state ).change();
|
||||
}
|
||||
|
||||
|
@ -247,11 +244,6 @@ jQuery( function ( $ ) {
|
|||
.on( 'click', 'button.calculate-action', this.recalculate )
|
||||
.on( 'click', 'a.edit-order-item', this.edit_item )
|
||||
.on( 'click', 'a.delete-order-item', this.delete_item )
|
||||
.on( 'click', 'tr.item, tr.fee, tr.shipping, tr.refund', this.select_row )
|
||||
.on( 'click', 'tr.item :input, tr.fee :input, tr.shipping :input, tr.refund :input, tr.item a, tr.fee a, tr.shipping a, tr.refund a', this.select_row_child )
|
||||
.on( 'click', 'button.bulk-delete-items', this.bulk_actions.do_delete )
|
||||
.on( 'click', 'button.bulk-increase-stock', this.bulk_actions.do_increase_stock )
|
||||
.on( 'click', 'button.bulk-decrease-stock', this.bulk_actions.do_reduce_stock )
|
||||
|
||||
// Refunds
|
||||
.on( 'click', '.delete_refund', this.refunds.delete_refund )
|
||||
|
@ -277,7 +269,11 @@ jQuery( function ( $ ) {
|
|||
|
||||
// Meta
|
||||
.on( 'click', 'button.add_order_item_meta', this.item_meta.add )
|
||||
.on( 'click', 'button.remove_order_item_meta', this.item_meta.remove );
|
||||
.on( 'click', 'button.remove_order_item_meta', this.item_meta.remove )
|
||||
|
||||
// Reload items
|
||||
.on( 'wc_order_items_reload', this.reload_items )
|
||||
.on( 'wc_order_items_reloaded', this.reloaded_items );
|
||||
|
||||
$( document.body )
|
||||
.on( 'wc_backbone_modal_loaded', this.backbone.init )
|
||||
|
@ -314,13 +310,17 @@ jQuery( function ( $ ) {
|
|||
success: function( response ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
reloaded_items: function() {
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
},
|
||||
|
||||
// When the qty is changed, increase or decrease costs
|
||||
quantity_changed: function() {
|
||||
var $row = $( this ).closest( 'tr.item' );
|
||||
|
@ -396,9 +396,8 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
@ -424,9 +423,8 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
@ -484,9 +482,8 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
@ -563,9 +560,8 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
@ -595,9 +591,8 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
@ -646,6 +641,8 @@ jQuery( function ( $ ) {
|
|||
items: $( 'table.woocommerce_order_items :input[name], .wc-order-totals-items :input[name]' ).serialize(),
|
||||
security: woocommerce_admin_meta_boxes.calc_totals_nonce
|
||||
} );
|
||||
|
||||
$( document.body ).trigger( 'order-totals-recalculate-before', data );
|
||||
|
||||
$.ajax({
|
||||
url: woocommerce_admin_meta_boxes.ajax_url,
|
||||
|
@ -654,9 +651,13 @@ jQuery( function ( $ ) {
|
|||
success: function( response ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
|
||||
$( document.body ).trigger( 'order-totals-recalculate-success', response );
|
||||
},
|
||||
complete: function( response ) {
|
||||
$( document.body ).trigger( 'order-totals-recalculate-complete', response );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -681,9 +682,8 @@ jQuery( function ( $ ) {
|
|||
success: function( response ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -882,7 +882,7 @@ jQuery( function ( $ ) {
|
|||
var index = $items.find('tr').length + 1;
|
||||
var $row = '<tr data-meta_id="0">' +
|
||||
'<td>' +
|
||||
'<input type="text" placeholder="' + woocommerce_admin_meta_boxes_order.placeholder_name + '" name="meta_key[' + $item.attr( 'data-order_item_id' ) + '][new-' + index + ']" />' +
|
||||
'<input type="text" maxlength="255" placeholder="' + woocommerce_admin_meta_boxes_order.placeholder_name + '" name="meta_key[' + $item.attr( 'data-order_item_id' ) + '][new-' + index + ']" />' +
|
||||
'<textarea placeholder="' + woocommerce_admin_meta_boxes_order.placeholder_value + '" name="meta_value[' + $item.attr( 'data-order_item_id' ) + '][new-' + index + ']"></textarea>' +
|
||||
'</td>' +
|
||||
'<td width="1%"><button class="remove_order_item_meta button">×</button></td>' +
|
||||
|
@ -902,189 +902,24 @@ jQuery( function ( $ ) {
|
|||
}
|
||||
},
|
||||
|
||||
select_row: function() {
|
||||
var $row = false;
|
||||
if ( $( this ).is( 'tr' ) ) {
|
||||
$row = $( this );
|
||||
} else {
|
||||
$row = $( this ).closest( 'tr' );
|
||||
}
|
||||
var $table = $( this ).closest( 'table' );
|
||||
|
||||
if ( $row.is( '.selected' ) ) {
|
||||
$row.removeClass( 'selected' );
|
||||
} else {
|
||||
$row.addClass( 'selected' );
|
||||
}
|
||||
|
||||
var $rows = $table.find( 'tr.selected' );
|
||||
|
||||
if ( $rows.length ) {
|
||||
$( 'div.wc-order-item-bulk-edit' ).slideDown();
|
||||
|
||||
var selected_product = false;
|
||||
|
||||
$rows.each( function() {
|
||||
if ( $( this ).is( 'tr.item' ) ) {
|
||||
selected_product = true;
|
||||
}
|
||||
} );
|
||||
|
||||
if ( selected_product ) {
|
||||
$( '.bulk-increase-stock, .bulk-decrease-stock' ).show();
|
||||
} else {
|
||||
$( '.bulk-increase-stock, .bulk-decrease-stock' ).hide();
|
||||
}
|
||||
} else {
|
||||
$( 'div.wc-order-item-bulk-edit' ).slideUp();
|
||||
}
|
||||
},
|
||||
|
||||
select_row_child: function( e ) {
|
||||
e.stopPropagation();
|
||||
},
|
||||
|
||||
bulk_actions: {
|
||||
|
||||
do_delete: function( e ) {
|
||||
e.preventDefault();
|
||||
var $table = $( 'table.woocommerce_order_items' );
|
||||
var $rows = $table.find( 'tr.selected' );
|
||||
|
||||
if ( $rows.length && window.confirm( woocommerce_admin_meta_boxes.remove_item_notice ) ) {
|
||||
|
||||
wc_meta_boxes_order_items.block();
|
||||
|
||||
var delete_items = [];
|
||||
var delete_refunds = [];
|
||||
var deferred = [];
|
||||
|
||||
$.map( $rows, function( row ) {
|
||||
var $row = $( row );
|
||||
|
||||
if ( $row.is( '.refund' ) ) {
|
||||
delete_refunds.push( parseInt( $( $row ).data( 'order_refund_id' ), 10 ) );
|
||||
} else {
|
||||
delete_items.push( parseInt( $( $row ).data( 'order_item_id' ), 10 ) );
|
||||
}
|
||||
return ;
|
||||
});
|
||||
|
||||
if ( delete_items.length ) {
|
||||
deferred.push( $.ajax({
|
||||
url : woocommerce_admin_meta_boxes.ajax_url,
|
||||
data: {
|
||||
order_id : woocommerce_admin_meta_boxes.post_id,
|
||||
order_item_ids: delete_items,
|
||||
action: 'woocommerce_remove_order_item',
|
||||
security: woocommerce_admin_meta_boxes.order_item_nonce
|
||||
},
|
||||
type: 'POST'
|
||||
} ) );
|
||||
}
|
||||
|
||||
if ( delete_refunds.length ) {
|
||||
deferred.push( $.ajax( {
|
||||
url : woocommerce_admin_meta_boxes.ajax_url,
|
||||
data: {
|
||||
action: 'woocommerce_delete_refund',
|
||||
refund_id: delete_refunds,
|
||||
security: woocommerce_admin_meta_boxes.order_item_nonce
|
||||
},
|
||||
type: 'POST'
|
||||
} ) );
|
||||
}
|
||||
|
||||
if ( deferred ) {
|
||||
$.when.apply( $, deferred ).done( function() {
|
||||
wc_meta_boxes_order_items.reload_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
} );
|
||||
} else {
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
do_increase_stock: function( e ) {
|
||||
e.preventDefault();
|
||||
wc_meta_boxes_order_items.block();
|
||||
|
||||
var $table = $( 'table.woocommerce_order_items' );
|
||||
var $rows = $table.find( 'tr.selected' );
|
||||
var quantities = {};
|
||||
var item_ids = $.map( $rows, function( $row ) {
|
||||
return parseInt( $( $row ).data( 'order_item_id' ), 10 );
|
||||
});
|
||||
|
||||
$rows.each(function() {
|
||||
if ( $( this ).find( 'input.quantity' ).length ) {
|
||||
quantities[ $( this ).attr( 'data-order_item_id' ) ] = $( this ).find( 'input.quantity' ).val();
|
||||
}
|
||||
});
|
||||
|
||||
var data = {
|
||||
order_id: woocommerce_admin_meta_boxes.post_id,
|
||||
order_item_ids: item_ids,
|
||||
order_item_qty: quantities,
|
||||
action: 'woocommerce_increase_order_item_stock',
|
||||
security: woocommerce_admin_meta_boxes.order_item_nonce
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: woocommerce_admin_meta_boxes.ajax_url,
|
||||
data: data,
|
||||
type: 'POST',
|
||||
success: function( response ) {
|
||||
window.alert( response );
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
do_reduce_stock: function( e ) {
|
||||
e.preventDefault();
|
||||
wc_meta_boxes_order_items.block();
|
||||
|
||||
var $table = $( 'table.woocommerce_order_items' );
|
||||
var $rows = $table.find( 'tr.selected' );
|
||||
var quantities = {};
|
||||
var item_ids = $.map( $rows, function( $row ) {
|
||||
return parseInt( $( $row ).data( 'order_item_id' ), 10 );
|
||||
});
|
||||
|
||||
$rows.each(function() {
|
||||
if ( $( this ).find( 'input.quantity' ).length ) {
|
||||
quantities[ $( this ).attr( 'data-order_item_id' ) ] = $( this ).find( 'input.quantity' ).val();
|
||||
}
|
||||
});
|
||||
|
||||
var data = {
|
||||
order_id: woocommerce_admin_meta_boxes.post_id,
|
||||
order_item_ids: item_ids,
|
||||
order_item_qty: quantities,
|
||||
action: 'woocommerce_reduce_order_item_stock',
|
||||
security: woocommerce_admin_meta_boxes.order_item_nonce
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: woocommerce_admin_meta_boxes.ajax_url,
|
||||
data: data,
|
||||
type: 'POST',
|
||||
success: function( response ) {
|
||||
window.alert( response );
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
backbone: {
|
||||
|
||||
init: function( e, target ) {
|
||||
if ( 'wc-modal-add-products' === target ) {
|
||||
$( document.body ).trigger( 'wc-enhanced-select-init' );
|
||||
$( '#add_item_id' ).selectWoo( 'open' ).selectWoo( 'focus' );
|
||||
|
||||
$( this ).on( 'change', '.wc-product-search', function() {
|
||||
if ( ! $( this ).closest( 'tr' ).is( ':last-child' ) ) {
|
||||
return;
|
||||
}
|
||||
var item_table = $( this ).closest( 'table.widefat' ),
|
||||
item_table_body = item_table.find( 'tbody' ),
|
||||
index = item_table_body.find( 'tr' ).length,
|
||||
row = item_table_body.data( 'row' ).replace( /\[0\]/g, '[' + index + ']' );
|
||||
|
||||
item_table_body.append( '<tr>' + row + '</tr>' );
|
||||
$( document.body ).trigger( 'wc-enhanced-select-init' );
|
||||
} );
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1100,40 +935,58 @@ jQuery( function ( $ ) {
|
|||
wc_meta_boxes_order_items.backbone.add_tax( rate_id, manual_rate_id );
|
||||
}
|
||||
if ( 'wc-modal-add-products' === target ) {
|
||||
wc_meta_boxes_order_items.backbone.add_item( data.add_order_items );
|
||||
// Build array of data.
|
||||
var item_table = $( this ).find( 'table.widefat' ),
|
||||
item_table_body = item_table.find( 'tbody' ),
|
||||
rows = item_table_body.find( 'tr' ),
|
||||
add_items = [];
|
||||
|
||||
$( rows ).each( function() {
|
||||
var item_id = $( this ).find( ':input[name="item_id"]' ).val(),
|
||||
item_qty = $( this ).find( ':input[name="item_qty"]' ).val();
|
||||
|
||||
add_items.push( {
|
||||
'id' : item_id,
|
||||
'qty': item_qty ? item_qty: 1
|
||||
} );
|
||||
} );
|
||||
|
||||
return wc_meta_boxes_order_items.backbone.add_items( add_items );
|
||||
}
|
||||
},
|
||||
|
||||
add_item: function( add_item_ids ) {
|
||||
if ( add_item_ids ) {
|
||||
wc_meta_boxes_order_items.block();
|
||||
add_items: function( add_items ) {
|
||||
wc_meta_boxes_order_items.block();
|
||||
|
||||
var data = {
|
||||
action : 'woocommerce_add_order_item',
|
||||
item_to_add: add_item_ids,
|
||||
dataType : 'json',
|
||||
order_id : woocommerce_admin_meta_boxes.post_id,
|
||||
security : woocommerce_admin_meta_boxes.order_item_nonce,
|
||||
data : $( '#wc-backbone-modal-dialog form' ).serialize()
|
||||
};
|
||||
var data = {
|
||||
action : 'woocommerce_add_order_item',
|
||||
order_id : woocommerce_admin_meta_boxes.post_id,
|
||||
security : woocommerce_admin_meta_boxes.order_item_nonce,
|
||||
data : add_items
|
||||
};
|
||||
|
||||
// Check if items have changed, if so pass them through so we can save them before adding a new item.
|
||||
if ( 'true' === $( 'button.cancel-action' ).attr( 'data-reload' ) ) {
|
||||
data.items = $( 'table.woocommerce_order_items :input[name], .wc-order-totals-items :input[name]' ).serialize();
|
||||
}
|
||||
// Check if items have changed, if so pass them through so we can save them before adding a new item.
|
||||
if ( 'true' === $( 'button.cancel-action' ).attr( 'data-reload' ) ) {
|
||||
data.items = $( 'table.woocommerce_order_items :input[name], .wc-order-totals-items :input[name]' ).serialize();
|
||||
}
|
||||
|
||||
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: woocommerce_admin_meta_boxes.ajax_url,
|
||||
data: data,
|
||||
success: function( response ) {
|
||||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
} else {
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
wc_meta_boxes_order_items.unblock();
|
||||
});
|
||||
}
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
},
|
||||
|
||||
add_tax: function( rate_id, manual_rate_id ) {
|
||||
|
@ -1169,8 +1022,7 @@ jQuery( function ( $ ) {
|
|||
if ( response.success ) {
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).empty();
|
||||
$( '#woocommerce-order-items' ).find( '.inside' ).append( response.data.html );
|
||||
wc_meta_boxes_order.init_tiptip();
|
||||
wc_meta_boxes_order_items.stupidtable.init();
|
||||
wc_meta_boxes_order_items.reloaded_items();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
}
|
||||
|
|
|
@ -320,7 +320,11 @@ jQuery( function( $ ) {
|
|||
}
|
||||
|
||||
$( document.body ).trigger( 'wc-enhanced-select-init' );
|
||||
|
||||
attribute_row_indexes();
|
||||
|
||||
$attributes.find( '.woocommerce_attribute' ).last().find( 'h3' ).click();
|
||||
|
||||
$wrapper.unblock();
|
||||
|
||||
$( document.body ).trigger( 'woocommerce_added_attribute' );
|
||||
|
@ -435,31 +439,47 @@ jQuery( function( $ ) {
|
|||
// Save attributes and update variations.
|
||||
$( '.save_attributes' ).on( 'click', function() {
|
||||
|
||||
$( '#woocommerce-product-data' ).block({
|
||||
$( '.product_attributes' ).block({
|
||||
message: null,
|
||||
overlayCSS: {
|
||||
background: '#fff',
|
||||
opacity: 0.6
|
||||
}
|
||||
});
|
||||
|
||||
var original_data = $( '.product_attributes' ).find( 'input, select, textarea' );
|
||||
var data = {
|
||||
post_id : woocommerce_admin_meta_boxes.post_id,
|
||||
product_type: $( '#product-type' ).val(),
|
||||
data : $( '.product_attributes' ).find( 'input, select, textarea' ).serialize(),
|
||||
data : original_data.serialize(),
|
||||
action : 'woocommerce_save_attributes',
|
||||
security : woocommerce_admin_meta_boxes.save_attributes_nonce
|
||||
};
|
||||
|
||||
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function() {
|
||||
// Reload variations panel.
|
||||
var this_page = window.location.toString();
|
||||
this_page = this_page.replace( 'post-new.php?', 'post.php?post=' + woocommerce_admin_meta_boxes.post_id + '&action=edit&' );
|
||||
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
|
||||
if ( response.error ) {
|
||||
// Error.
|
||||
window.alert( response.error );
|
||||
} else if ( response.data ) {
|
||||
// Success.
|
||||
$( '.product_attributes' ).html( response.data.html );
|
||||
$( '.product_attributes' ).unblock();
|
||||
|
||||
// Load variations panel.
|
||||
$( '#variable_product_options' ).load( this_page + ' #variable_product_options_inner', function() {
|
||||
$( '#variable_product_options' ).trigger( 'reload' );
|
||||
});
|
||||
// Make sure the dropdown is not disabled for empty value attributes.
|
||||
var nr_elements = original_data.length / 6;
|
||||
for ( var i = 0; i < nr_elements; i++ ) {
|
||||
if ( typeof( original_data ) !== 'undefined' && original_data[ i * 6 + 2 ].value === '' ) {
|
||||
$( 'select.attribute_taxonomy' ).find( 'option[value="' + original_data[ i * 6 ].value + '"]' ).removeAttr( 'disabled' );
|
||||
}
|
||||
}
|
||||
|
||||
// Reload variations panel.
|
||||
var this_page = window.location.toString();
|
||||
this_page = this_page.replace( 'post-new.php?', 'post.php?post=' + woocommerce_admin_meta_boxes.post_id + '&action=edit&' );
|
||||
|
||||
$( '#variable_product_options' ).load( this_page + ' #variable_product_options_inner', function() {
|
||||
$( '#variable_product_options' ).trigger( 'reload' );
|
||||
} );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
jQuery(function(t){t("#tiptip_holder").removeAttr("style"),t("#tiptip_arrow").removeAttr("style"),t(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),t("#titlediv").find("#title").keyup(function(e){if("9"===(e.keyCode||e.which)&&t("#woocommerce-coupon-description").length>0)return e.stopPropagation(),t("#woocommerce-coupon-description").focus(),!1}),t(".wc-metaboxes-wrapper").on("click",".wc-metabox > h3",function(){t(this).parent(".wc-metabox").toggleClass("closed").toggleClass("open")}),t(document.body).on("wc-init-tabbed-panels",function(){t("ul.wc-tabs").show(),t("ul.wc-tabs a").click(function(e){e.preventDefault();var o=t(this).closest("div.panel-wrap");t("ul.wc-tabs li",o).removeClass("active"),t(this).parent().addClass("active"),t("div.panel",o).hide(),t(t(this).attr("href")).show()}),t("div.panel-wrap").each(function(){t(this).find("ul.wc-tabs li").eq(0).find("a").click()})}).trigger("wc-init-tabbed-panels"),t(document.body).on("wc-init-datepickers",function(){t(".date-picker-field, .date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0})}).trigger("wc-init-datepickers"),t(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(e){t(e.target).filter(":input, option, .sort").length||t(this).next(".wc-metabox-content").stop().slideToggle()}).on("click",".expand_all",function(){return t(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").show(),!1}).on("click",".close_all",function(){return t(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").hide(),!1}),t(".wc-metabox.closed").each(function(){t(this).find(".wc-metabox-content").hide()})});
|
||||
jQuery(function(o){o("#tiptip_holder").removeAttr("style"),o("#tiptip_arrow").removeAttr("style"),o(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),o("#titlediv").find("#title").keyup(function(t){if("9"===(t.keyCode||t.which)&&0<o("#woocommerce-coupon-description").length)return t.stopPropagation(),o("#woocommerce-coupon-description").focus(),!1}),o(".wc-metaboxes-wrapper").on("click",".wc-metabox > h3",function(){o(this).parent(".wc-metabox").toggleClass("closed").toggleClass("open")}),o(document.body).on("wc-init-tabbed-panels",function(){o("ul.wc-tabs").show(),o("ul.wc-tabs a").click(function(t){t.preventDefault();var e=o(this).closest("div.panel-wrap");o("ul.wc-tabs li",e).removeClass("active"),o(this).parent().addClass("active"),o("div.panel",e).hide(),o(o(this).attr("href")).show()}),o("div.panel-wrap").each(function(){o(this).find("ul.wc-tabs li").eq(0).find("a").click()})}).trigger("wc-init-tabbed-panels"),o(document.body).on("wc-init-datepickers",function(){o(".date-picker-field, .date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0})}).trigger("wc-init-datepickers"),o(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(t){o(t.target).filter(":input, option, .sort").length||o(this).next(".wc-metabox-content").stop().slideToggle()}).on("click",".expand_all",function(){return o(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").show(),!1}).on("click",".close_all",function(){return o(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > .wc-metabox-content").hide(),!1}),o(".wc-metabox.closed").each(function(){o(this).find(".wc-metabox-content").hide()})});
|
|
@ -0,0 +1,90 @@
|
|||
/*global woocommerce_network_orders */
|
||||
(function( $, _, undefined ) {
|
||||
|
||||
if ( 'undefined' === typeof woocommerce_network_orders ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var orders = [],
|
||||
promises = [], // Track completion (pass or fail) of ajax requests.
|
||||
deferred = [], // Tracks the ajax deferreds.
|
||||
$tbody = $( document.getElementById( 'network-orders-tbody' ) ),
|
||||
template = _.template( $( document.getElementById( 'network-orders-row-template') ).text() ),
|
||||
$loadingIndicator = $( document.getElementById( 'woocommerce-network-order-table-loading' ) ),
|
||||
$orderTable = $( document.getElementById( 'woocommerce-network-order-table' ) ),
|
||||
$noneFound = $( document.getElementById( 'woocommerce-network-orders-no-orders' ) );
|
||||
|
||||
// No sites, so bail.
|
||||
if ( ! woocommerce_network_orders.sites.length ) {
|
||||
$loadingIndicator.removeClass( 'is-active' );
|
||||
$orderTable.removeClass( 'is-active' );
|
||||
$noneFound.addClass( 'is-active' );
|
||||
return;
|
||||
}
|
||||
|
||||
$.each( woocommerce_network_orders.sites, function( index, value ) {
|
||||
promises[ index ] = $.Deferred();
|
||||
deferred.push( $.ajax( {
|
||||
url : woocommerce_network_orders.order_endpoint,
|
||||
data: {
|
||||
_wpnonce: woocommerce_network_orders.nonce,
|
||||
network_orders: true,
|
||||
blog_id: value
|
||||
},
|
||||
type: 'GET'
|
||||
} ).success(function( response ) {
|
||||
var orderindex;
|
||||
|
||||
for ( orderindex in response ) {
|
||||
orders.push( response[ orderindex ] );
|
||||
}
|
||||
|
||||
promises[ index ].resolve();
|
||||
}).fail(function (){
|
||||
promises[ index ].resolve();
|
||||
}) );
|
||||
} );
|
||||
|
||||
if ( promises.length > 0 ) {
|
||||
$.when.apply( $, promises ).done( function() {
|
||||
var orderindex,
|
||||
currentOrder;
|
||||
|
||||
// Sort orders, newest first
|
||||
orders.sort(function( a, b ) {
|
||||
var adate, bdate;
|
||||
|
||||
adate = Date.parse( a.date_created_gmt );
|
||||
bdate = Date.parse( b.date_created_gmt );
|
||||
|
||||
if ( adate === bdate ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( adate < bdate ) {
|
||||
return 1;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
});
|
||||
|
||||
if ( orders.length > 0 ) {
|
||||
for ( orderindex in orders ) {
|
||||
currentOrder = orders[ orderindex ];
|
||||
|
||||
$tbody.append( template( currentOrder ) );
|
||||
}
|
||||
|
||||
$noneFound.removeClass( 'is-active' );
|
||||
$loadingIndicator.removeClass( 'is-active' );
|
||||
$orderTable.addClass( 'is-active' );
|
||||
} else {
|
||||
$noneFound.addClass( 'is-active' );
|
||||
$loadingIndicator.removeClass( 'is-active' );
|
||||
$orderTable.removeClass( 'is-active' );
|
||||
}
|
||||
|
||||
} );
|
||||
}
|
||||
|
||||
})( jQuery, _ );
|
|
@ -0,0 +1 @@
|
|||
!function(o,e,r){if("undefined"!=typeof woocommerce_network_orders){var t=[],n=[],s=[],a=o(document.getElementById("network-orders-tbody")),c=e.template(o(document.getElementById("network-orders-row-template")).text()),d=o(document.getElementById("woocommerce-network-order-table-loading")),i=o(document.getElementById("woocommerce-network-order-table")),m=o(document.getElementById("woocommerce-network-orders-no-orders"));if(!woocommerce_network_orders.sites.length)return d.removeClass("is-active"),i.removeClass("is-active"),m.addClass("is-active");o.each(woocommerce_network_orders.sites,function(r,e){n[r]=o.Deferred(),s.push(o.ajax({url:woocommerce_network_orders.order_endpoint,data:{_wpnonce:woocommerce_network_orders.nonce,network_orders:!0,blog_id:e},type:"GET"}).success(function(e){var o;for(o in e)t.push(e[o]);n[r].resolve()}).fail(function(){n[r].resolve()}))}),0<n.length&&o.when.apply(o,n).done(function(){var e,o;if(t.sort(function(e,o){var r,t;return(r=Date.parse(e.date_created_gmt))===(t=Date.parse(o.date_created_gmt))?0:r<t?1:-1}),0<t.length){for(e in t)o=t[e],a.append(c(o));m.removeClass("is-active"),d.removeClass("is-active"),i.addClass("is-active")}else m.addClass("is-active"),d.removeClass("is-active"),i.removeClass("is-active")})}}(jQuery,_);
|
|
@ -1 +1 @@
|
|||
jQuery(function(t){t("table.widefat tbody th, table.widefat tbody td").css("cursor","move"),t("table.widefat tbody").sortable({items:"tr:not(.inline-edit-row)",cursor:"move",axis:"y",containment:"table.widefat",scrollSensitivity:40,helper:function(e,i){return i.each(function(){t(this).width(t(this).width())}),i},start:function(t,e){e.item.css("background-color","#ffffff"),e.item.children("td, th").css("border-bottom-width","0"),e.item.css("outline","1px solid #dfdfdf")},stop:function(t,e){e.item.removeAttr("style"),e.item.children("td,th").css("border-bottom-width","1px")},update:function(e,i){t("table.widefat tbody th, table.widefat tbody td").css("cursor","default"),t("table.widefat tbody").sortable("disable");var o=i.item.find(".check-column input").val(),n=i.item.prev().find(".check-column input").val(),d=i.item.next().find(".check-column input").val();i.item.find(".check-column input").hide().after('<img alt="processing" src="images/wpspin_light.gif" class="waiting" style="margin-left: 6px;" />'),t.post(ajaxurl,{action:"woocommerce_product_ordering",id:o,previd:n,nextid:d},function(e){t.each(e,function(e,i){t("#inline_"+e+" .menu_order").html(i)}),i.item.find(".check-column input").show().siblings("img").remove(),t("table.widefat tbody th, table.widefat tbody td").css("cursor","move"),t("table.widefat tbody").sortable("enable")}),t("table.widefat tbody tr").each(function(){t("table.widefat tbody tr").index(this)%2==0?t(this).addClass("alternate"):t(this).removeClass("alternate")})}})});
|
||||
jQuery(function(d){d("table.widefat tbody th, table.widefat tbody td").css("cursor","move"),d("table.widefat tbody").sortable({items:"tr:not(.inline-edit-row)",cursor:"move",axis:"y",containment:"table.widefat",scrollSensitivity:40,helper:function(t,e){return e.each(function(){d(this).width(d(this).width())}),e},start:function(t,e){e.item.css("background-color","#ffffff"),e.item.children("td, th").css("border-bottom-width","0"),e.item.css("outline","1px solid #dfdfdf")},stop:function(t,e){e.item.removeAttr("style"),e.item.children("td,th").css("border-bottom-width","1px")},update:function(t,e){d("table.widefat tbody th, table.widefat tbody td").css("cursor","default"),d("table.widefat tbody").sortable("disable");var i=e.item.find(".check-column input").val(),o=e.item.prev().find(".check-column input").val(),n=e.item.next().find(".check-column input").val();e.item.find(".check-column input").hide().after('<img alt="processing" src="images/wpspin_light.gif" class="waiting" style="margin-left: 6px;" />'),d.post(ajaxurl,{action:"woocommerce_product_ordering",id:i,previd:o,nextid:n},function(t){d.each(t,function(t,e){d("#inline_"+t+" .menu_order").html(e)}),e.item.find(".check-column input").show().siblings("img").remove(),d("table.widefat tbody th, table.widefat tbody td").css("cursor","move"),d("table.widefat tbody").sortable("enable")}),d("table.widefat tbody tr").each(function(){d("table.widefat tbody tr").index(this)%2==0?d(this).addClass("alternate"):d(this).removeClass("alternate")})}})});
|
|
@ -59,20 +59,31 @@ jQuery(function( $ ) {
|
|||
$( 'input[name="_featured"]', '.inline-edit-row' ).removeAttr( 'checked' );
|
||||
}
|
||||
|
||||
if ( 'yes' === manage_stock ) {
|
||||
$( '.stock_qty_field, .backorder_field', '.inline-edit-row' ).show().removeAttr( 'style' );
|
||||
$( '.stock_status_field' ).hide();
|
||||
$( 'input[name="_manage_stock"]', '.inline-edit-row' ).attr( 'checked', 'checked' );
|
||||
} else {
|
||||
$( '.stock_qty_field, .backorder_field', '.inline-edit-row' ).hide();
|
||||
$( '.stock_status_field' ).show().removeAttr( 'style' );
|
||||
$( 'input[name="_manage_stock"]', '.inline-edit-row' ).removeAttr( 'checked' );
|
||||
}
|
||||
|
||||
// Conditional display
|
||||
var product_type = $wc_inline_data.find( '.product_type' ).text(),
|
||||
product_is_virtual = $wc_inline_data.find( '.product_is_virtual' ).text();
|
||||
|
||||
var product_supports_stock_status = 'external' !== product_type;
|
||||
var product_supports_stock_fields = 'external' !== product_type && 'grouped' !== product_type;
|
||||
|
||||
$( '.stock_fields, .manage_stock_field, .stock_status_field, .backorder_field' ).show();
|
||||
|
||||
if ( product_supports_stock_fields ) {
|
||||
if ( 'yes' === manage_stock ) {
|
||||
$( '.stock_qty_field, .backorder_field', '.inline-edit-row' ).show().removeAttr( 'style' );
|
||||
$( '.stock_status_field' ).hide();
|
||||
$( '.manage_stock_field input' ).prop( 'checked', true );
|
||||
} else {
|
||||
$( '.stock_qty_field, .backorder_field', '.inline-edit-row' ).hide();
|
||||
$( '.stock_status_field' ).show().removeAttr( 'style' );
|
||||
$( '.manage_stock_field input' ).prop( 'checked', false );
|
||||
}
|
||||
} else if ( product_supports_stock_status ) {
|
||||
$( '.stock_fields, .manage_stock_field, .backorder_field' ).hide();
|
||||
} else {
|
||||
$( '.stock_fields, .manage_stock_field, .stock_status_field, .backorder_field' ).hide();
|
||||
}
|
||||
|
||||
if ( 'simple' === product_type || 'external' === product_type ) {
|
||||
$( '.price_fields', '.inline-edit-row' ).show().removeAttr( 'style' );
|
||||
} else {
|
||||
|
@ -85,12 +96,6 @@ jQuery(function( $ ) {
|
|||
$( '.dimension_fields', '.inline-edit-row' ).show().removeAttr( 'style' );
|
||||
}
|
||||
|
||||
if ( 'grouped' === product_type ) {
|
||||
$( '.stock_fields', '.inline-edit-row' ).hide();
|
||||
} else {
|
||||
$( '.stock_fields', '.inline-edit-row' ).show().removeAttr( 'style' );
|
||||
}
|
||||
|
||||
// Rename core strings
|
||||
$( 'input[name="comment_status"]' ).parent().find( '.checkbox-title' ).text( woocommerce_quick_edit.strings.allow_reviews );
|
||||
});
|
||||
|
@ -124,6 +129,6 @@ jQuery(function( $ ) {
|
|||
});
|
||||
|
||||
$( '#wpbody' ).on( 'click', '.trash-product', function() {
|
||||
return window.confirm( woocommerce_admin.i18_delete_product_notice );
|
||||
return window.confirm( woocommerce_admin.i18n_delete_product_notice );
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
jQuery(function(e){e("#the-list").on("click",".editinline",function(){inlineEditPost.revert();var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var i=e("#woocommerce_inline_"+t),n=i.find(".sku").text(),o=i.find(".regular_price").text(),d=i.find(".sale_price ").text(),l=i.find(".weight").text(),s=i.find(".length").text(),c=i.find(".width").text(),r=i.find(".height").text(),a=i.find(".shipping_class").text(),_=i.find(".visibility").text(),m=i.find(".stock_status").text(),p=i.find(".stock").text(),u=i.find(".featured").text(),w=i.find(".manage_stock").text(),f=i.find(".menu_order").text(),h=i.find(".tax_status").text(),k=i.find(".tax_class").text(),v=i.find(".backorders").text(),x=o.replace(".",woocommerce_admin.mon_decimal_point),g=d.replace(".",woocommerce_admin.mon_decimal_point);e('input[name="_sku"]',".inline-edit-row").val(n),e('input[name="_regular_price"]',".inline-edit-row").val(x),e('input[name="_sale_price"]',".inline-edit-row").val(g),e('input[name="_weight"]',".inline-edit-row").val(l),e('input[name="_length"]',".inline-edit-row").val(s),e('input[name="_width"]',".inline-edit-row").val(c),e('input[name="_height"]',".inline-edit-row").val(r),e('select[name="_shipping_class"] option:selected',".inline-edit-row").attr("selected",!1).change(),e('select[name="_shipping_class"] option[value="'+a+'"]').attr("selected","selected").change(),e('input[name="_stock"]',".inline-edit-row").val(p),e('input[name="menu_order"]',".inline-edit-row").val(f),e('select[name="_tax_status"] option, select[name="_tax_class"] option, select[name="_visibility"] option, select[name="_stock_status"] option, select[name="_backorders"] option').removeAttr("selected"),e('select[name="_tax_status"] option[value="'+h+'"]',".inline-edit-row").attr("selected","selected"),e('select[name="_tax_class"] option[value="'+k+'"]',".inline-edit-row").attr("selected","selected"),e('select[name="_visibility"] option[value="'+_+'"]',".inline-edit-row").attr("selected","selected"),e('select[name="_stock_status"] option[value="'+m+'"]',".inline-edit-row").attr("selected","selected"),e('select[name="_backorders"] option[value="'+v+'"]',".inline-edit-row").attr("selected","selected"),"yes"===u?e('input[name="_featured"]',".inline-edit-row").attr("checked","checked"):e('input[name="_featured"]',".inline-edit-row").removeAttr("checked"),"yes"===w?(e(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),e(".stock_status_field").hide(),e('input[name="_manage_stock"]',".inline-edit-row").attr("checked","checked")):(e(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),e(".stock_status_field").show().removeAttr("style"),e('input[name="_manage_stock"]',".inline-edit-row").removeAttr("checked"));var y=i.find(".product_type").text(),b=i.find(".product_is_virtual").text();"simple"===y||"external"===y?e(".price_fields",".inline-edit-row").show().removeAttr("style"):e(".price_fields",".inline-edit-row").hide(),"yes"===b?e(".dimension_fields",".inline-edit-row").hide():e(".dimension_fields",".inline-edit-row").show().removeAttr("style"),"grouped"===y?e(".stock_fields",".inline-edit-row").hide():e(".stock_fields",".inline-edit-row").show().removeAttr("style"),e('input[name="comment_status"]').parent().find(".checkbox-title").text(woocommerce_quick_edit.strings.allow_reviews)}),e("#the-list").on("change",'.inline-edit-row input[name="_manage_stock"]',function(){e(this).is(":checked")?(e(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),e(".stock_status_field").hide()):(e(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),e(".stock_status_field").show().removeAttr("style"))}),e("#wpbody").on("click","#doaction, #doaction2",function(){e("input.text",".inline-edit-row").val(""),e("#woocommerce-fields").find("select").prop("selectedIndex",0),e("#woocommerce-fields-bulk").find(".inline-edit-group .change-input").hide()}),e("#wpbody").on("change","#woocommerce-fields-bulk .inline-edit-group .change_to",function(){0<e(this).val()?e(this).closest("div").find(".change-input").show():e(this).closest("div").find(".change-input").hide()}),e("#wpbody").on("click",".trash-product",function(){return window.confirm(woocommerce_admin.i18_delete_product_notice)})});
|
||||
jQuery(function(q){q("#the-list").on("click",".editinline",function(){inlineEditPost.revert();var e=q(this).closest("tr").attr("id");e=e.replace("post-","");var t=q("#woocommerce_inline_"+e),i=t.find(".sku").text(),n=t.find(".regular_price").text(),o=t.find(".sale_price ").text(),d=t.find(".weight").text(),s=t.find(".length").text(),l=t.find(".width").text(),c=t.find(".height").text(),a=t.find(".shipping_class").text(),r=t.find(".visibility").text(),_=t.find(".stock_status").text(),m=t.find(".stock").text(),p=t.find(".featured").text(),f=t.find(".manage_stock").text(),u=t.find(".menu_order").text(),h=t.find(".tax_status").text(),w=t.find(".tax_class").text(),k=t.find(".backorders").text(),v=n.replace(".",woocommerce_admin.mon_decimal_point),x=o.replace(".",woocommerce_admin.mon_decimal_point);q('input[name="_sku"]',".inline-edit-row").val(i),q('input[name="_regular_price"]',".inline-edit-row").val(v),q('input[name="_sale_price"]',".inline-edit-row").val(x),q('input[name="_weight"]',".inline-edit-row").val(d),q('input[name="_length"]',".inline-edit-row").val(s),q('input[name="_width"]',".inline-edit-row").val(l),q('input[name="_height"]',".inline-edit-row").val(c),q('select[name="_shipping_class"] option:selected',".inline-edit-row").attr("selected",!1).change(),q('select[name="_shipping_class"] option[value="'+a+'"]').attr("selected","selected").change(),q('input[name="_stock"]',".inline-edit-row").val(m),q('input[name="menu_order"]',".inline-edit-row").val(u),q('select[name="_tax_status"] option, select[name="_tax_class"] option, select[name="_visibility"] option, select[name="_stock_status"] option, select[name="_backorders"] option').removeAttr("selected"),q('select[name="_tax_status"] option[value="'+h+'"]',".inline-edit-row").attr("selected","selected"),q('select[name="_tax_class"] option[value="'+w+'"]',".inline-edit-row").attr("selected","selected"),q('select[name="_visibility"] option[value="'+r+'"]',".inline-edit-row").attr("selected","selected"),q('select[name="_stock_status"] option[value="'+_+'"]',".inline-edit-row").attr("selected","selected"),q('select[name="_backorders"] option[value="'+k+'"]',".inline-edit-row").attr("selected","selected"),"yes"===p?q('input[name="_featured"]',".inline-edit-row").attr("checked","checked"):q('input[name="_featured"]',".inline-edit-row").removeAttr("checked");var g=t.find(".product_type").text(),y=t.find(".product_is_virtual").text(),b="external"!==g,A="external"!==g&&"grouped"!==g;q(".stock_fields, .manage_stock_field, .stock_status_field, .backorder_field").show(),A?"yes"===f?(q(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),q(".stock_status_field").hide(),q(".manage_stock_field input").prop("checked",!0)):(q(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),q(".stock_status_field").show().removeAttr("style"),q(".manage_stock_field input").prop("checked",!1)):b?q(".stock_fields, .manage_stock_field, .backorder_field").hide():q(".stock_fields, .manage_stock_field, .stock_status_field, .backorder_field").hide(),"simple"===g||"external"===g?q(".price_fields",".inline-edit-row").show().removeAttr("style"):q(".price_fields",".inline-edit-row").hide(),"yes"===y?q(".dimension_fields",".inline-edit-row").hide():q(".dimension_fields",".inline-edit-row").show().removeAttr("style"),q('input[name="comment_status"]').parent().find(".checkbox-title").text(woocommerce_quick_edit.strings.allow_reviews)}),q("#the-list").on("change",'.inline-edit-row input[name="_manage_stock"]',function(){q(this).is(":checked")?(q(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),q(".stock_status_field").hide()):(q(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),q(".stock_status_field").show().removeAttr("style"))}),q("#wpbody").on("click","#doaction, #doaction2",function(){q("input.text",".inline-edit-row").val(""),q("#woocommerce-fields").find("select").prop("selectedIndex",0),q("#woocommerce-fields-bulk").find(".inline-edit-group .change-input").hide()}),q("#wpbody").on("change","#woocommerce-fields-bulk .inline-edit-group .change_to",function(){0<q(this).val()?q(this).closest("div").find(".change-input").show():q(this).closest("div").find(".change-input").hide()}),q("#wpbody").on("click",".trash-product",function(){return window.confirm(woocommerce_admin.i18n_delete_product_notice)})});
|
|
@ -1 +1 @@
|
|||
jQuery(function(t){function e(e,a,n){t('<div class="chart-tooltip">'+n+"</div>").css({top:a-16,left:e+20}).appendTo("body").fadeIn(200)}var a=null,n=null;t(".chart-placeholder").bind("plothover",function(i,r,o){if(o){if((a!==o.dataIndex||n!==o.seriesIndex)&&(a=o.dataIndex,n=o.seriesIndex,t(".chart-tooltip").remove(),o.series.points.show||o.series.enable_tooltip)){var s=o.series.data[o.dataIndex][1],l="";o.series.prepend_label&&(l=l+o.series.label+": "),o.series.prepend_tooltip&&(l+=o.series.prepend_tooltip),l+=s,o.series.append_tooltip&&(l+=o.series.append_tooltip),o.series.pie.show?e(r.pageX,r.pageY,l):e(o.pageX,o.pageY,l)}}else t(".chart-tooltip").remove(),a=null}),t(".wc_sparkline.bars").each(function(){var e={grid:{show:!1}},a=[{data:t(this).data("sparkline"),color:t(this).data("color"),bars:{fillColor:t(this).data("color"),fill:!0,show:!0,lineWidth:1,barWidth:t(this).data("barwidth"),align:"center"},shadowSize:0}];t.plot(t(this),a,e)}),t(".wc_sparkline.lines").each(function(){var e={grid:{show:!1}},a=[{data:t(this).data("sparkline"),color:t(this).data("color"),lines:{fill:!1,show:!0,lineWidth:1,align:"center"},shadowSize:0}];t.plot(t(this),a,e)});var i=t(".range_datepicker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,minDate:"-20Y",maxDate:"+1D",showButtonPanel:!0,showOn:"focus",buttonImageOnly:!0,onSelect:function(){var e=t(this).is(".from")?"minDate":"maxDate",a=t(this).datepicker("getDate");i.not(this).datepicker("option",e,a)}});"undefined"==typeof document.createElement("a").download&&t(".export_csv").hide(),t(".export_csv").click(function(){var e=t(this).data("exclude_series")||"";e=e.toString(),e=e.split(",");var a,n,i,r=t(this).data("xaxes"),o=t(this).data("groupby"),s=t(this).data("index_type"),l="data:text/csv;charset=utf-8,\ufeff";if("table"===t(this).data("export"))t(this).offsetParent().find("thead tr,tbody tr").each(function(){t(this).find("th, td").each(function(){var e=t(this).text();e=e.replace("[?]","").replace("#",""),l+='"'+e+'",'}),l=l.substring(0,l.length-1),l+="\n"}),t(this).offsetParent().find("tfoot tr").each(function(){t(this).find("th, td").each(function(){var e=t(this).text();if(e=e.replace("[?]","").replace("#",""),l+='"'+e+'",',t(this).attr("colspan")>0)for(p=1;p<t(this).attr("colspan");p++)l+='"",'}),l=l.substring(0,l.length-1),l+="\n"});else{if(!window.main_chart)return!1;var h=window.main_chart.getData(),d=[];for(l+='"'+r+'",',t.each(h,function(a,n){e&&-1!==t.inArray(a.toString(),e)||d.push(n)}),a=0;a<d.length;++a)l+='"'+d[a].label+'",';l=l.substring(0,l.length-1),l+="\n";var c={};for(a=0;a<d.length;++a)for(n=d[a].data,i=0;i<n.length;++i){c[n[i][0]]=[];for(var p=0;p<d.length;++p)c[n[i][0]].push(0)}for(a=0;a<d.length;++a)for(n=d[a].data,i=0;i<n.length;++i)c[n[i][0]][a]=n[i][1];t.each(c,function(t,e){var a=new Date(parseInt(t,10));l+="none"===s?'"'+t+'",':"day"===o?'"'+a.getUTCFullYear()+"-"+parseInt(a.getUTCMonth()+1,10)+"-"+a.getUTCDate()+'",':'"'+a.getUTCFullYear()+"-"+parseInt(a.getUTCMonth()+1,10)+'",';for(var n=0;n<e.length;++n){var i=e[n];Math.round(i)!==i&&(i=(i=parseFloat(i)).toFixed(2)),l+='"'+i+'",'}l=l.substring(0,l.length-1),l+="\n"})}return t(this).attr("href",encodeURI(l)),!0})});
|
||||
jQuery(function(f){function r(t,e,a){f('<div class="chart-tooltip">'+a+"</div>").css({top:e-16,left:t+20}).appendTo("body").fadeIn(200)}var o=null,s=null;f(".chart-placeholder").bind("plothover",function(t,e,a){if(a){if((o!==a.dataIndex||s!==a.seriesIndex)&&(o=a.dataIndex,s=a.seriesIndex,f(".chart-tooltip").remove(),a.series.points.show||a.series.enable_tooltip)){var n=a.series.data[a.dataIndex][1],i="";a.series.prepend_label&&(i=i+a.series.label+": "),a.series.prepend_tooltip&&(i+=a.series.prepend_tooltip),i+=n,a.series.append_tooltip&&(i+=a.series.append_tooltip),a.series.pie.show?r(e.pageX,e.pageY,i):r(a.pageX,a.pageY,i)}}else f(".chart-tooltip").remove(),o=null}),f(".wc_sparkline.bars").each(function(){var t=[{data:f(this).data("sparkline"),color:f(this).data("color"),bars:{fillColor:f(this).data("color"),fill:!0,show:!0,lineWidth:1,barWidth:f(this).data("barwidth"),align:"center"},shadowSize:0}];f.plot(f(this),t,{grid:{show:!1}})}),f(".wc_sparkline.lines").each(function(){var t=[{data:f(this).data("sparkline"),color:f(this).data("color"),lines:{fill:!1,show:!0,lineWidth:1,align:"center"},shadowSize:0}];f.plot(f(this),t,{grid:{show:!1}})});var a=f(".range_datepicker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,minDate:"-20Y",maxDate:"+1D",showButtonPanel:!0,showOn:"focus",buttonImageOnly:!0,onSelect:function(){var t=f(this).is(".from")?"minDate":"maxDate",e=f(this).datepicker("getDate");a.not(this).datepicker("option",t,e)}});"undefined"==typeof document.createElement("a").download&&f(".export_csv").hide(),f(".export_csv").click(function(){var a=f(this).data("exclude_series")||"";a=(a=a.toString()).split(",");var t,e,n,i=f(this).data("xaxes"),r=f(this).data("groupby"),o=f(this).data("index_type"),s=f(this).data("export"),l="data:text/csv;charset=utf-8,\ufeff";if("table"===s)f(this).offsetParent().find("thead tr,tbody tr").each(function(){f(this).find("th, td").each(function(){var t=f(this).text();t=t.replace("[?]","").replace("#",""),l+='"'+t+'",'}),l=l.substring(0,l.length-1),l+="\n"}),f(this).offsetParent().find("tfoot tr").each(function(){f(this).find("th, td").each(function(){var t=f(this).text();if(t=t.replace("[?]","").replace("#",""),l+='"'+t+'",',0<f(this).attr("colspan"))for(p=1;p<f(this).attr("colspan");p++)l+='"",'}),l=l.substring(0,l.length-1),l+="\n"});else{if(!window.main_chart)return!1;var h=window.main_chart.getData(),d=[];for(l+='"'+i+'",',f.each(h,function(t,e){a&&-1!==f.inArray(t.toString(),a)||d.push(e)}),t=0;t<d.length;++t)l+='"'+d[t].label+'",';l=l.substring(0,l.length-1),l+="\n";var c={};for(t=0;t<d.length;++t)for(e=d[t].data,n=0;n<e.length;++n){c[e[n][0]]=[];for(var p=0;p<d.length;++p)c[e[n][0]].push(0)}for(t=0;t<d.length;++t)for(e=d[t].data,n=0;n<e.length;++n)c[e[n][0]][t]=e[n][1];f.each(c,function(t,e){var a=new Date(parseInt(t,10));l+="none"===o?'"'+t+'",':"day"===r?'"'+a.getUTCFullYear()+"-"+parseInt(a.getUTCMonth()+1,10)+"-"+a.getUTCDate()+'",':'"'+a.getUTCFullYear()+"-"+parseInt(a.getUTCMonth()+1,10)+'",';for(var n=0;n<e.length;++n){var i=e[n];Math.round(i)!==i&&(i=(i=parseFloat(i)).toFixed(2)),l+='"'+i+'",'}l=l.substring(0,l.length-1),l+="\n"})}return f(this).attr("href",encodeURI(l)),!0})});
|
|
@ -17,7 +17,7 @@
|
|||
paginationTemplate = wp.template( 'wc-tax-table-pagination' ),
|
||||
$table = $( '.wc_tax_rates' ),
|
||||
$tbody = $( '#rates' ),
|
||||
$save_button = $( 'input[name="save"]' ),
|
||||
$save_button = $( ':input[name="save"]' ),
|
||||
$pagination = $( '#rates-pagination' ),
|
||||
$search_field = $( '#rates-search .wc-tax-rates-search-field' ),
|
||||
$submit = $( '.submit .button-primary[type=submit]' ),
|
||||
|
@ -91,7 +91,7 @@
|
|||
changes: self.changes
|
||||
},
|
||||
success: function( response, textStatus ) {
|
||||
if ( 'success' === textStatus ) {
|
||||
if ( 'success' === textStatus && response.success ) {
|
||||
WCTaxTableModelInstance.set( 'rates', response.data.rates );
|
||||
WCTaxTableModelInstance.trigger( 'change:rates' );
|
||||
|
||||
|
@ -125,7 +125,7 @@
|
|||
$pagination.on( 'change', 'input', { view: this }, this.onPageChange );
|
||||
$( window ).on( 'beforeunload', { view: this }, this.unloadConfirmation );
|
||||
$submit.on( 'click', { view: this }, this.onSubmit );
|
||||
$save_button.attr( 'disabled','disabled' );
|
||||
$save_button.prop( 'disabled', true );
|
||||
|
||||
// Can bind these directly to the buttons, as they won't get overwritten.
|
||||
$table.find( '.insert' ).on( 'click', { view: this }, this.onAddNewRow );
|
||||
|
@ -319,11 +319,11 @@
|
|||
},
|
||||
setUnloadConfirmation: function() {
|
||||
this.needsUnloadConfirm = true;
|
||||
$save_button.removeAttr( 'disabled' );
|
||||
$save_button.prop( 'disabled', false );
|
||||
},
|
||||
clearUnloadConfirmation: function() {
|
||||
this.needsUnloadConfirm = false;
|
||||
$save_button.attr( 'disabled', 'disabled' );
|
||||
$save_button.prop( 'disabled', true );
|
||||
},
|
||||
unloadConfirmation: function( event ) {
|
||||
if ( event.data.view.needsUnloadConfirm ) {
|
||||
|
|
|
@ -1,127 +1,172 @@
|
|||
/* global woocommerce_settings_params */
|
||||
( function( $ ) {
|
||||
/* global woocommerce_settings_params, wp */
|
||||
( function( $, params, wp ) {
|
||||
$( function() {
|
||||
// Sell Countries
|
||||
$( 'select#woocommerce_allowed_countries' ).change( function() {
|
||||
if ( 'specific' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
$( this ).closest('tr').next().next( 'tr' ).show();
|
||||
} else if ( 'all_except' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).show();
|
||||
$( this ).closest('tr').next().next( 'tr' ).hide();
|
||||
} else {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
$( this ).closest('tr').next().next( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
|
||||
// Sell Countries
|
||||
$( 'select#woocommerce_allowed_countries' ).change( function() {
|
||||
if ( 'specific' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
$( this ).closest('tr').next().next( 'tr' ).show();
|
||||
} else if ( 'all_except' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).show();
|
||||
$( this ).closest('tr').next().next( 'tr' ).hide();
|
||||
} else {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
$( this ).closest('tr').next().next( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
// Ship Countries
|
||||
$( 'select#woocommerce_ship_to_countries' ).change( function() {
|
||||
if ( 'specific' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).show();
|
||||
} else {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
|
||||
// Ship Countries
|
||||
$( 'select#woocommerce_ship_to_countries' ).change( function() {
|
||||
if ( 'specific' === $( this ).val() ) {
|
||||
$( this ).closest('tr').next( 'tr' ).show();
|
||||
} else {
|
||||
$( this ).closest('tr').next( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
// Stock management
|
||||
$( 'input#woocommerce_manage_stock' ).change( function() {
|
||||
if ( $( this ).is(':checked') ) {
|
||||
$( this ).closest('tbody').find( '.manage_stock_field' ).closest( 'tr' ).show();
|
||||
} else {
|
||||
$( this ).closest('tbody').find( '.manage_stock_field' ).closest( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
|
||||
// Stock management
|
||||
$( 'input#woocommerce_manage_stock' ).change( function() {
|
||||
if ( $( this ).is(':checked') ) {
|
||||
$( this ).closest('tbody').find( '.manage_stock_field' ).closest( 'tr' ).show();
|
||||
} else {
|
||||
$( this ).closest('tbody').find( '.manage_stock_field' ).closest( 'tr' ).hide();
|
||||
}
|
||||
}).change();
|
||||
// Color picker
|
||||
$( '.colorpick' )
|
||||
|
||||
// Color picker
|
||||
$( '.colorpick' )
|
||||
.iris({
|
||||
change: function( event, ui ) {
|
||||
$( this ).parent().find( '.colorpickpreview' ).css({ backgroundColor: ui.color.toString() });
|
||||
},
|
||||
hide: true,
|
||||
border: true
|
||||
})
|
||||
|
||||
.iris({
|
||||
change: function( event, ui ) {
|
||||
$( this ).parent().find( '.colorpickpreview' ).css({ backgroundColor: ui.color.toString() });
|
||||
},
|
||||
hide: true,
|
||||
border: true
|
||||
})
|
||||
.on( 'click focus', function( event ) {
|
||||
event.stopPropagation();
|
||||
$( '.iris-picker' ).hide();
|
||||
$( this ).closest( 'td' ).find( '.iris-picker' ).show();
|
||||
$( this ).data( 'original-value', $( this ).val() );
|
||||
})
|
||||
|
||||
.on( 'click focus', function( event ) {
|
||||
event.stopPropagation();
|
||||
.on( 'change', function() {
|
||||
if ( $( this ).is( '.iris-error' ) ) {
|
||||
var original_value = $( this ).data( 'original-value' );
|
||||
|
||||
if ( original_value.match( /^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ ) ) {
|
||||
$( this ).val( $( this ).data( 'original-value' ) ).change();
|
||||
} else {
|
||||
$( this ).val( '' ).change();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$( 'body' ).on( 'click', function() {
|
||||
$( '.iris-picker' ).hide();
|
||||
$( this ).closest( 'td' ).find( '.iris-picker' ).show();
|
||||
$( this ).data( 'original-value', $( this ).val() );
|
||||
})
|
||||
});
|
||||
|
||||
.on( 'change', function() {
|
||||
if ( $( this ).is( '.iris-error' ) ) {
|
||||
var original_value = $( this ).data( 'original-value' );
|
||||
// Edit prompt
|
||||
$( function() {
|
||||
var changed = false;
|
||||
|
||||
if ( original_value.match( /^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ ) ) {
|
||||
$( this ).val( $( this ).data( 'original-value' ) ).change();
|
||||
$( 'input, textarea, select, checkbox' ).change( function() {
|
||||
changed = true;
|
||||
});
|
||||
|
||||
$( '.woo-nav-tab-wrapper a' ).click( function() {
|
||||
if ( changed ) {
|
||||
window.onbeforeunload = function() {
|
||||
return params.i18n_nav_warning;
|
||||
};
|
||||
} else {
|
||||
$( this ).val( '' ).change();
|
||||
window.onbeforeunload = '';
|
||||
}
|
||||
});
|
||||
|
||||
$( '.submit :input' ).click( function() {
|
||||
window.onbeforeunload = '';
|
||||
});
|
||||
});
|
||||
|
||||
// Sorting
|
||||
$( 'table.wc_gateways tbody, table.wc_shipping tbody' ).sortable({
|
||||
items: 'tr',
|
||||
cursor: 'move',
|
||||
axis: 'y',
|
||||
handle: 'td.sort',
|
||||
scrollSensitivity: 40,
|
||||
helper: function( event, ui ) {
|
||||
ui.children().each( function() {
|
||||
$( this ).width( $( this ).width() );
|
||||
});
|
||||
ui.css( 'left', '0' );
|
||||
return ui;
|
||||
},
|
||||
start: function( event, ui ) {
|
||||
ui.item.css( 'background-color', '#f6f6f6' );
|
||||
},
|
||||
stop: function( event, ui ) {
|
||||
ui.item.removeAttr( 'style' );
|
||||
ui.item.trigger( 'updateMoveButtons' );
|
||||
}
|
||||
});
|
||||
|
||||
// Select all/none
|
||||
$( '.woocommerce' ).on( 'click', '.select_all', function() {
|
||||
$( this ).closest( 'td' ).find( 'select option' ).attr( 'selected', 'selected' );
|
||||
$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
|
||||
return false;
|
||||
});
|
||||
|
||||
$( '.woocommerce' ).on( 'click', '.select_none', function() {
|
||||
$( this ).closest( 'td' ).find( 'select option' ).removeAttr( 'selected' );
|
||||
$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
|
||||
return false;
|
||||
});
|
||||
|
||||
// Re-order buttons.
|
||||
$( '.wc-item-reorder-nav').find( '.wc-move-up, .wc-move-down' ).on( 'click', function() {
|
||||
var moveBtn = $( this ),
|
||||
$row = moveBtn.closest( 'tr' );
|
||||
|
||||
moveBtn.focus();
|
||||
|
||||
var isMoveUp = moveBtn.is( '.wc-move-up' ),
|
||||
isMoveDown = moveBtn.is( '.wc-move-down' );
|
||||
|
||||
if ( isMoveUp ) {
|
||||
var $previewRow = $row.prev( 'tr' );
|
||||
|
||||
if ( $previewRow && $previewRow.length ) {
|
||||
$previewRow.before( $row );
|
||||
wp.a11y.speak( params.i18n_moved_up );
|
||||
}
|
||||
} else if ( isMoveDown ) {
|
||||
var $nextRow = $row.next( 'tr' );
|
||||
|
||||
if ( $nextRow && $nextRow.length ) {
|
||||
$nextRow.after( $row );
|
||||
wp.a11y.speak( params.i18n_moved_down );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$( 'body' ).on( 'click', function() {
|
||||
$( '.iris-picker' ).hide();
|
||||
moveBtn.focus(); // Re-focus after the container was moved.
|
||||
moveBtn.closest( 'table' ).trigger( 'updateMoveButtons' );
|
||||
} );
|
||||
|
||||
$( '.wc-item-reorder-nav').closest( 'table' ).on( 'updateMoveButtons', function() {
|
||||
var table = $( this ),
|
||||
lastRow = $( this ).find( 'tbody tr:last' ),
|
||||
firstRow = $( this ).find( 'tbody tr:first' );
|
||||
|
||||
table.find( '.wc-item-reorder-nav .wc-move-disabled' ).removeClass( 'wc-move-disabled' ).attr( { 'tabindex': '0', 'aria-hidden': 'false' } );
|
||||
firstRow.find( '.wc-item-reorder-nav .wc-move-up' ).addClass( 'wc-move-disabled' ).attr( { 'tabindex': '-1', 'aria-hidden': 'true' } );
|
||||
lastRow.find( '.wc-item-reorder-nav .wc-move-down' ).addClass( 'wc-move-disabled' ).attr( { 'tabindex': '-1', 'aria-hidden': 'true' } );
|
||||
} );
|
||||
|
||||
$( '.wc-item-reorder-nav').closest( 'table' ).trigger( 'updateMoveButtons' );
|
||||
|
||||
});
|
||||
|
||||
// Edit prompt
|
||||
$( function() {
|
||||
var changed = false;
|
||||
|
||||
$( 'input, textarea, select, checkbox' ).change( function() {
|
||||
changed = true;
|
||||
});
|
||||
|
||||
$( '.woo-nav-tab-wrapper a' ).click( function() {
|
||||
if ( changed ) {
|
||||
window.onbeforeunload = function() {
|
||||
return woocommerce_settings_params.i18n_nav_warning;
|
||||
};
|
||||
} else {
|
||||
window.onbeforeunload = '';
|
||||
}
|
||||
});
|
||||
|
||||
$( '.submit input' ).click( function() {
|
||||
window.onbeforeunload = '';
|
||||
});
|
||||
});
|
||||
|
||||
// Sorting
|
||||
$( 'table.wc_gateways tbody, table.wc_shipping tbody' ).sortable({
|
||||
items: 'tr',
|
||||
cursor: 'move',
|
||||
axis: 'y',
|
||||
handle: 'td.sort',
|
||||
scrollSensitivity: 40,
|
||||
helper: function( event, ui ) {
|
||||
ui.children().each( function() {
|
||||
$( this ).width( $( this ).width() );
|
||||
});
|
||||
ui.css( 'left', '0' );
|
||||
return ui;
|
||||
},
|
||||
start: function( event, ui ) {
|
||||
ui.item.css( 'background-color', '#f6f6f6' );
|
||||
},
|
||||
stop: function( event, ui ) {
|
||||
ui.item.removeAttr( 'style' );
|
||||
}
|
||||
});
|
||||
|
||||
// Select all/none
|
||||
$( '.woocommerce' ).on( 'click', '.select_all', function() {
|
||||
$( this ).closest( 'td' ).find( 'select option' ).attr( 'selected', 'selected' );
|
||||
$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
|
||||
return false;
|
||||
});
|
||||
|
||||
$( '.woocommerce' ).on( 'click', '.select_none', function() {
|
||||
$( this ).closest( 'td' ).find( 'select option' ).removeAttr( 'selected' );
|
||||
$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
|
||||
return false;
|
||||
});
|
||||
})( jQuery );
|
||||
})( jQuery, woocommerce_settings_params, wp );
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(t){t("select#woocommerce_allowed_countries").change(function(){"specific"===t(this).val()?(t(this).closest("tr").next("tr").hide(),t(this).closest("tr").next().next("tr").show()):"all_except"===t(this).val()?(t(this).closest("tr").next("tr").show(),t(this).closest("tr").next().next("tr").hide()):(t(this).closest("tr").next("tr").hide(),t(this).closest("tr").next().next("tr").hide())}).change(),t("select#woocommerce_ship_to_countries").change(function(){"specific"===t(this).val()?t(this).closest("tr").next("tr").show():t(this).closest("tr").next("tr").hide()}).change(),t("input#woocommerce_manage_stock").change(function(){t(this).is(":checked")?t(this).closest("tbody").find(".manage_stock_field").closest("tr").show():t(this).closest("tbody").find(".manage_stock_field").closest("tr").hide()}).change(),t(".colorpick").iris({change:function(e,i){t(this).parent().find(".colorpickpreview").css({backgroundColor:i.color.toString()})},hide:!0,border:!0}).on("click focus",function(e){e.stopPropagation(),t(".iris-picker").hide(),t(this).closest("td").find(".iris-picker").show(),t(this).data("original-value",t(this).val())}).on("change",function(){t(this).is(".iris-error")&&(t(this).data("original-value").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?t(this).val(t(this).data("original-value")).change():t(this).val("").change())}),t("body").on("click",function(){t(".iris-picker").hide()}),t(function(){var e=!1;t("input, textarea, select, checkbox").change(function(){e=!0}),t(".woo-nav-tab-wrapper a").click(function(){window.onbeforeunload=e?function(){return woocommerce_settings_params.i18n_nav_warning}:""}),t(".submit input").click(function(){window.onbeforeunload=""})}),t("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(e,i){return i.children().each(function(){t(this).width(t(this).width())}),i.css("left","0"),i},start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")}}),t(".woocommerce").on("click",".select_all",function(){return t(this).closest("td").find("select option").attr("selected","selected"),t(this).closest("td").find("select").trigger("change"),!1}),t(".woocommerce").on("click",".select_none",function(){return t(this).closest("td").find("select option").removeAttr("selected"),t(this).closest("td").find("select").trigger("change"),!1})}(jQuery);
|
||||
!function(c,r,a){c(function(){c("select#woocommerce_allowed_countries").change(function(){"specific"===c(this).val()?(c(this).closest("tr").next("tr").hide(),c(this).closest("tr").next().next("tr").show()):("all_except"===c(this).val()?c(this).closest("tr").next("tr").show():c(this).closest("tr").next("tr").hide(),c(this).closest("tr").next().next("tr").hide())}).change(),c("select#woocommerce_ship_to_countries").change(function(){"specific"===c(this).val()?c(this).closest("tr").next("tr").show():c(this).closest("tr").next("tr").hide()}).change(),c("input#woocommerce_manage_stock").change(function(){c(this).is(":checked")?c(this).closest("tbody").find(".manage_stock_field").closest("tr").show():c(this).closest("tbody").find(".manage_stock_field").closest("tr").hide()}).change(),c(".colorpick").iris({change:function(t,e){c(this).parent().find(".colorpickpreview").css({backgroundColor:e.color.toString()})},hide:!0,border:!0}).on("click focus",function(t){t.stopPropagation(),c(".iris-picker").hide(),c(this).closest("td").find(".iris-picker").show(),c(this).data("original-value",c(this).val())}).on("change",function(){c(this).is(".iris-error")&&(c(this).data("original-value").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?c(this).val(c(this).data("original-value")).change():c(this).val("").change())}),c("body").on("click",function(){c(".iris-picker").hide()}),c(function(){var t=!1;c("input, textarea, select, checkbox").change(function(){t=!0}),c(".woo-nav-tab-wrapper a").click(function(){window.onbeforeunload=t?function(){return r.i18n_nav_warning}:""}),c(".submit :input").click(function(){window.onbeforeunload=""})}),c("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(t,e){return e.children().each(function(){c(this).width(c(this).width())}),e.css("left","0"),e},start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style"),e.item.trigger("updateMoveButtons")}}),c(".woocommerce").on("click",".select_all",function(){return c(this).closest("td").find("select option").attr("selected","selected"),c(this).closest("td").find("select").trigger("change"),!1}),c(".woocommerce").on("click",".select_none",function(){return c(this).closest("td").find("select option").removeAttr("selected"),c(this).closest("td").find("select").trigger("change"),!1}),c(".wc-item-reorder-nav").find(".wc-move-up, .wc-move-down").on("click",function(){var t=c(this),e=t.closest("tr");t.focus();var i=t.is(".wc-move-up"),o=t.is(".wc-move-down");if(i){var n=e.prev("tr");n&&n.length&&(n.before(e),a.a11y.speak(r.i18n_moved_up))}else if(o){var s=e.next("tr");s&&s.length&&(s.after(e),a.a11y.speak(r.i18n_moved_down))}t.focus(),t.closest("table").trigger("updateMoveButtons")}),c(".wc-item-reorder-nav").closest("table").on("updateMoveButtons",function(){var t=c(this),e=c(this).find("tbody tr:last"),i=c(this).find("tbody tr:first");t.find(".wc-item-reorder-nav .wc-move-disabled").removeClass("wc-move-disabled").attr({tabindex:"0","aria-hidden":"false"}),i.find(".wc-item-reorder-nav .wc-move-up").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"}),e.find(".wc-item-reorder-nav .wc-move-down").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"})}),c(".wc-item-reorder-nav").closest("table").trigger("updateMoveButtons")})}(jQuery,woocommerce_settings_params,wp);
|
|
@ -1 +1 @@
|
|||
jQuery(function(t){({init:function(){t(document.body).on("click","a.help_tip, a.woocommerce-help-tip",this.preventTipTipClick).on("click","a.debug-report",this.generateReport).on("click","#copy-for-support",this.copyReport).on("aftercopy","#copy-for-support",this.copySuccess).on("aftercopyfailure","#copy-for-support",this.copyFail)},preventTipTipClick:function(){return!1},generateReport:function(){var e="";t(".wc_status_table thead, .wc_status_table tbody").each(function(){if(t(this).is("thead")){var i=t(this).find("th:eq(0)").data("export-label")||t(this).text();e=e+"\n### "+t.trim(i)+" ###\n\n"}else t("tr",t(this)).each(function(){var i=t(this).find("td:eq(0)").data("export-label")||t(this).find("td:eq(0)").text(),o=t.trim(i).replace(/(<([^>]+)>)/gi,""),n=t(this).find("td:eq(2)").clone();n.find(".private").remove(),n.find(".dashicons-yes").replaceWith("✔"),n.find(".dashicons-no-alt, .dashicons-warning").replaceWith("❌");var r=t.trim(n.text()),a=r.split(", ");if(a.length>1){var c="";t.each(a,function(t,e){c=c+e+"\n"}),r=c}e=e+""+o+": "+r+"\n"})});try{return t("#debug-report").slideDown(),t("#debug-report").find("textarea").val("`"+e+"`").focus().select(),t(this).fadeOut(),!1}catch(i){console.log(i)}return!1},copyReport:function(e){wcClearClipboard(),wcSetClipboard(t("#debug-report").find("textarea").val(),t(this)),e.preventDefault()},copySuccess:function(){t("#copy-for-support").tipTip({attribute:"data-tip",activation:"focus",fadeIn:50,fadeOut:50,delay:0}).focus()},copyFail:function(){t(".copy-error").removeClass("hidden"),t("#debug-report").find("textarea").focus().select()}}).init(),t("#log-viewer-select").on("click","h2 a.page-title-action",function(t){return t.stopImmediatePropagation(),window.confirm(woocommerce_admin_system_status.delete_log_confirmation)})});
|
||||
jQuery(function(c){({init:function(){c(document.body).on("click","a.help_tip, a.woocommerce-help-tip",this.preventTipTipClick).on("click","a.debug-report",this.generateReport).on("click","#copy-for-support",this.copyReport).on("aftercopy","#copy-for-support",this.copySuccess).on("aftercopyfailure","#copy-for-support",this.copyFail)},preventTipTipClick:function(){return!1},generateReport:function(){var a="";c(".wc_status_table thead, .wc_status_table tbody").each(function(){if(c(this).is("thead")){var t=c(this).find("th:eq(0)").data("export-label")||c(this).text();a=a+"\n### "+c.trim(t)+" ###\n\n"}else c("tr",c(this)).each(function(){var t=c(this).find("td:eq(0)").data("export-label")||c(this).find("td:eq(0)").text(),e=c.trim(t).replace(/(<([^>]+)>)/gi,""),i=c(this).find("td:eq(2)").clone();i.find(".private").remove(),i.find(".dashicons-yes").replaceWith("✔"),i.find(".dashicons-no-alt, .dashicons-warning").replaceWith("❌");var o=c.trim(i.text()),n=o.split(", ");if(1<n.length){var r="";c.each(n,function(t,e){r=r+e+"\n"}),o=r}a=a+""+e+": "+o+"\n"})});try{return c("#debug-report").slideDown(),c("#debug-report").find("textarea").val("`"+a+"`").focus().select(),c(this).fadeOut(),!1}catch(t){console.log(t)}return!1},copyReport:function(t){wcClearClipboard(),wcSetClipboard(c("#debug-report").find("textarea").val(),c(this)),t.preventDefault()},copySuccess:function(){c("#copy-for-support").tipTip({attribute:"data-tip",activation:"focus",fadeIn:50,fadeOut:50,delay:0}).focus()},copyFail:function(){c(".copy-error").removeClass("hidden"),c("#debug-report").find("textarea").focus().select()}}).init(),c("#log-viewer-select").on("click","h2 a.page-title-action",function(t){return t.stopImmediatePropagation(),window.confirm(woocommerce_admin_system_status.delete_log_confirmation)})});
|