Commit Graph

2249 Commits

Author SHA1 Message Date
Mike Jolley 26a06a7a69 Tweak check to use indexof 2016-03-24 11:34:00 +00:00
Mike Jolley ca5a46a2f9 Allow bulk deletion of refunds 2016-03-23 16:32:12 +00:00
Mike Jolley dd68a57fff Merge pull request #10592 from woothemes/item-box-tweaks
Order Item Meta Box Tweaks
2016-03-23 15:03:24 +00:00
Mike Jolley 495aac2df1 Remove backslash 2016-03-23 14:28:45 +00:00
Mike Jolley 95de7f5a2c Minor spacing issues 2016-03-23 13:06:15 +00:00
Gorka Maiztegi eaa025229b Added minified javascript file 2016-03-23 10:59:07 +01:00
Gorka Maiztegi 8f184c0a34 Fix tax editing when using WPML
WPML adds the query parameter "lang" to the ajaxurl variable (and potentially other plugins might do the same thing too), so a new query parameter must be prefixed with & and not ?. This small piece of code solves the issue.
2016-03-23 10:32:15 +01:00
Mike Jolley f73149feaf Tweak variation display and reenable bulk editing 2016-03-22 17:13:39 +00:00
Mike Jolley 8d5b9b7b48 min 2016-03-22 15:02:39 +00:00
Mike Jolley f1b3d0f708 Further layout tweaks 2016-03-22 14:54:02 +00:00
Mike Jolley 5862785522 Restyle items panel 2016-03-21 18:35:00 +00:00
gonssal 523ded8358 Fixed password-strength-meter.js' checkPasswordStrength function not being encapsulated into the wrapper 2016-03-21 17:26:33 +01:00
Mike Jolley 7be2b129b6 Removed bulk actions from order items panel
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.

Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00
Allen Snook bd99d8f1f3 Remove unused new_enabled variable 2016-03-18 13:43:58 -07:00
Shiva Poudel 51357f8ca2 Apply custom css for nav tag but not in h2 tag, #10515
CC @mikejolley
2016-03-17 17:31:16 +05:45
Mike Jolley 1549158981 Add 'is_enabled' column to instances table and allow toggle in zones screen
@allendav
2016-03-15 17:23:06 +00:00
Mike Jolley e22d324be4 Add notice for legacy shipping zones after update 2016-03-15 15:58:03 +00:00
Mike Jolley 699e007659 Wrap export in quotes to preserve commas
Fixes #10541
2016-03-14 12:26:18 +00:00
Mike Bronner de85e5be25 Add tests for localStorage
Some spiders will not error out on sessions storage, but will throw an exception on localstorage. For example, my site has been hit with the following almost on an hourly basis:

