Changeset 2370030
- Timestamp:
- 08/27/2020 06:16:02 AM (4 years ago)
- Location:
- woocommerce-quick-buy
- Files:
-
- 29 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-quick-buy/tags/2.8/assets/js/admin-script.js
r2157616 r2370030 3 3 4 4 $( window ).on( 'load', () => { 5 let $wcqb = { 5 6 let $wcqb = { 6 7 styles_wrap: $( 'div#wcqb_button_styles.wponion-element' ), 7 8 }, 8 $body = $( 'body' );9 $wcqb.update_button_style = () => {9 $body = $( 'body' ); 10 $wcqb.update_button_style = () => { 10 11 let $demo_button = $wcqb.styles_wrap.find( 'button#wcqbdemostyles' ), 11 12 $checked = $( 'div#wcqb_button_styles.wponion-element select' ).val(); … … 13 14 return $wcqb; 14 15 }; 15 $wcqb.update_button_label = () => {16 $wcqb.update_button_label = () => { 16 17 $wcqb.styles_wrap.find( 'button#wcqbdemostyles' ).html( $( 'input#wcqb_button_label' ).val() ); 18 19 20 21 22 17 23 return $wcqb; 18 24 }; … … 20 26 $body.on( 'change', 'div#wcqb_button_styles.wponion-element select', () => $wcqb.update_button_style() ); 21 27 $body.on( 'keyup', 'input#wcqb_button_label', () => $wcqb.update_button_label() ); 22 $wcqb.update_button_style().update_button_label(); 28 $body.on( 'change', 'div#url_type select', () => $wcqb.update_url_endpoint_value() ); 29 $wcqb.update_button_style().update_button_label().update_url_endpoint_value(); 23 30 } ); 24 31 } )( window, jQuery ); -
woocommerce-quick-buy/tags/2.8/bootstrap.php
r2366961 r2370030 105 105 if ( vsp_is_admin() && ! vsp_is_ajax() ) { 106 106 wponion_plugin_links( $this->file() ) 107 ->action_link_before( 'settings', __( ' ⚙️Settings', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy' ) )108 ->action_link_after( 'sysinfo', __( ' ℹ️System Info', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy&container-id=sysinfo' ) )107 ->action_link_before( 'settings', __( 'Settings', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy' ) ) 108 ->action_link_after( 'sysinfo', __( 'System Info', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy&container-id=sysinfo' ) ) 109 109 ->row_link( __( '📚 F.A.Q', 'wc-quick-buy' ), 'https://wordpress.org/plugins/woocommerce-quick-buy/faq' ) 110 110 ->row_link( __( '📦 View On Github', 'wc-quick-buy' ), 'https://github.com/varunsridharan/woocommerce-quick-buy' ) -
woocommerce-quick-buy/tags/2.8/classmaps.php
r2366961 r2370030 1 1 <?php 2 // Last Updated: Sat 22-Aug-2020 | 11:24:35:am2 // Last Updated: :am 3 3 // Total Class: 14 4 4 -
woocommerce-quick-buy/tags/2.8/i18n/wc-quick-buy.pot
r2366961 r2370030 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Quick Buy For WooCommerce 2. 7.5\n"5 "Project-Id-Version: Quick Buy For WooCommerce 2.\n" 6 6 "Report-Msgid-Bugs-To: https:\/\/wordpress.org\/support\/plugin\/woocommerce-quick-buy\n\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-08-2 2T11:24:35+05:30\n"12 "POT-Creation-Date: 2020-08-2+05:30\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.2.0\n" … … 45 45 46 46 #: bootstrap.php:107 47 msgid " ⚙️Settings"47 msgid "Settings" 48 48 msgstr "" 49 49 50 50 #: bootstrap.php:108 51 msgid "ℹ️ System Info" 51 #: includes/admin/class-settings.php:31 52 msgid "System Info" 52 53 msgstr "" 53 54 … … 77 78 msgstr "" 78 79 79 #: includes/admin/class-settings.php:3180 msgid "System Info"81 msgstr ""82 83 80 #: includes/admin/settings/trait-button-styling.php:30 84 81 msgid "Button Label" … … 146 143 147 144 #: includes/admin/settings/trait-general.php:39 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 148 165 msgid "URL Endpoint" 149 166 msgstr "" 150 167 151 #: includes/admin/settings/trait-general.php: 45168 #: includes/admin/settings/trait-general.php: 152 169 msgid "Customize the URL Endpoint for Quick Buy URL Action" 153 170 msgstr "" 154 171 155 #: includes/admin/settings/trait-general.php: 46172 #: includes/admin/settings/trait-general.php: 156 173 msgid "1. `{id}` : Product ID" 157 174 msgstr "" 158 175 159 #: includes/admin/settings/trait-general.php: 47176 #: includes/admin/settings/trait-general.php: 160 177 msgid "2. `{slug}` : Product Slug" 161 178 msgstr "" 162 179 163 #: includes/admin/settings/trait-general.php: 48180 #: includes/admin/settings/trait-general.php: 164 181 msgid "3. `{sku}` : Product SKU" 165 182 msgstr "" 166 183 167 #: includes/admin/settings/trait-general.php: 49184 #: includes/admin/settings/trait-general.php: 168 185 msgid "4. `{qty}` : Quantity" 169 186 msgstr "" 170 187 171 #: includes/admin/settings/trait-general.php: 52188 #: includes/admin/settings/trait-general.php: 172 189 msgid "If Quick Buy Link Not Working. Then Try Updating Permalink " 173 190 msgstr "" 174 191 175 #: includes/admin/settings/trait-general.php: 67192 #: includes/admin/settings/trait-general.php: 176 193 msgid "Enabled Product Types" 177 194 msgstr "" 178 195 179 #: includes/admin/settings/trait-general.php: 72196 #: includes/admin/settings/trait-general.php: 180 197 msgid "`Quick Buy` Button Will Be Generated Only For Selected Product Types" 181 198 msgstr "" 182 199 183 #: includes/admin/settings/trait-general.php: 74200 #: includes/admin/settings/trait-general.php: 184 201 msgid "Auto Hide Button" 185 202 msgstr "" 186 203 187 #: includes/admin/settings/trait-general.php: 75204 #: includes/admin/settings/trait-general.php: 188 205 msgid "Hide" 189 206 msgstr "" 190 207 191 #: includes/admin/settings/trait-general.php: 76208 #: includes/admin/settings/trait-general.php: 192 209 msgid "Non Clickable" 193 210 msgstr "" 194 211 195 #: includes/admin/settings/trait-general.php: 77212 #: includes/admin/settings/trait-general.php: 196 213 msgid "Remove" 197 214 msgstr "" 198 215 199 #: includes/admin/settings/trait-general.php: 79216 #: includes/admin/settings/trait-general.php: 200 217 #: includes/class-helper.php:95 201 218 msgid "None" 202 219 msgstr "" 203 220 204 #: includes/admin/settings/trait-general.php: 82221 #: includes/admin/settings/trait-general.php: 205 222 msgid "1. if `Hide` Selected then button will be **hidden** untill product removed from cart / purchase is completed" 206 223 msgstr "" 207 224 208 #: includes/admin/settings/trait-general.php: 83225 #: includes/admin/settings/trait-general.php: 209 226 msgid "2. if `Non Clickable` Selected then button will be **disabled** untill product removed from cart / purchase is completed" 210 227 msgstr "" 211 228 212 #: includes/admin/settings/trait-general.php: 84229 #: includes/admin/settings/trait-general.php: 213 230 msgid "3. if `Remove` Selected then button will not be rendered & button also will not be shown even if product removed from cart via ajax " 214 231 msgstr "" 215 232 216 #: includes/admin/settings/trait-general.php: 87233 #: includes/admin/settings/trait-general.php: 217 234 msgid "Cart Quantity" 218 235 msgstr "" 219 236 220 #: includes/admin/settings/trait-general.php: 90237 #: includes/admin/settings/trait-general.php: 221 238 msgid " You can set min product Quantity. works only with shop page (`Product listing`) & `[wc_quick_buy_link]` shortcode" 222 239 msgstr "" 223 240 224 #: includes/admin/settings/trait-general.php: 92241 #: includes/admin/settings/trait-general.php: 225 242 msgid "Shop Page Enabled Types" 226 243 msgstr "" 227 244 228 #: includes/admin/settings/trait-general.php: 95245 #: includes/admin/settings/trait-general.php: 229 246 msgid "EXPERIMENTAL" 230 247 msgstr "" 231 248 232 #: includes/admin/settings/trait-general.php:1 03249 #: includes/admin/settings/trait-general.php:1 233 250 msgid "Selected Product Types Will Get `Quick Buy` Button Generated Only in Places Where Products are listed. example places like ***Shop*** / ***Archive*** / ***Search***" 234 251 msgstr "" 235 252 236 253 #. translators: Added Red Color Description 237 #: includes/admin/settings/trait-general.php:1 05254 #: includes/admin/settings/trait-general.php:1 238 255 msgid "%1$s Note : Not All Product Types Will Work. only product types that are related to simple will work. and product types like variable / will not work. %2$s" 239 256 msgstr "" 240 257 241 #: includes/admin/settings/trait-general.php:1 17258 #: includes/admin/settings/trait-general.php:1 242 259 msgid "Redirect Configuration" 243 260 msgstr "" 244 261 245 #: includes/admin/settings/trait-general.php:1 18262 #: includes/admin/settings/trait-general.php:1 246 263 msgid "Location" 247 264 msgstr "" 248 265 249 #: includes/admin/settings/trait-general.php:1 19266 #: includes/admin/settings/trait-general.php:1 250 267 msgid "Location To Redirect Once Product Added To Cart" 251 268 msgstr "" 252 269 253 #: includes/admin/settings/trait-general.php:1 24270 #: includes/admin/settings/trait-general.php:1 254 271 msgid "Custom Redirect Location" 255 272 msgstr "" 256 273 257 #: includes/admin/settings/trait-general.php:1 26274 #: includes/admin/settings/trait-general.php:1 258 275 msgid "Enter a full url if custom selected in redirect location" 259 276 msgstr "" 260 277 261 #: includes/admin/settings/trait-general.php:1 41278 #: includes/admin/settings/trait-general.php:1 262 279 msgid "Single Product Page Placement" 263 280 msgstr "" 264 281 265 #: includes/admin/settings/trait-general.php:1 45282 #: includes/admin/settings/trait-general.php:1 266 283 msgid "Where the button need to be added in single product page " 267 284 msgstr "" 268 285 269 #: includes/admin/settings/trait-general.php:1 46270 #: includes/admin/settings/trait-general.php:1 55286 #: includes/admin/settings/trait-general.php:1 287 #: includes/admin/settings/trait-general.php:1 271 288 msgid "if `Disabled` selected then you need to modify your **WooCommerce** template and quick buy shortcode" 272 289 msgstr "" 273 290 274 #: includes/admin/settings/trait-general.php:1 50291 #: includes/admin/settings/trait-general.php:1 275 292 msgid "Shop Page Placement" 276 293 msgstr "" 277 294 278 #: includes/admin/settings/trait-general.php:1 54295 #: includes/admin/settings/trait-general.php:1 279 296 msgid "Where the button need to be added in shop page " 280 297 msgstr "" -
woocommerce-quick-buy/tags/2.8/includes/admin/settings/trait-general.php
r2322781 r2370030 37 37 ->desc_field( __( 'if Enabled then cart contents will be auto cleared if quick buy button used.', 'wc-quick-buy' ) ); 38 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 39 56 $builder->text( 'url_endpoint', __( 'URL Endpoint', 'wc-quick-buy' ) ) 40 57 ->field_default( 'quick-buy/{id}/{qty}' ) 41 58 ->style( 'width:350px' ) 59 42 60 ->placeholder( 'quick-buy/{id}/{sku}/{qty}' ) 43 61 ->prefix( trailingslashit( site_url() ) ) -
woocommerce-quick-buy/tags/2.8/includes/class-button-generator.php
r2322781 r2370030 29 29 'preset' => Helper::option( 'button_style_styles' ), 30 30 ) ); 31 $args['hide_in_cart'] = wponion_ validate_bool_val( $args['hide_in_cart'] );31 $args['hide_in_cart'] = wponion__bool_val( $args['hide_in_cart'] ); 32 32 $args['hide_in_cart'] = ( 'on' === $args['hide_in_cart'] ) ? true : $args['hide_in_cart']; 33 33 $args['hide_in_cart'] = ( 'off' === $args['hide_in_cart'] ) ? false : $args['hide_in_cart']; -
woocommerce-quick-buy/tags/2.8/includes/class-helper.php
r2322781 r2370030 168 168 return isset( $_REQUEST['quick_buy'] ) && ! empty( $_REQUEST['quick_buy'] ); 169 169 } 170 171 172 173 174 175 176 177 178 179 180 170 181 } -
woocommerce-quick-buy/tags/2.8/includes/class-url-endpoint.php
r2322781 r2370030 52 52 */ 53 53 public function addtocart_if_quickbuy( $query ) { 54 if ( ! isset( $query->query_vars['quickbuy_id'] ) && ! isset( $query->query_vars['quickbuy_sku'] ) ) {54 if ( ! isset( $query->query_vars['quickbuy_id'] ) && ! isset( $query->query_vars['quickbuy_sku'] ) ) { 55 55 return $query; 56 56 } 57 57 58 $qty = ( isset( $query->query_vars['quickbuy_qty'] ) ) ? $query->query_vars['quickbuy_qty'] : Helper::option( 'quantity' ); 59 $type = ( isset( $query->query_vars['quickbuy_sku'] ) && ! isset( $query->query_vars['quickbuy_id'] ) ) ? 'sku' : 'id'; 60 $id = ( isset( $query->query_vars['quickbuy_id'] ) ) ? $query->query_vars['quickbuy_id'] : false; 61 $sku = ( isset( $query->query_vars['quickbuy_sku'] ) ) ? $query->query_vars['quickbuy_sku'] : false; 58 $qty = ( isset( $query->query_vars['quickbuy_qty'] ) ) ? $query->query_vars['quickbuy_qty'] : Helper::option( 'quantity' ); 59 $id = ( isset( $query->query_vars['quickbuy_id'] ) ) ? $query->query_vars['quickbuy_id'] : false; 62 60 63 if ( 'sku' === $type && false === $id ) { 64 $id = wc_get_product_id_by_sku( $sku ); 61 if ( isset( $query->query_vars['quickbuy_sku'] ) ) { 62 $id = wc_get_product_id_by_sku( $query->query_vars['quickbuy_sku'] ); 63 } 64 65 if ( isset( $query->query_vars['quickbuy_slug'] ) ) { 66 $product = get_page_by_path( $query->query_vars['quickbuy_slug'], OBJECT, 'product' ); 67 $id = ( isset( $product->ID ) ) ? $product->ID : false; 65 68 } 66 69 … … 72 75 wp_safe_redirect( Helper::redirect_url() ); 73 76 exit; 77 78 79 80 81 74 82 } 75 83 -
woocommerce-quick-buy/tags/2.8/includes/class-url-generator.php
r2322781 r2370030 61 61 $url = str_replace( array_keys( $data ), $data, $string ); 62 62 if ( ! empty( $url ) ) { 63 $this->html = site_url() . '/'. trim( $url, '/' );63 $this->html = . trim( $url, '/' ); 64 64 } 65 65 } -
woocommerce-quick-buy/tags/2.8/readme.txt
r2366961 r2370030 7 7 Requires at least: 3.0 8 8 Tested up to: 5.5 9 Stable tag: 2. 7.59 Stable tag: 2. 10 10 Requires PHP: 7.0 11 11 License: GPLv2 or later … … 130 130 == Changelog == 131 131 132 133 134 135 136 137 132 138 = 2.7.5 - 22/08/2020 = 133 139 * Fixed : Add To Cart Permalink Issue -
woocommerce-quick-buy/tags/2.8/vendor/autoload.php
r2366961 r2370030 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11::getLoader();7 return ComposerAutoloaderInit1::getLoader(); -
woocommerce-quick-buy/tags/2.8/vendor/composer/autoload_real.php
r2366961 r2370030 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c115 class ComposerAutoloaderInit1 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit1', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit1', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit1::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit1::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 1e040180cb727fa7eda7cabd32757c11($fileIdentifier, $file);59 composerRequire1($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire 1e040180cb727fa7eda7cabd32757c11($fileIdentifier, $file)66 function composerRequire1($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-quick-buy/tags/2.8/vendor/composer/autoload_static.php
r2366961 r2370030 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 1e040180cb727fa7eda7cabd32757c117 class ComposerStaticInit1 8 8 { 9 9 public static $files = array ( … … 68 68 { 69 69 return \Closure::bind(function () use ($loader) { 70 $loader->prefixLengthsPsr4 = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$prefixLengthsPsr4;71 $loader->prefixDirsPsr4 = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$prefixDirsPsr4;72 $loader->classMap = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$classMap;70 $loader->prefixLengthsPsr4 = ComposerStaticInit1::$prefixLengthsPsr4; 71 $loader->prefixDirsPsr4 = ComposerStaticInit1::$prefixDirsPsr4; 72 $loader->classMap = ComposerStaticInit1::$classMap; 73 73 74 74 }, null, ClassLoader::class); -
woocommerce-quick-buy/tags/2.8/wc-quick-buy.php
r2366961 r2370030 4 4 * Plugin URI: https://wordpress.org/plugins/woocommerce-quick-buy/ 5 5 * Description: Add Quick buy button to redirect user to checkout / cart immediately when he click quick buy button 6 * Version: 2. 7.56 * Version: 2. 7 7 * Author: Varun Sridharan 8 8 * Author URI: http://varunsridharan.in … … 19 19 20 20 defined( 'WCQB_FILE' ) || define( 'WCQB_FILE', __FILE__ ); 21 defined( 'WCQB_VERSION' ) || define( 'WCQB_VERSION', '2. 7.5' );21 defined( 'WCQB_VERSION' ) || define( 'WCQB_VERSION', '2.' ); 22 22 defined( 'WCQB_NAME' ) || define( 'WCQB_NAME', __( 'Quick Buy For WooCommerce', 'wc-quick-buy' ) ); 23 23 -
woocommerce-quick-buy/trunk/assets/js/admin-script.js
r2157616 r2370030 3 3 4 4 $( window ).on( 'load', () => { 5 let $wcqb = { 5 6 let $wcqb = { 6 7 styles_wrap: $( 'div#wcqb_button_styles.wponion-element' ), 7 8 }, 8 $body = $( 'body' );9 $wcqb.update_button_style = () => {9 $body = $( 'body' ); 10 $wcqb.update_button_style = () => { 10 11 let $demo_button = $wcqb.styles_wrap.find( 'button#wcqbdemostyles' ), 11 12 $checked = $( 'div#wcqb_button_styles.wponion-element select' ).val(); … … 13 14 return $wcqb; 14 15 }; 15 $wcqb.update_button_label = () => {16 $wcqb.update_button_label = () => { 16 17 $wcqb.styles_wrap.find( 'button#wcqbdemostyles' ).html( $( 'input#wcqb_button_label' ).val() ); 18 19 20 21 22 17 23 return $wcqb; 18 24 }; … … 20 26 $body.on( 'change', 'div#wcqb_button_styles.wponion-element select', () => $wcqb.update_button_style() ); 21 27 $body.on( 'keyup', 'input#wcqb_button_label', () => $wcqb.update_button_label() ); 22 $wcqb.update_button_style().update_button_label(); 28 $body.on( 'change', 'div#url_type select', () => $wcqb.update_url_endpoint_value() ); 29 $wcqb.update_button_style().update_button_label().update_url_endpoint_value(); 23 30 } ); 24 31 } )( window, jQuery ); -
woocommerce-quick-buy/trunk/bootstrap.php
r2366961 r2370030 105 105 if ( vsp_is_admin() && ! vsp_is_ajax() ) { 106 106 wponion_plugin_links( $this->file() ) 107 ->action_link_before( 'settings', __( ' ⚙️Settings', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy' ) )108 ->action_link_after( 'sysinfo', __( ' ℹ️System Info', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy&container-id=sysinfo' ) )107 ->action_link_before( 'settings', __( 'Settings', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy' ) ) 108 ->action_link_after( 'sysinfo', __( 'System Info', 'wc-quick-buy' ), admin_url( 'admin.php?page=quick-buy&container-id=sysinfo' ) ) 109 109 ->row_link( __( '📚 F.A.Q', 'wc-quick-buy' ), 'https://wordpress.org/plugins/woocommerce-quick-buy/faq' ) 110 110 ->row_link( __( '📦 View On Github', 'wc-quick-buy' ), 'https://github.com/varunsridharan/woocommerce-quick-buy' ) -
woocommerce-quick-buy/trunk/classmaps.php
r2366961 r2370030 1 1 <?php 2 // Last Updated: Sat 22-Aug-2020 | 11:24:35:am2 // Last Updated: :am 3 3 // Total Class: 14 4 4 -
woocommerce-quick-buy/trunk/i18n/wc-quick-buy.pot
r2366961 r2370030 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Quick Buy For WooCommerce 2. 7.5\n"5 "Project-Id-Version: Quick Buy For WooCommerce 2.\n" 6 6 "Report-Msgid-Bugs-To: https:\/\/wordpress.org\/support\/plugin\/woocommerce-quick-buy\n\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-08-2 2T11:24:35+05:30\n"12 "POT-Creation-Date: 2020-08-2+05:30\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.2.0\n" … … 45 45 46 46 #: bootstrap.php:107 47 msgid " ⚙️Settings"47 msgid "Settings" 48 48 msgstr "" 49 49 50 50 #: bootstrap.php:108 51 msgid "ℹ️ System Info" 51 #: includes/admin/class-settings.php:31 52 msgid "System Info" 52 53 msgstr "" 53 54 … … 77 78 msgstr "" 78 79 79 #: includes/admin/class-settings.php:3180 msgid "System Info"81 msgstr ""82 83 80 #: includes/admin/settings/trait-button-styling.php:30 84 81 msgid "Button Label" … … 146 143 147 144 #: includes/admin/settings/trait-general.php:39 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 148 165 msgid "URL Endpoint" 149 166 msgstr "" 150 167 151 #: includes/admin/settings/trait-general.php: 45168 #: includes/admin/settings/trait-general.php: 152 169 msgid "Customize the URL Endpoint for Quick Buy URL Action" 153 170 msgstr "" 154 171 155 #: includes/admin/settings/trait-general.php: 46172 #: includes/admin/settings/trait-general.php: 156 173 msgid "1. `{id}` : Product ID" 157 174 msgstr "" 158 175 159 #: includes/admin/settings/trait-general.php: 47176 #: includes/admin/settings/trait-general.php: 160 177 msgid "2. `{slug}` : Product Slug" 161 178 msgstr "" 162 179 163 #: includes/admin/settings/trait-general.php: 48180 #: includes/admin/settings/trait-general.php: 164 181 msgid "3. `{sku}` : Product SKU" 165 182 msgstr "" 166 183 167 #: includes/admin/settings/trait-general.php: 49184 #: includes/admin/settings/trait-general.php: 168 185 msgid "4. `{qty}` : Quantity" 169 186 msgstr "" 170 187 171 #: includes/admin/settings/trait-general.php: 52188 #: includes/admin/settings/trait-general.php: 172 189 msgid "If Quick Buy Link Not Working. Then Try Updating Permalink " 173 190 msgstr "" 174 191 175 #: includes/admin/settings/trait-general.php: 67192 #: includes/admin/settings/trait-general.php: 176 193 msgid "Enabled Product Types" 177 194 msgstr "" 178 195 179 #: includes/admin/settings/trait-general.php: 72196 #: includes/admin/settings/trait-general.php: 180 197 msgid "`Quick Buy` Button Will Be Generated Only For Selected Product Types" 181 198 msgstr "" 182 199 183 #: includes/admin/settings/trait-general.php: 74200 #: includes/admin/settings/trait-general.php: 184 201 msgid "Auto Hide Button" 185 202 msgstr "" 186 203 187 #: includes/admin/settings/trait-general.php: 75204 #: includes/admin/settings/trait-general.php: 188 205 msgid "Hide" 189 206 msgstr "" 190 207 191 #: includes/admin/settings/trait-general.php: 76208 #: includes/admin/settings/trait-general.php: 192 209 msgid "Non Clickable" 193 210 msgstr "" 194 211 195 #: includes/admin/settings/trait-general.php: 77212 #: includes/admin/settings/trait-general.php: 196 213 msgid "Remove" 197 214 msgstr "" 198 215 199 #: includes/admin/settings/trait-general.php: 79216 #: includes/admin/settings/trait-general.php: 200 217 #: includes/class-helper.php:95 201 218 msgid "None" 202 219 msgstr "" 203 220 204 #: includes/admin/settings/trait-general.php: 82221 #: includes/admin/settings/trait-general.php: 205 222 msgid "1. if `Hide` Selected then button will be **hidden** untill product removed from cart / purchase is completed" 206 223 msgstr "" 207 224 208 #: includes/admin/settings/trait-general.php: 83225 #: includes/admin/settings/trait-general.php: 209 226 msgid "2. if `Non Clickable` Selected then button will be **disabled** untill product removed from cart / purchase is completed" 210 227 msgstr "" 211 228 212 #: includes/admin/settings/trait-general.php: 84229 #: includes/admin/settings/trait-general.php: 213 230 msgid "3. if `Remove` Selected then button will not be rendered & button also will not be shown even if product removed from cart via ajax " 214 231 msgstr "" 215 232 216 #: includes/admin/settings/trait-general.php: 87233 #: includes/admin/settings/trait-general.php: 217 234 msgid "Cart Quantity" 218 235 msgstr "" 219 236 220 #: includes/admin/settings/trait-general.php: 90237 #: includes/admin/settings/trait-general.php: 221 238 msgid " You can set min product Quantity. works only with shop page (`Product listing`) & `[wc_quick_buy_link]` shortcode" 222 239 msgstr "" 223 240 224 #: includes/admin/settings/trait-general.php: 92241 #: includes/admin/settings/trait-general.php: 225 242 msgid "Shop Page Enabled Types" 226 243 msgstr "" 227 244 228 #: includes/admin/settings/trait-general.php: 95245 #: includes/admin/settings/trait-general.php: 229 246 msgid "EXPERIMENTAL" 230 247 msgstr "" 231 248 232 #: includes/admin/settings/trait-general.php:1 03249 #: includes/admin/settings/trait-general.php:1 233 250 msgid "Selected Product Types Will Get `Quick Buy` Button Generated Only in Places Where Products are listed. example places like ***Shop*** / ***Archive*** / ***Search***" 234 251 msgstr "" 235 252 236 253 #. translators: Added Red Color Description 237 #: includes/admin/settings/trait-general.php:1 05254 #: includes/admin/settings/trait-general.php:1 238 255 msgid "%1$s Note : Not All Product Types Will Work. only product types that are related to simple will work. and product types like variable / will not work. %2$s" 239 256 msgstr "" 240 257 241 #: includes/admin/settings/trait-general.php:1 17258 #: includes/admin/settings/trait-general.php:1 242 259 msgid "Redirect Configuration" 243 260 msgstr "" 244 261 245 #: includes/admin/settings/trait-general.php:1 18262 #: includes/admin/settings/trait-general.php:1 246 263 msgid "Location" 247 264 msgstr "" 248 265 249 #: includes/admin/settings/trait-general.php:1 19266 #: includes/admin/settings/trait-general.php:1 250 267 msgid "Location To Redirect Once Product Added To Cart" 251 268 msgstr "" 252 269 253 #: includes/admin/settings/trait-general.php:1 24270 #: includes/admin/settings/trait-general.php:1 254 271 msgid "Custom Redirect Location" 255 272 msgstr "" 256 273 257 #: includes/admin/settings/trait-general.php:1 26274 #: includes/admin/settings/trait-general.php:1 258 275 msgid "Enter a full url if custom selected in redirect location" 259 276 msgstr "" 260 277 261 #: includes/admin/settings/trait-general.php:1 41278 #: includes/admin/settings/trait-general.php:1 262 279 msgid "Single Product Page Placement" 263 280 msgstr "" 264 281 265 #: includes/admin/settings/trait-general.php:1 45282 #: includes/admin/settings/trait-general.php:1 266 283 msgid "Where the button need to be added in single product page " 267 284 msgstr "" 268 285 269 #: includes/admin/settings/trait-general.php:1 46270 #: includes/admin/settings/trait-general.php:1 55286 #: includes/admin/settings/trait-general.php:1 287 #: includes/admin/settings/trait-general.php:1 271 288 msgid "if `Disabled` selected then you need to modify your **WooCommerce** template and quick buy shortcode" 272 289 msgstr "" 273 290 274 #: includes/admin/settings/trait-general.php:1 50291 #: includes/admin/settings/trait-general.php:1 275 292 msgid "Shop Page Placement" 276 293 msgstr "" 277 294 278 #: includes/admin/settings/trait-general.php:1 54295 #: includes/admin/settings/trait-general.php:1 279 296 msgid "Where the button need to be added in shop page " 280 297 msgstr "" -
woocommerce-quick-buy/trunk/includes/admin/settings/trait-general.php
r2322781 r2370030 37 37 ->desc_field( __( 'if Enabled then cart contents will be auto cleared if quick buy button used.', 'wc-quick-buy' ) ); 38 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 39 56 $builder->text( 'url_endpoint', __( 'URL Endpoint', 'wc-quick-buy' ) ) 40 57 ->field_default( 'quick-buy/{id}/{qty}' ) 41 58 ->style( 'width:350px' ) 59 42 60 ->placeholder( 'quick-buy/{id}/{sku}/{qty}' ) 43 61 ->prefix( trailingslashit( site_url() ) ) -
woocommerce-quick-buy/trunk/includes/class-button-generator.php
r2322781 r2370030 29 29 'preset' => Helper::option( 'button_style_styles' ), 30 30 ) ); 31 $args['hide_in_cart'] = wponion_ validate_bool_val( $args['hide_in_cart'] );31 $args['hide_in_cart'] = wponion__bool_val( $args['hide_in_cart'] ); 32 32 $args['hide_in_cart'] = ( 'on' === $args['hide_in_cart'] ) ? true : $args['hide_in_cart']; 33 33 $args['hide_in_cart'] = ( 'off' === $args['hide_in_cart'] ) ? false : $args['hide_in_cart']; -
woocommerce-quick-buy/trunk/includes/class-helper.php
r2322781 r2370030 168 168 return isset( $_REQUEST['quick_buy'] ) && ! empty( $_REQUEST['quick_buy'] ); 169 169 } 170 171 172 173 174 175 176 177 178 179 180 170 181 } -
woocommerce-quick-buy/trunk/includes/class-url-endpoint.php
r2322781 r2370030 52 52 */ 53 53 public function addtocart_if_quickbuy( $query ) { 54 if ( ! isset( $query->query_vars['quickbuy_id'] ) && ! isset( $query->query_vars['quickbuy_sku'] ) ) {54 if ( ! isset( $query->query_vars['quickbuy_id'] ) && ! isset( $query->query_vars['quickbuy_sku'] ) ) { 55 55 return $query; 56 56 } 57 57 58 $qty = ( isset( $query->query_vars['quickbuy_qty'] ) ) ? $query->query_vars['quickbuy_qty'] : Helper::option( 'quantity' ); 59 $type = ( isset( $query->query_vars['quickbuy_sku'] ) && ! isset( $query->query_vars['quickbuy_id'] ) ) ? 'sku' : 'id'; 60 $id = ( isset( $query->query_vars['quickbuy_id'] ) ) ? $query->query_vars['quickbuy_id'] : false; 61 $sku = ( isset( $query->query_vars['quickbuy_sku'] ) ) ? $query->query_vars['quickbuy_sku'] : false; 58 $qty = ( isset( $query->query_vars['quickbuy_qty'] ) ) ? $query->query_vars['quickbuy_qty'] : Helper::option( 'quantity' ); 59 $id = ( isset( $query->query_vars['quickbuy_id'] ) ) ? $query->query_vars['quickbuy_id'] : false; 62 60 63 if ( 'sku' === $type && false === $id ) { 64 $id = wc_get_product_id_by_sku( $sku ); 61 if ( isset( $query->query_vars['quickbuy_sku'] ) ) { 62 $id = wc_get_product_id_by_sku( $query->query_vars['quickbuy_sku'] ); 63 } 64 65 if ( isset( $query->query_vars['quickbuy_slug'] ) ) { 66 $product = get_page_by_path( $query->query_vars['quickbuy_slug'], OBJECT, 'product' ); 67 $id = ( isset( $product->ID ) ) ? $product->ID : false; 65 68 } 66 69 … … 72 75 wp_safe_redirect( Helper::redirect_url() ); 73 76 exit; 77 78 79 80 81 74 82 } 75 83 -
woocommerce-quick-buy/trunk/includes/class-url-generator.php
r2322781 r2370030 61 61 $url = str_replace( array_keys( $data ), $data, $string ); 62 62 if ( ! empty( $url ) ) { 63 $this->html = site_url() . '/'. trim( $url, '/' );63 $this->html = . trim( $url, '/' ); 64 64 } 65 65 } -
woocommerce-quick-buy/trunk/readme.txt
r2366961 r2370030 7 7 Requires at least: 3.0 8 8 Tested up to: 5.5 9 Stable tag: 2. 7.59 Stable tag: 2. 10 10 Requires PHP: 7.0 11 11 License: GPLv2 or later … … 130 130 == Changelog == 131 131 132 133 134 135 136 137 132 138 = 2.7.5 - 22/08/2020 = 133 139 * Fixed : Add To Cart Permalink Issue -
woocommerce-quick-buy/trunk/vendor/autoload.php
r2366961 r2370030 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11::getLoader();7 return ComposerAutoloaderInit1::getLoader(); -
woocommerce-quick-buy/trunk/vendor/composer/autoload_real.php
r2366961 r2370030 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c115 class ComposerAutoloaderInit1 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit1', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 1e040180cb727fa7eda7cabd32757c11', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit1', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit1::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit1::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 1e040180cb727fa7eda7cabd32757c11($fileIdentifier, $file);59 composerRequire1($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire 1e040180cb727fa7eda7cabd32757c11($fileIdentifier, $file)66 function composerRequire1($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-quick-buy/trunk/vendor/composer/autoload_static.php
r2366961 r2370030 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 1e040180cb727fa7eda7cabd32757c117 class ComposerStaticInit1 8 8 { 9 9 public static $files = array ( … … 68 68 { 69 69 return \Closure::bind(function () use ($loader) { 70 $loader->prefixLengthsPsr4 = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$prefixLengthsPsr4;71 $loader->prefixDirsPsr4 = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$prefixDirsPsr4;72 $loader->classMap = ComposerStaticInit 1e040180cb727fa7eda7cabd32757c11::$classMap;70 $loader->prefixLengthsPsr4 = ComposerStaticInit1::$prefixLengthsPsr4; 71 $loader->prefixDirsPsr4 = ComposerStaticInit1::$prefixDirsPsr4; 72 $loader->classMap = ComposerStaticInit1::$classMap; 73 73 74 74 }, null, ClassLoader::class); -
woocommerce-quick-buy/trunk/wc-quick-buy.php
r2366961 r2370030 4 4 * Plugin URI: https://wordpress.org/plugins/woocommerce-quick-buy/ 5 5 * Description: Add Quick buy button to redirect user to checkout / cart immediately when he click quick buy button 6 * Version: 2. 7.56 * Version: 2. 7 7 * Author: Varun Sridharan 8 8 * Author URI: http://varunsridharan.in … … 19 19 20 20 defined( 'WCQB_FILE' ) || define( 'WCQB_FILE', __FILE__ ); 21 defined( 'WCQB_VERSION' ) || define( 'WCQB_VERSION', '2. 7.5' );21 defined( 'WCQB_VERSION' ) || define( 'WCQB_VERSION', '2.' ); 22 22 defined( 'WCQB_NAME' ) || define( 'WCQB_NAME', __( 'Quick Buy For WooCommerce', 'wc-quick-buy' ) ); 23 23
Note: See TracChangeset
for help on using the changeset viewer.