diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..2d5f103 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": [["@babel/preset-env", { "targets": "defaults" }]] +} diff --git a/.distignore b/.distignore index d64f1ac..ff36a81 100644 --- a/.distignore +++ b/.distignore @@ -6,22 +6,18 @@ /.github /node_modules /admin/src/ -/admin/assets/scss/ +/admin/assets/scss/ /public/assets/src/ .distignore .gitignore .babelrc .editorconfig -rollup.config.js -rollup.config.cjs -build.config.cjs +gulpfile.js webpack.config.js webpack.mix.js -webpack.mix.cjs package.json package-lock.json sftp-config.json composer.json -composer.lock -notice.json +composer.lock \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6fd10a4..a32768a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,23 @@ -/node_modules/* \ No newline at end of file +# ignore everything in the root except the "wp-content" directory. +!wp-content/ + +# ignore everything in the "wp-content" directory, except: +# "mu-plugins", "plugins", "themes" directory +wp-content/* +!wp-content/mu-plugins/ +!wp-content/plugins/ +!wp-content/themes/ + +# ignore these plugins +wp-content/plugins/hello.php + +# ignore specific themes +wp-content/themes/twenty*/ + +# ignore node dependency directories +node_modules/ + +# ignore log files and databases +*.log +*.sql +*.sqlite diff --git a/.wordpress-org/screenshot-1.png b/.wordpress-org/screenshot-1.png index 6c2972b..c797a26 100644 Binary files a/.wordpress-org/screenshot-1.png and b/.wordpress-org/screenshot-1.png differ diff --git a/.wordpress-org/screenshot-2.png b/.wordpress-org/screenshot-2.png index ee5238d..b77eb4d 100644 Binary files a/.wordpress-org/screenshot-2.png and b/.wordpress-org/screenshot-2.png differ diff --git a/.wordpress-org/screenshot-3.png b/.wordpress-org/screenshot-3.png index ee4fd24..b0dfb29 100644 Binary files a/.wordpress-org/screenshot-3.png and b/.wordpress-org/screenshot-3.png differ diff --git a/.wordpress-org/screenshot-5.png b/.wordpress-org/screenshot-5.png deleted file mode 100644 index 6960698..0000000 Binary files a/.wordpress-org/screenshot-5.png and /dev/null differ diff --git a/README.txt b/README.txt index 97265cf..611f599 100644 --- a/README.txt +++ b/README.txt @@ -1,11 +1,11 @@ === Addonify Floating Cart For WooCommerce === Contributors: addonify -Tags: cart, ajax, ajax cart, woocommerce, woocommerce cart, floating cart, side cart, woo cart, woocommerce floating cart, woocommerce side cart, fly cart -Requires at least: 6.0.0 +Tags: cart, woocommerce, woocommerce cart, floating cart, side cart, woo cart, woocommerce floating cart, woocommerce side cart, ajax cart +Requires at least: 5.9 or higher Requires PHP: 7.4 -Tested up to: 6.4.0 -Stable tag: 1.2.2 +Tested up to: 6.2.2 +Stable tag: 1.1.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -17,7 +17,7 @@ Addonify Floating Cart is a free WooCommerce addon that adds an interactive stic Addonify Floating Cart is packed with lots of features and functionalities. The necessary cart actions such as adding product into the cart, removing product from the cart with undo functionality, updating cart quantities, applying coupon discounts etc. The sidebar shopping cart can be toggled on floating cart button click, or Add to Cart button click, or toast notification button click, or View Cart button click. -For visitors attention, display toast notification when a product is added into the cart and display shopping cart when clicked on it. Also to provide information on the schemes that you have created to engage visitors, display shopping meter with targeted amount and interactive custom text. +For vistors attention, display toast notification when a product is added into the cart and display shopping cart when clicked on it. Also to provide information on the schemes that you have created to engage visitors, display shopping meter with targeted amount and interactive custom text. 🌍 [Live Demo Preview](https://demo.addonify.com/woo/01/floating-cart/) 📋 [Documentation Guide](https://docs.addonify.com/kb/floating-cart/) @@ -39,8 +39,6 @@ For visitors attention, display toast notification when a product is added into - Sidebar cart display position. - Toast notification when product is added into the cart. - Open cart when product is added to the WooCommerce cart. -- Open cart when trigger button is hovered. -- Conditionally disable floating cart on cart and checkout pages. - Choose shipping address and calculate shipping cost in the cart. - Supports TAX calculation in the cart. - Supports all WooCommerce product types. @@ -75,7 +73,7 @@ We are open to any kind of discussions that can help improve this plugin. Share #### 🌐 TRANSLATIONS -If you wish Addonify Floating Cart to be translated in your language, feel free to contribute translating at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/addonify-floating-cart) directly. +If you wish Addonify Floating Cart to be translated in your language, feel free to contribute translating at [*transalte.wordpress.org*](https://translate.wordpress.org/projects/wp-plugins/addonify-floating-cart) directly. == Frequently Asked Questions == @@ -109,57 +107,13 @@ Floating cart button and sidebar shopping cart will not be visible on cart and c 1. Addonify Floating Cart setting page on admin dashboard. 2. Addonify Floating Cart design setting page on admin dashboard. -3. Floating Cart drawer on the Front-End. -4. Floating Cart discount section on the Front-End. -4. Floating Cart shipping section on the Front-End. +3. Floating Cart drawer on frontend. +4. Floating Cart discount section on frontend. == Changelog == -= 1.2.2 - 31 October, 2023 = - -- Added: RTL CSS. -- Added: JavaScript API. -- Improvement: Code refactoring (Public JS). -- Tested: WordPress v6.4 -- Tested: WooCommerce 8.2.1 -- Dev: Replaced Gulp with Rollup for bundling JS & SCSS files. - -= 1.2.1 - 11 September, 2023 = - -- Fix: Issue caused by rendering of cart sidebar modal template in cart and checkout page. -- Update: Checked whether the cart fragments is undefined and is object in `added_to_cart` JS event. -- Improvement: Code refactoring. -- Tweak: Plugin setting page header design. - -= 1.2.0 - 01 September, 2023 = - -- New: Brand new plugin setting page design. -- Added: Option to open cart modal on trigger button hover. -- Added: Plugin setting page notification messages. -- Added: Option to set separate background color for shopping meter once the threshold amount is reached. -- Fix: Plugin setting page link in plugins listing page is displayed before `Deactivate` link. -- Fix: Documentation link in plugin setting page header section. -- Improvement: Used `plugins_loaded` hook to run the plugin. -- Improvement: Plugin setting page vue js code -- Improvement: Plugin setting page SCSS. -- Improvement: Plugin setting page REST API options. -- Improvement: Number input control (Vue JS). -- Improvement: Slider control (Vue JS). -- Updated: element-ui to v2.3.8 (Vue JS). -- Tested: WordPress version 6.3.1. -- Tested: WooCommerce version 8.0.3. - - -= 1.1.11 - 18 July, 2023 = - -- Fix: Shopping meter threshold amount & progress bar issue. Parsed remaining threshold amount & progress bar percentage to float value before evaluating the condition. #213 - -= 1.1.10 - 16 July, 2023 = - -- Fix: Update Cart trigger button visibility state. Now trigger button also listens the cart event. #221 - -= 1.1.9 - 14 July, 2023 = += 1.1.9 - ? July, 2023 = - Added: Option, Trigger button badge text color on hover. #218 - Added: Option, Trigger button badge background color on hover. #218 @@ -231,7 +185,7 @@ Floating cart button and sidebar shopping cart will not be visible on cart and c - Update: Static texts in UDP Agents are now translation ready. - Removed: Option for showing/hiding tax at cart footer section. -- Removed: Option for show/hide shipping calculation in floating cart. Shipping option now works with WooCommerce options. +- Removed: Option for show/hide shipping calculation in floating cart. Shippping option now works with woocommerce options. - Added: Option for compare Shopping Meter Threshold with Subtotal Before or After Discount. diff --git a/addonify-floating-cart.php b/addonify-floating-cart.php index dce4f08..9940ca8 100644 --- a/addonify-floating-cart.php +++ b/addonify-floating-cart.php @@ -10,8 +10,8 @@ * Plugin Name: Addonify Floating Cart For WooCommerce * Plugin URI: https://addonify.com/addonify-floating-cart * Description: Addonify Floating Cart is a free WooCommerce addon that adds an interactive sticky shopping cart on your website allowing your visitors no need to go to cart page to manage their cart items. - * Version: 1.2.2 - * Requires at least: 6.0.0 + * Version: 1.1.9 + * Requires at least: 5.9 or higher * Requires PHP: 7.4 * Author: Addonify * Author URI: https://addonify.com/ @@ -31,8 +31,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'ADDONIFY_FLOATING_CART_VERSION', '1.2.2' ); -define( 'ADDONIFY_FLOATING_CART_BASENAME', plugin_basename( __FILE__ ) ); +define( 'ADDONIFY_FLOATING_CART_VERSION', '1.1.9' ); define( 'ADDONIFY_FLOATING_CART_PATH', plugin_dir_path( __FILE__ ) ); define( 'ADDONIFY_FLOATING_CART_DB_INITIALS', 'addonify_fc_' ); @@ -76,22 +75,8 @@ function deactivate_addonify_floating_cart() { */ function run_addonify_floating_cart() { - if ( class_exists( 'WooCommerce' ) ) { - - $plugin = new Addonify_Floating_Cart(); - $plugin->run(); - } else { - add_action( - 'admin_notices', - function() { - ?> -
d?H(e,l,i,!0,!1,p):S(t,o,r,l,i,a,s,c,p)},R=(e,t,o,r,l,i,a,s,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const r=e[u],n=t[u]=c?Gn(t[u]):Jn(t[u]);if(!Nn(r,n))break;v(r,n,o,null,l,i,a,s,c),u++}for(;u<=p&&u<=f;){const r=e[p],n=t[f]=c?Gn(t[f]):Jn(t[f]);if(!Nn(r,n))break;v(r,n,o,null,l,i,a,s,c),p--,f--}if(u>p){if(u<=f){const e=f+1,n=e
+ The active device is:
+ {{ props.activeDevice }}
+ >1,e[o[a]]0&&(t[r]=o[l-1]),o[l]=r)}}l=o.length,i=o[l-1];for(;l-- >0;)o[l]=i,i=t[i];return o}(k):n.Z6;for(m=S.length-1,u=_-1;u>=0;u--){const e=g+u,n=t[e],p=e+1(o[e]||"").split(", "),n=r(`${ni}Delay`),l=r(`${ni}Duration`),i=yi(n,l),a=r(`${li}Delay`),s=r(`${li}Duration`),c=yi(a,s);let u=null,d=0,p=0;t===ni?i>0&&(u=ni,d=i,p=l.length):t===li?c>0&&(u=li,d=c,p=s.length):(d=Math.max(i,c),u=d>0?i>c?ni:li:null,p=u?u===ni?l.length:s.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString())}}function yi(e,t){for(;e.length=0&&(s=-1),s>-1&&(r=t.slice(0,s),l=t.slice(s+1,a>-1?a:t.length),n=e(l)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),r=e.split("/"),n=r[r.length-1];".."!==n&&"."!==n||r.push("");let l,i,a=o.length-1;for(l=0;l{{ props.store }}
+
diff --git a/admin/src/components/partials/Form.vue b/admin/src/components/partials/Form.vue
index 6102bc4..db16b55 100644
--- a/admin/src/components/partials/Form.vue
+++ b/admin/src/components/partials/Form.vue
@@ -1,13 +1,8 @@