```
TypeError: Cannot call method 'setItem' of null
1
File https://maureentaylor.com/app/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js line 1 in [anonymous]
```
2016-03-13 08:42:35 -07:00
Mike Jolley 71f32383f8 Comment and minify 2016-03-12 08:37:02 +00:00
Mike Jolley 7e712ee09a Tweak preserveComments and re-minify 2016-03-12 08:14:37 +00:00
Claudio Sanches ede64f7aa9 Minify and POT 2016-03-11 14:42:34 -03:00
James Koster 38a668e402 Ensures the update cart button is an appropriate width in handheld orientation 2016-03-11 11:28:55 +00:00
Claudio Sanches ad446d002e Fixed zeroclipboard fallback on firefox 2016-03-10 14:58:50 -03:00
Mike Jolley 2d2c64d2ab Change heading and tab markup
Closes #10515
2016-03-10 12:52:20 +00:00
Claudio Sanches 1aa796390a Minify 2016-03-10 00:02:50 -03:00
Claudio Sanches a27324c00c [2.5] Fixed PrettyPhoto embed under HTTPS, closes #10521 2016-03-10 00:02:17 -03:00
James Koster e735309d03 Updates the WooCommerce icon font. #9791
Replaces a bunch of icons with new designs that have a better stylistic
link with Dashicons.
2016-03-09 10:54:00 +00:00
James Koster 08e1741073 Use Dashicons for order statuses where appropriate. #9791 2016-03-08 15:57:14 +00:00
James Koster d9a8786daf Use Dashicons for the report export button. #9791 2016-03-08 15:43:53 +00:00
James Koster b5b0a9638f Use Dashicons for featured icons in products table. #9791 2016-03-08 11:02:01 +00:00
James Koster dd3dc3ce0a Update inventory / attribute icons. #9791 2016-03-08 10:54:06 +00:00
James Koster b261ae5aea Use Dashicons for tooltip icons. #9791 2016-03-08 10:51:57 +00:00
James Koster 18aa311fc1 Use Dashicons for coupon icon. #9791 2016-03-08 10:46:34 +00:00
James Koster 9d9a502217 Use Dashicons for product data tabs. #9791 2016-03-08 10:41:58 +00:00
James Koster 7507ddf8cb Use Dashicons for stock report actions buttons. #9791 2016-03-08 10:27:21 +00:00
James Koster b72fa069f2 Use Dashicons for sorting handles. #9791 2016-03-08 10:25:42 +00:00
James Koster 6e098b2f0d Use Dashicons for reload/apply button. #9791 2016-03-08 10:01:05 +00:00
James Koster 3ff79a81ef Use Dashicons for order action buttons. #9791 2016-03-08 09:49:49 +00:00
James Koster f926f8e9c9 replaces .png credit card icons with .svg alternatives. closes #9675 2016-03-07 12:15:42 +00:00
Mike Jolley 25d6a93c07 Merge pull request #10479 from shivapoudel/gtm-listener
Tweak - GTM listener for single products tabs
2016-03-07 12:04:38 +00:00
James Koster 5d7f95fa7f Update the Storefront banner to include the new logo. closes #10313 2016-03-07 11:36:07 +00:00
Shiva Poudel 25e1d72017 Tweak - GTM listener for single products tabs, Closes #10478 2016-03-04 23:52:39 +05:45
Justin Shreve 927941e2ca Merge pull request #10260 from justinshreve/token-api
Payment Token API
2016-03-04 04:34:41 -08:00
Mike Jolley c21b0eda82 Merge pull request #10361 from shivapoudel/ajax-customer-search
Feature to exclude certain users from ajax customer search box
2016-03-03 12:54:19 +00:00
Justin Shreve b9870bff30 Minify js 2016-03-03 02:48:14 -08:00
Justin Shreve f4d771ef3e Show error if copying can't even happen (to cover safari). 2016-03-02 10:25:16 -08:00
Justin Shreve 32eabbc685 Provide a fallback message if copying to the clipboard fails. 2016-03-02 10:13:17 -08:00
Justin Shreve e94a60d4c3 Update minified JS 2016-03-01 11:49:43 -08:00
Justin Shreve ccb2c90ef3 Update references for the tokenization UI script (hiding/showing inputs) to use the correct file. 2016-03-01 11:49:43 -08:00
Justin Shreve a2aa20bcb5 Rename payment-gateway JS to tokenization-form. 2016-03-01 11:49:42 -08:00
Justin Shreve eff4e297f9 First pass at showing saved payment methods on checkout 2016-03-01 11:49:40 -08:00
Mike Jolley 6f04ff1fa0 Replace size with length
Fixes #10444
2016-03-01 13:08:25 +00:00
Kevin Killingsworth 7fc0932e33 Fix state input box for cart shipping.
Input box wasn't reappearing when switching from a hidden input
to a text input. Changed the JQuery selector to go off the input
type.
2016-02-27 00:50:05 -06:00
Mike Jolley 155afbb99a Checkout RTL styles 2016-02-26 11:43:24 +00:00
Kevin Killingsworth 45b2f7eae3 Remove console.log calls
Some left-over console log calls were removed.
2016-02-22 11:12:05 -06:00
Kevin Killingsworth b7f365982e cart objects: refactor into objects
This update actually takes the code and refactors it into
two object handlers, cart and cart_shipping.

