Changeset 1219461
- Timestamp:
- 08/12/2015 06:51:10 PM (11 years ago)
- Location:
- foxyshop
- Files:
-
- 167 added
- 5 edited
-
tags/4.6.2 (added)
-
tags/4.6.2/LICENSE (added)
-
tags/4.6.2/README.md (added)
-
tags/4.6.2/adminajax.php (added)
-
tags/4.6.2/adminfunctions.php (added)
-
tags/4.6.2/bulkeditor.php (added)
-
tags/4.6.2/categorysorting.php (added)
-
tags/4.6.2/css (added)
-
tags/4.6.2/css/chosen.css (added)
-
tags/4.6.2/css/cloud-zoom.css (added)
-
tags/4.6.2/css/foxyshop-admin.css (added)
-
tags/4.6.2/css/foxyshop.css (added)
-
tags/4.6.2/css/magnific-popup.css (added)
-
tags/4.6.2/css/ui-smoothness (added)
-
tags/4.6.2/css/ui-smoothness/images (added)
-
tags/4.6.2/css/ui-smoothness/images/animated-overlay.gif (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-icons_222222_256x240.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-icons_2e83ff_256x240.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-icons_454545_256x240.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-icons_888888_256x240.png (added)
-
tags/4.6.2/css/ui-smoothness/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/4.6.2/css/ui-smoothness/jquery-ui.custom.css (added)
-
tags/4.6.2/customers.php (added)
-
tags/4.6.2/customposttype.php (added)
-
tags/4.6.2/customsorting.php (added)
-
tags/4.6.2/datafeedfunctions.php (added)
-
tags/4.6.2/foxyshop.php (added)
-
tags/4.6.2/generatesitemap.php (added)
-
tags/4.6.2/googleproductfeed.php (added)
-
tags/4.6.2/helperfunctions.php (added)
-
tags/4.6.2/images (added)
-
tags/4.6.2/images/add-new-image.png (added)
-
tags/4.6.2/images/chosen-sprite.png (added)
-
tags/4.6.2/images/delete.png (added)
-
tags/4.6.2/images/editicon.png (added)
-
tags/4.6.2/images/featured.png (added)
-
tags/4.6.2/images/foxycart-icon.png (added)
-
tags/4.6.2/images/help.png (added)
-
tags/4.6.2/images/icon.png (added)
-
tags/4.6.2/images/iconsprite.png (added)
-
tags/4.6.2/images/logo.png (added)
-
tags/4.6.2/images/no-photo.png (added)
-
tags/4.6.2/images/paper-shadow.png (added)
-
tags/4.6.2/images/plusminus.png (added)
-
tags/4.6.2/images/refresh.png (added)
-
tags/4.6.2/images/rename.png (added)
-
tags/4.6.2/images/search-icon.png (added)
-
tags/4.6.2/images/visible.png (added)
-
tags/4.6.2/images/zoomloader.gif (added)
-
tags/4.6.2/inventory.php (added)
-
tags/4.6.2/js (added)
-
tags/4.6.2/js/chosen.jquery.min.js (added)
-
tags/4.6.2/js/cloud-zoom.1.0.2.js (added)
-
tags/4.6.2/js/jquery-ui.datepicker.min.js (added)
-
tags/4.6.2/js/jquery.magnific-popup.min.js (added)
-
tags/4.6.2/js/jquery.tablesorter.js (added)
-
tags/4.6.2/js/multiship.jquery.js (added)
-
tags/4.6.2/js/multiship2.jquery.js (added)
-
tags/4.6.2/js/prettyphoto (added)
-
tags/4.6.2/js/prettyphoto/jquery.prettyPhoto.js (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto.css (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/btnNext.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/btnPrevious.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/contentPattern.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/default_thumbnail.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_rounded/sprite.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/btnNext.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/btnPrevious.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/contentPattern.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/default_thumbnail.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/dark_square/sprite.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/default_thumb.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/sprite.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/sprite_next.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/sprite_prev.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/sprite_x.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/default/sprite_y.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/btnNext.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/btnPrevious.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/contentPatternBottom.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/contentPatternLeft.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/contentPatternRight.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/contentPatternTop.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/default_thumbnail.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/facebook/sprite.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded/btnNext.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded/btnPrevious.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded/default_thumbnail.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_rounded/sprite.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square/btnNext.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square/btnPrevious.png (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square/default_thumbnail.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square/loader.gif (added)
-
tags/4.6.2/js/prettyphoto/prettyPhoto/light_square/sprite.png (added)
-
tags/4.6.2/js/products-admin.js (added)
-
tags/4.6.2/js/uploadify (added)
-
tags/4.6.2/js/uploadify/cancel.png (added)
-
tags/4.6.2/js/uploadify/check.php (added)
-
tags/4.6.2/js/uploadify/expressInstall.swf (added)
-
tags/4.6.2/js/uploadify/jquery.uploadify.v2.1.4.min.js (added)
-
tags/4.6.2/js/uploadify/uploadify.css (added)
-
tags/4.6.2/js/uploadify/uploadify.swf (added)
-
tags/4.6.2/js/variation.process.jquery.js (added)
-
tags/4.6.2/languages (added)
-
tags/4.6.2/languages/foxyshop-de_DE.mo (added)
-
tags/4.6.2/languages/foxyshop-de_DE.po (added)
-
tags/4.6.2/languages/foxyshop-nb_NO.mo (added)
-
tags/4.6.2/languages/foxyshop-nb_NO.po (added)
-
tags/4.6.2/languages/foxyshop.pot (added)
-
tags/4.6.2/orders.php (added)
-
tags/4.6.2/productfeed.php (added)
-
tags/4.6.2/readme.txt (added)
-
tags/4.6.2/screenshot-1.jpg (added)
-
tags/4.6.2/screenshot-2.jpg (added)
-
tags/4.6.2/screenshot-3.jpg (added)
-
tags/4.6.2/screenshot-4.jpg (added)
-
tags/4.6.2/screenshot-5.jpg (added)
-
tags/4.6.2/settings-page.php (added)
-
tags/4.6.2/setup-page.php (added)
-
tags/4.6.2/shippingintegration.php (added)
-
tags/4.6.2/shortcodesettings.php (added)
-
tags/4.6.2/sso.php (added)
-
tags/4.6.2/ssoendpoint.php (added)
-
tags/4.6.2/subscriptions.php (added)
-
tags/4.6.2/templateredirect.php (added)
-
tags/4.6.2/themefiles (added)
-
tags/4.6.2/themefiles/foxyshop-all-categories.php (added)
-
tags/4.6.2/themefiles/foxyshop-all-products.php (added)
-
tags/4.6.2/themefiles/foxyshop-checkout-template-2.php (added)
-
tags/4.6.2/themefiles/foxyshop-checkout-template.php (added)
-
tags/4.6.2/themefiles/foxyshop-custom-upload.php (added)
-
tags/4.6.2/themefiles/foxyshop-datafeed-endpoint.php (added)
-
tags/4.6.2/themefiles/foxyshop-footer.php (added)
-
tags/4.6.2/themefiles/foxyshop-header.php (added)
-
tags/4.6.2/themefiles/foxyshop-product-loop.php (added)
-
tags/4.6.2/themefiles/foxyshop-receipt-template-2.php (added)
-
tags/4.6.2/themefiles/foxyshop-receipt-template.php (added)
-
tags/4.6.2/themefiles/foxyshop-receipt.php (added)
-
tags/4.6.2/themefiles/foxyshop-search.php (added)
-
tags/4.6.2/themefiles/foxyshop-single-category-shortcode.php (added)
-
tags/4.6.2/themefiles/foxyshop-single-category.php (added)
-
tags/4.6.2/themefiles/foxyshop-single-product-shortcode.php (added)
-
tags/4.6.2/themefiles/foxyshop-single-product.php (added)
-
tags/4.6.2/tools-page.php (added)
-
tags/4.6.2/uninstall.php (added)
-
tags/4.6.2/uploadprocessor.php (added)
-
tags/4.6.2/widgetcode.php (added)
-
trunk/bulkeditor.php (modified) (5 diffs)
-
trunk/foxyshop.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/ssoendpoint.php (modified) (3 diffs)
-
trunk/widgetcode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
foxyshop/trunk/bulkeditor.php
r829231 r1219461 113 113 <label for="_weight_status1"><?php echo $change_to_text; ?>:</label> 114 114 <input type="text" name="_weight" id="_weight" value="" class="cfbe_field_name" onfocus="jQuery('#_weight_status1').prop('checked', true);" /> 115 <small>enter 5 lbs, 2 oz as "5 2" </small>115 <small>enter 5 lbs, 2 oz as "5 2" or +5% or -5.00</small> 116 116 <div style="clear: both;"></div> 117 117 </td> … … 356 356 357 357 //Generic Fields Needing No Special Treatment 358 $fields = array("category", " weight", "discount_quantity_amount", "discount_quantity_percentage", "discount_price_amount", "discount_price_percentage", "sub_frequency", "sub_startdate", "sub_enddate");358 $fields = array("category", "discount_quantity_amount", "discount_quantity_percentage", "discount_price_amount", "discount_price_percentage", "sub_frequency", "sub_startdate", "sub_enddate"); 359 359 foreach ($fields as $field) { 360 360 if ($_POST['_' . $field . '_status'] == 1) cfbe_save_meta_data('_'.$field, $_POST['_'.$field]); … … 363 363 364 364 //Generic Price Fields Needing Special Treatment 365 $fields = array("price", "saleprice" );365 $fields = array("price", "saleprice", "weight"); 366 366 foreach ($fields as $field) { 367 367 if ($_POST['_' . $field . '_status'] == 1 && $_POST['_' . $field] != "") { … … 373 373 if ($modifier == "+" || $modifier == "-") { 374 374 375 376 //Is This Weight? 377 if ($field === "weight") { 378 $original_price = get_post_meta($post_id,'_weight', true); 379 $weight = explode(" ", $original_price); 380 if (count($weight) == 1) $weight = explode(" ", $foxyshop_settings['default_weight']); 381 $weight1 = (int)$weight[0]; 382 $weight2 = (double)$weight[1]; 383 if ($weight1 == 0 && $weight2 == 0) { 384 $defaultweight = explode(" ",$foxyshop_settings['default_weight']); 385 $weight1 = (int)$defaultweight[0]; 386 $weight2 = (count($defaultweight) > 1 ? (double)$defaultweight[1] : 0); 387 } 388 if ($weight2 > 0) $weight2 = number_format($weight2 / ($foxyshop_settings['weight_type'] == 'metric' ? 1000 : 16), 3); 389 $arr_weight2 = explode('.', $weight2); 390 $weight2 = ((strpos($weight2, '.') !== false) ? end($arr_weight2) : $weight2); 391 $original_price = (double)($weight1 . "." . $weight2); 392 375 393 //Get original price 376 $original_price = (double)get_post_meta($post_id,'_' . $field, true); 394 } else { 395 $original_price = (double)get_post_meta($post_id,'_' . $field, true); 396 } 377 397 378 398 //Percentage … … 400 420 } 401 421 402 if ($new_price < 0) $new_price = 0; 403 $new_price = number_format($new_price, 2); 422 //Is This Weight? 423 if ($field === "weight") { 424 $new_price = (string)number_format($new_price, 2); 425 $to_split = explode(".", $new_price); 426 $new_price = $to_split[0] . " " . $to_split[0]; 427 428 //Just a Price 429 } else { 430 if ($new_price < 0) $new_price = 0; 431 $new_price = number_format($new_price, 2); 432 } 404 433 405 434 //Do the save -
foxyshop/trunk/foxyshop.php
r1164204 r1219461 6 6 Description: FoxyShop is a full integration for FoxyCart and WordPress, providing a robust shopping cart and inventory management tool. 7 7 Author: SparkWeb Interactive, Inc. 8 Version: 4.6. 18 Version: 4.6.2 9 9 Author URI: http://www.foxy-shop.com/ 10 10 11 11 ************************************************************************** 12 12 13 Copyright (C) 201 4SparkWeb Interactive, Inc.13 Copyright (C) 2015 SparkWeb Interactive, Inc. 14 14 15 15 This program is free software; you can redistribute it and/or … … 39 39 40 40 //Setup Plugin Variables 41 define('FOXYSHOP_VERSION', "4.6. 1");41 define('FOXYSHOP_VERSION', "4.6.2"); 42 42 define('FOXYSHOP_DIR', (is_ssl() ? str_replace("http://", "https://", WP_PLUGIN_URL) : WP_PLUGIN_URL) . "/foxyshop"); 43 43 define('FOXYSHOP_PATH', dirname(__FILE__)); -
foxyshop/trunk/readme.txt
r1164208 r1219461 4 4 Tags: foxycart, shopping, cart, inventory, management, ecommerce, selling, subscription, foxy 5 5 Requires at least: 3.1 6 Tested up to: 4. 2.27 Stable tag: 4.6. 16 Tested up to: 4.3 7 Stable tag: 4.6.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 69 69 == Changelog == 70 71 = 4.6.2 = 72 * WP 4.3 compatibility changes with widget constructor 73 * SSO endpoint now listens for update/cancellation and doesn't query cart in those cases 70 74 71 75 = 4.6.1 = … … 209 213 == Upgrade Notice == 210 214 211 = 4.6 =212 Expired feature, checkout reverse login feature 215 = 4.6.2 = 216 WP_Widget Fix For WordPress 4.3 Compatibility -
foxyshop/trunk/ssoendpoint.php
r1073057 r1219461 8 8 global $current_user; 9 9 10 //Run an action here in case you want to to intercept 11 do_action("foxyshop_sso_endpoint"); 10 //Run an action here in case you want to to intercept (only if there's no special checkout type) 11 if (!isset($_GET['checkout_type'])) { 12 do_action("foxyshop_sso_endpoint"); 13 } 12 14 13 15 $login_url = get_bloginfo('wpurl') . '/wp-login.php'; … … 25 27 26 28 //Check Cart Contents to Decide on Redirect 27 } elseif ($foxyshop_settings['sso_account_required'] == 2 ) {29 } elseif ($foxyshop_settings['sso_account_required'] == 2 && !isset($_GET['checkout_type'])) { 28 30 $ch = curl_init(); 29 31 if (!defined('FOXYSHOP_CURL_CONNECTTIMEOUT')) define('FOXYSHOP_CURL_CONNECTTIMEOUT', 10); … … 106 108 $redirect_complete = 'https://' . $foxyshop_settings['domain'] . '/checkout?fc_auth_token=' . $auth_token . '&fc_customer_id=' . $customer_id . '×tamp=' . $newtimestamp . '&fcsid=' . $fcsid; 107 109 108 header('Location: ' . $redirect_complete);110 wp_redirect($redirect_complete, 301); 109 111 die; 110 112 } -
foxyshop/trunk/widgetcode.php
r1126583 r1219461 18 18 $widget_ops = array('classname' => 'foxyshop_category', 'description' => sprintf(__('Show the contents of a FoxyShop %s category.', 'foxyshop'), strtolower(FOXYSHOP_PRODUCT_NAME_SINGULAR))); 19 19 $control_ops = array('width' => 300, 'height' => 350, 'id_base' => 'foxyshop-category-widget'); 20 $this->WP_Widget('foxyshop-category-widget', __('FoxyShop Category', 'foxyshop'), $widget_ops, $control_ops);20 parent::__construct('foxyshop-category-widget', __('FoxyShop Category', 'foxyshop'), $widget_ops, $control_ops); 21 21 } 22 22 … … 138 138 $widget_ops = array('classname' => 'foxyshop_cart_link', 'description' => __('Show a link to view shopping cart.', 'foxyshop')); 139 139 $control_ops = array('width' => 300, 'height' => 350, 'id_base' => 'foxyshop-cart-link-widget'); 140 $this->WP_Widget('foxyshop-cart-link-widget', __('FoxyShop Cart Link', 'foxyshop'), $widget_ops, $control_ops);140 parent::__construct('foxyshop-cart-link-widget', __('FoxyShop Cart Link', 'foxyshop'), $widget_ops, $control_ops); 141 141 } 142 142 … … 212 212 $widget_ops = array('classname' => 'foxyshop_category_list', 'description' => __('Show the FoxyShop category list.', 'foxyshop')); 213 213 $control_ops = array('width' => 300, 'height' => 350, 'id_base' => 'foxyshop-category-list-widget'); 214 $this->WP_Widget('foxyshop-category-list-widget', __('FoxyShop Category List', 'foxyshop'), $widget_ops, $control_ops);214 parent::__construct('foxyshop-category-list-widget', __('FoxyShop Category List', 'foxyshop'), $widget_ops, $control_ops); 215 215 } 216 216
Note: See TracChangeset
for help on using the changeset viewer.