Changeset 2566264
- Timestamp:
- 07/17/2021 10:32:05 AM (5 years ago)
- Location:
- continue-shopping-anywhere-for-woocommerce
- Files:
-
- 34 added
- 4 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/LICENSE.txt (added)
-
tags/1.1.0/README.txt (added)
-
tags/1.1.0/admin (added)
-
tags/1.1.0/admin/class-continue-shopping-anywhere-admin.php (added)
-
tags/1.1.0/admin/css (added)
-
tags/1.1.0/admin/css/continue-shopping-anywhere-admin.css (added)
-
tags/1.1.0/admin/index.php (added)
-
tags/1.1.0/admin/js (added)
-
tags/1.1.0/admin/js/continue-shopping-anywhere-admin.js (added)
-
tags/1.1.0/admin/partials (added)
-
tags/1.1.0/admin/partials/continue-shopping-anywhere-admin-display-settings.php (added)
-
tags/1.1.0/admin/partials/continue-shopping-anywhere-admin-display.php (added)
-
tags/1.1.0/continue-shopping-anywhere.php (added)
-
tags/1.1.0/includes (added)
-
tags/1.1.0/includes/class-continue-shopping-anywhere-activator.php (added)
-
tags/1.1.0/includes/class-continue-shopping-anywhere-deactivator.php (added)
-
tags/1.1.0/includes/class-continue-shopping-anywhere-i18n.php (added)
-
tags/1.1.0/includes/class-continue-shopping-anywhere-loader.php (added)
-
tags/1.1.0/includes/class-continue-shopping-anywhere.php (added)
-
tags/1.1.0/includes/index.php (added)
-
tags/1.1.0/index.php (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/continue-shopping-anywhere.pot (added)
-
tags/1.1.0/public (added)
-
tags/1.1.0/public/class-continue-shopping-anywhere-public.php (added)
-
tags/1.1.0/public/css (added)
-
tags/1.1.0/public/css/continue-shopping-anywhere-public.css (added)
-
tags/1.1.0/public/index.php (added)
-
tags/1.1.0/public/js (added)
-
tags/1.1.0/public/js/continue-shopping-anywhere-public.js (added)
-
tags/1.1.0/public/partials (added)
-
tags/1.1.0/public/partials/continue-shopping-anywhere-public-display.php (added)
-
tags/1.1.0/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/partials/continue-shopping-anywhere-admin-display-settings.php (modified) (4 diffs)
-
trunk/continue-shopping-anywhere.php (modified) (3 diffs)
-
trunk/public/class-continue-shopping-anywhere-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
continue-shopping-anywhere-for-woocommerce/trunk/README.txt
r2209653 r2566264 3 3 Tags: continue shopping, woocommerce, shopping, ecommerce, notice 4 4 Requires at least: 4.6 5 Tested up to: 5. 3.05 Tested up to: 5.8 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 1.2.0 - 2021/07/17 = 51 * New: Added "Out of Stock only" option for single page 52 * New: Added "After Product Summary" and "After Product" options for single page 53 * Tweak: Tested with WP 5.8 and Woo 5.5 54 50 55 = 1.1.0 - 2019/12/11 = 51 56 * Tweak: Added ability to change position on Single product page. -
continue-shopping-anywhere-for-woocommerce/trunk/admin/partials/continue-shopping-anywhere-admin-display-settings.php
r2209653 r2566264 9 9 * @since 1.0.0 10 10 * @since 1.1.0 - Added position for single page 11 * @since 1.2.0 - Single page - when to show and new position 11 12 * 12 13 * @package Continue_Shopping_Anywhere … … 201 202 'woocommerce_before_single_product_summary' => 'Before Product Summary', 202 203 'woocommerce_before_single_product' => 'Before Product', 204 'woocommerce_after_single_product_summary' => 'After Product Summary', 205 'woocommerce_after_single_product' => 'After Product', 203 206 ); 204 207 $default_position_option = 'woocommerce_before_single_product_summary'; … … 212 215 ); 213 216 217 // when to show 218 $single_conditions = array( 219 'always' => 'Always', 220 'out_of_stock' => 'Out of Stock only', 221 ); 222 $default_condition_option = 'always'; 223 $single_condition = array( 224 'title' => 'When to show?', 225 'type' => 'radio', 226 'default' => $default_condition_option, 227 'desc' => '', 228 'options' => $single_conditions, 229 'id' => 'woocsa_single_condition', 230 ); 231 214 232 // all options 215 233 $account_settings = array( … … 226 244 'id' => 'woocsa_single_apply', 227 245 ), 246 $single_condition, 228 247 $single_position, 229 248 $single_type, -
continue-shopping-anywhere-for-woocommerce/trunk/continue-shopping-anywhere.php
r2209653 r2566264 17 17 * Plugin URI: https://wordpress.org/plugins/continue-shopping-anywhere-for-woocommerce 18 18 * Description: Adds a continue shopping link on any woocommerce page. 19 * Version: 1. 1.019 * Version: 1.2.0 20 20 * Author: Ivan Chernyakov 21 21 * Author URI: https://businessupwebsite.com … … 24 24 * Text Domain: continue-shopping-anywhere 25 25 * Domain Path: /languages 26 * WC tested up to: 3.8.026 * WC tested up to: 5.5 27 27 */ 28 28 … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'CONTINUE_SHOPPING_ANYWHERE_VERSION', '1. 1.0' );39 define( 'CONTINUE_SHOPPING_ANYWHERE_VERSION', '1.2.0' ); 40 40 41 41 /** -
continue-shopping-anywhere-for-woocommerce/trunk/public/class-continue-shopping-anywhere-public.php
r2158848 r2566264 176 176 * 177 177 * @since 1.0.0 178 * @since 1.2.0 - Single page out of stock check 178 179 */ 179 180 public function custom_redirect_always_shown( $page_name ) { … … 181 182 return; 182 183 } 184 185 if ($page_name == 'single' && get_option('woocsa_single_condition') == 'out_of_stock'){ 186 global $product; 187 if ( $product->get_manage_stock() && $product->get_stock_quantity() <= 0){ 188 } 189 else 190 return; 191 } 192 183 193 $continue = get_option( 'woocsa_'.$page_name.'_type_always' ); 184 194 $custom_link = get_option( 'woocsa_'.$page_name.'_custom_link' );
Note: See TracChangeset
for help on using the changeset viewer.