Also, more block comments are added to each function.
2016-02-22 10:15:47 -06:00
Kevin Killingsworth 02b7c1edc4 cart objects: Create cart_shipping object.
This commit creates a cart shipping object which handles all shipping
code in this file.
2016-02-19 14:33:28 -06:00
Kevin Killingsworth 7c82a6b1f1 cart objects: Add block comments
Add block comments to functions in the file.
2016-02-19 14:26:27 -06:00
Kevin Killingsworth e7fa89cdf9 cart objects: split off events
Step one of implementing objects in carts is splitting off
the event handlers to separate named functions.
2016-02-19 14:13:48 -06:00
Justin Shreve 4c498336fe Fix up some minor coding standards issues 2016-02-18 08:40:02 -08:00
Justin Shreve cfe39073a3 Fix headings on the add-ons/extensions screens 2016-02-18 08:39:02 -08:00
Justin Shreve d28c4f4f39 Fix hierarchy in the system status pages. 2016-02-18 08:39:02 -08:00
Justin Shreve 6d683b7492 Fix up hierarchy on all of the generated report screens. 2016-02-18 08:39:02 -08:00
Justin Shreve 8c49e81f45 Fix up heading hierarchy on the add new order screen 2016-02-18 08:39:02 -08:00
Justin Shreve 328ad226e8 [2.5] Correct the 'unavailable template' call for variations so the message is displayed correctly, fixing a JS error. 2016-02-17 07:50:38 -08:00
Claudio Sanches 211c379af6 My account initial navigation 2016-02-16 13:50:06 -02:00
Shiva Poudel a88caf5b72 Feature to exclude certain users from ajax customer search box
Closes #10360
CC @mikejolley
2016-02-16 19:40:36 +05:45
Kevin Killingsworth 7e951afbae Cart AJAX: Add shipping form support.
Add support for making an AJAX call for updating the shipping options.
2016-02-15 10:52:25 -06:00
Kevin Killingsworth b330813306 Cart AJAX: Clean up form handling for cart form.
The coupon and update cart logic was tripping on each other
between the click handling and form submit handling.
This commit combines the event handler, then splits off from there.
2016-02-15 10:27:47 -06:00
Kevin Killingsworth 4b8cf5cd1f Cart ajax: Fix html5 validation checks for quantities.
The form button click event handling was subverting the validation
checks. Moving the event to the actual form submit event fixed it.
2016-02-15 09:53:11 -06:00
Kevin Killingsworth 62c141ff5d Cart AJAX: Fix block UI for remove item.
The JQuery selector was incorrect and needed to go
further up the DOM tree.
2016-02-15 09:41:58 -06:00
Kevin Killingsworth a8e51cfb66 Style: Add spaces between closing braces and parens. 2016-02-15 08:40:46 -06:00
Kevin Killingsworth ef4debace7 Cart AJAX: Block form during update
Apply the JQuery Block UI to the form during an AJAX update.
Also correct a few small style issues.
2016-02-15 08:10:25 -06:00
Kevin Killingsworth e416ba0e2b Cart AJAX: Add cart item remove.
Add cart item remove, using same technique as the cart update.
Make the normal call via AJAX and update the HTML afterwards.
2016-02-14 22:55:47 -06:00
Kevin Killingsworth 9a43b897da Cart AJAX: Add update call.
Since the code is built to use a form submit for all the quanitities
already, I just made this an ajax call instead of a whole page call.
The result is the exactly the same and the .woocommerce div is replaced
with the resulting HTML.
2016-02-14 21:57:14 -06:00
Kevin Killingsworth 1c361bb29f cart.js: Consolidate url calculation.
DRY the url calculation code within a single function to make
the code more readable and succinct.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 30a272e58a Add remove coupon ajax handling in cart.
Add code to handle ajax call for removing a coupon from the cart.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 191b58eba0 Block cart form while applying coupon.
Add code to block the cart form during the apply operation
until completion. Refactor block/unblock into local methods
for reuse.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 4cc7e99ab7 Add notice to add coupon in cart.
Add the notice to when a coupon is added to the cart,
or the error if the coupon was not added for some reason.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth ce90c440cb Cart ajax: apply coupon
Adds an ajax call for applying coupons while on the cart
screen (not checkout, as it already has this.)

This is the first commit to add ajax calls to the cart update
functions. See issue #6734
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 07db701e91 Add minified js file for add-to-cart-variation.js
Adding missing minified version of js file from
commit f1bf89db2b
2016-02-12 09:54:21 -06:00
Mike Jolley 2c86574785 Merge pull request #10328 from KristoferN/single-product-image-alt-tag-content-error
Corrected content in alt-tag
2016-02-11 13:17:46 +00:00
Kristofer Norén f1bf89db2b Corrected content in alt-tag
Previously both the alt-tag and the title-tag of the variations main image used content from variation.image_title. The alt-tag should use variation.image_alt.
2016-02-11 13:40:56 +01:00
Justin Shreve 37ad8ccbed Minified checkout.js 2016-02-10 10:41:23 -08:00
Justin Shreve 6a8abc9f28 Keep track of terms & conditions state and recheck the box if necessary. 2016-02-10 10:38:39 -08:00
Mike Jolley fab8a871aa Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/admin/class-wc-admin-assets.php
2016-02-10 14:12:39 +00:00
Mike Jolley 75cbb74520 Rating widget standards 2016-02-09 15:18:27 +00:00
Mike Jolley 4c29b7607f Show notices on variation button clicks
Closes #10281
2016-02-08 16:21:02 +00:00
Mike Jolley 6dd01fc839 Better way to find wrapper for stateboxes
Closes #8255
2016-02-08 14:47:42 +00:00
Mike Jolley aa4bfde937 Remove deprecated chosen js scripts 2016-02-08 12:10:42 +00:00
Mike Jolley efd0304bb0 Color code manual, system and customer notes
Closes #7225
2016-02-08 11:39:31 +00:00
Mike Jolley 346fd94e9e Fix column color 2016-02-05 15:48:31 +00:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Claudio Sanches 5f2d769567 Minify 2016-02-03 15:02:32 -02:00
Claudio Sanches 2596b888a2 [2.5] Include new triggers when remove and add the password strength meter, closes #10257 2016-02-03 13:24:11 -02:00
Mike Jolley 254c8cf677 Prevent default in variation script
Closes #10223
2016-02-01 12:16:17 +00:00
Mike Jolley 089b8aff68 Disable button (again) but not on checkout 2016-01-28 15:53:08 +00:00
Mike Jolley 4bca60c76e Adjust padding on message 2016-01-28 15:52:39 +00:00
Mike Jolley 26a7d04c07 Unused var 2016-01-28 15:38:27 +00:00