Changeset 1551250
- Timestamp:
- 12/10/2016 07:47:27 AM (9 years ago)
- Location:
- foxyshop
- Files:
-
- 145 added
- 7 edited
-
tags/4.7.2 (added)
-
tags/4.7.2/LICENSE (added)
-
tags/4.7.2/README.md (added)
-
tags/4.7.2/adminajax.php (added)
-
tags/4.7.2/adminfunctions.php (added)
-
tags/4.7.2/bulkeditor.php (added)
-
tags/4.7.2/categorysorting.php (added)
-
tags/4.7.2/css (added)
-
tags/4.7.2/css/chosen.css (added)
-
tags/4.7.2/css/cloud-zoom.css (added)
-
tags/4.7.2/css/dropzone.css (added)
-
tags/4.7.2/css/foxyshop-admin.css (added)
-
tags/4.7.2/css/foxyshop.css (added)
-
tags/4.7.2/css/jquery.jqzoom.css (added)
-
tags/4.7.2/css/magnific-popup.css (added)
-
tags/4.7.2/customers.php (added)
-
tags/4.7.2/customposttype.php (added)
-
tags/4.7.2/customsorting.php (added)
-
tags/4.7.2/datafeedfunctions.php (added)
-
tags/4.7.2/foxyshop.php (added)
-
tags/4.7.2/generatesitemap.php (added)
-
tags/4.7.2/googleproductfeed.php (added)
-
tags/4.7.2/helperfunctions.php (added)
-
tags/4.7.2/images (added)
-
tags/4.7.2/images/add-new-image.png (added)
-
tags/4.7.2/images/chosen-sprite.png (added)
-
tags/4.7.2/images/delete.png (added)
-
tags/4.7.2/images/editicon.png (added)
-
tags/4.7.2/images/featured.png (added)
-
tags/4.7.2/images/foxycart-icon.png (added)
-
tags/4.7.2/images/help.png (added)
-
tags/4.7.2/images/icon.png (added)
-
tags/4.7.2/images/iconsprite.png (added)
-
tags/4.7.2/images/logo.png (added)
-
tags/4.7.2/images/no-photo.png (added)
-
tags/4.7.2/images/paper-shadow.png (added)
-
tags/4.7.2/images/plusminus.png (added)
-
tags/4.7.2/images/refresh.png (added)
-
tags/4.7.2/images/rename.png (added)
-
tags/4.7.2/images/search-icon.png (added)
-
tags/4.7.2/images/visible.png (added)
-
tags/4.7.2/images/zoomloader.gif (added)
-
tags/4.7.2/inventory.php (added)
-
tags/4.7.2/js (added)
-
tags/4.7.2/js/chosen.jquery.min.js (added)
-
tags/4.7.2/js/cloud-zoom.1.0.2.js (added)
-
tags/4.7.2/js/dropzone.js (added)
-
tags/4.7.2/js/jquery.magnific-popup.min.js (added)
-
tags/4.7.2/js/jquery.tablesorter.js (added)
-
tags/4.7.2/js/multiship.jquery.js (added)
-
tags/4.7.2/js/multiship2.jquery.js (added)
-
tags/4.7.2/js/prettyphoto (added)
-
tags/4.7.2/js/prettyphoto/jquery.prettyPhoto.js (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto.css (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/btnNext.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/btnPrevious.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/contentPattern.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/default_thumbnail.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_rounded/sprite.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/btnNext.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/btnPrevious.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/contentPattern.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/default_thumbnail.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/dark_square/sprite.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/default_thumb.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/sprite.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/sprite_next.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/sprite_prev.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/sprite_x.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/default/sprite_y.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/btnNext.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/btnPrevious.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/contentPatternBottom.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/contentPatternLeft.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/contentPatternRight.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/contentPatternTop.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/default_thumbnail.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/facebook/sprite.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded/btnNext.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded/btnPrevious.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded/default_thumbnail.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_rounded/sprite.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square/btnNext.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square/btnPrevious.png (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square/default_thumbnail.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square/loader.gif (added)
-
tags/4.7.2/js/prettyphoto/prettyPhoto/light_square/sprite.png (added)
-
tags/4.7.2/js/products-admin.js (added)
-
tags/4.7.2/js/variation.process.jquery.js (added)
-
tags/4.7.2/languages (added)
-
tags/4.7.2/languages/foxyshop-de_DE.mo (added)
-
tags/4.7.2/languages/foxyshop-de_DE.po (added)
-
tags/4.7.2/languages/foxyshop-nb_NO.mo (added)
-
tags/4.7.2/languages/foxyshop-nb_NO.po (added)
-
tags/4.7.2/languages/foxyshop.pot (added)
-
tags/4.7.2/orders.php (added)
-
tags/4.7.2/productfeed.php (added)
-
tags/4.7.2/readme.txt (added)
-
tags/4.7.2/screenshot-1.jpg (added)
-
tags/4.7.2/screenshot-2.jpg (added)
-
tags/4.7.2/screenshot-3.jpg (added)
-
tags/4.7.2/screenshot-4.jpg (added)
-
tags/4.7.2/screenshot-5.jpg (added)
-
tags/4.7.2/settings-page.php (added)
-
tags/4.7.2/setup-page.php (added)
-
tags/4.7.2/shippingintegration.php (added)
-
tags/4.7.2/shortcodesettings.php (added)
-
tags/4.7.2/sso.php (added)
-
tags/4.7.2/ssoendpoint.php (added)
-
tags/4.7.2/subscriptions.php (added)
-
tags/4.7.2/templateredirect.php (added)
-
tags/4.7.2/themefiles (added)
-
tags/4.7.2/themefiles/foxyshop-all-categories.php (added)
-
tags/4.7.2/themefiles/foxyshop-all-products.php (added)
-
tags/4.7.2/themefiles/foxyshop-checkout-template-2.php (added)
-
tags/4.7.2/themefiles/foxyshop-checkout-template.php (added)
-
tags/4.7.2/themefiles/foxyshop-custom-upload.php (added)
-
tags/4.7.2/themefiles/foxyshop-datafeed-endpoint.php (added)
-
tags/4.7.2/themefiles/foxyshop-footer.php (added)
-
tags/4.7.2/themefiles/foxyshop-header.php (added)
-
tags/4.7.2/themefiles/foxyshop-product-loop.php (added)
-
tags/4.7.2/themefiles/foxyshop-receipt-template-2.php (added)
-
tags/4.7.2/themefiles/foxyshop-receipt-template.php (added)
-
tags/4.7.2/themefiles/foxyshop-receipt.php (added)
-
tags/4.7.2/themefiles/foxyshop-search.php (added)
-
tags/4.7.2/themefiles/foxyshop-single-category-shortcode.php (added)
-
tags/4.7.2/themefiles/foxyshop-single-category.php (added)
-
tags/4.7.2/themefiles/foxyshop-single-product-shortcode.php (added)
-
tags/4.7.2/themefiles/foxyshop-single-product.php (added)
-
tags/4.7.2/tools-page.php (added)
-
tags/4.7.2/uninstall.php (added)
-
tags/4.7.2/uploadprocessor.php (added)
-
tags/4.7.2/widgetcode.php (added)
-
trunk/customposttype.php (modified) (1 diff)
-
trunk/foxyshop.php (modified) (3 diffs)
-
trunk/googleproductfeed.php (modified) (5 diffs)
-
trunk/helperfunctions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/settings-page.php (modified) (1 diff)
-
trunk/widgetcode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
foxyshop/trunk/customposttype.php
r1266209 r1551250 138 138 $out = array(); 139 139 foreach ( $terms as $c ) 140 $out[] = "<a href='edit-tags.php?action=edit&taxonomy=$_taxonomy&post_type= book&tag_ID={$c->term_id}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . "</a>";140 $out[] = "<a href='edit-tags.php?action=edit&taxonomy=$_taxonomy&post_type=foxyshop_product&tag_ID={$c->term_id}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . "</a>"; 141 141 echo join( ', ', $out ); 142 142 } -
foxyshop/trunk/foxyshop.php
r1293858 r1551250 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.7. 18 Version: 4.7.2 9 9 Author URI: http://www.foxy-shop.com/ 10 10 … … 39 39 40 40 //Setup Plugin Variables 41 define('FOXYSHOP_VERSION', "4.7. 1");41 define('FOXYSHOP_VERSION', "4.7.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__)); … … 56 56 load_plugin_textdomain('foxyshop', 0, dirname(plugin_basename(__FILE__)).'/languages/'); 57 57 $foxycart_version_array = array('2.0' => '2.0', '1.1' => '1.1', '1.0' => '1.0', '0.7.2' => '0.7.2', '0.7.1' => '0.7.1', '0.7.0' => '0.7.0'); 58 $google_product_field_names = array('google_product_category', 'mpn', 'gtin', ' brand', 'condition', 'age_group', 'gender', 'color', 'size', 'material', 'pattern');58 $google_product_field_names = array('google_product_category', 'mpn', 'gtin', 'identifier_exists', 'brand', 'condition', 'age_group', 'gender', 'color', 'size', 'material', 'pattern'); 59 59 60 60 //Setup Admin Functions -
foxyshop/trunk/googleproductfeed.php
r965423 r1551250 48 48 49 49 $write = ""; 50 foreach($fieldnames as $field) {50 foreach($fieldnames as $key => $field) { 51 51 if ($field != $fieldnames[0]) $write .= "\t"; 52 52 if ($amazon_version) { 53 if ($field == "identifier_exists") { 54 unset($fieldnames[$key]); 55 continue; 56 } 53 57 if ($field == "product_type") $field = "category"; 54 58 if ($field == "id") $field = "sku"; … … 69 73 $product = foxyshop_setup_product($singleproduct); 70 74 $product = apply_filters('foxyshop_setup_product_info_google', $product); 75 $identifier_exists = ""; 71 76 72 77 foreach($fieldnames as $fieldname) { … … 127 132 case 'gtin': 128 133 $gtin = get_post_meta($product['id'],'_gtin',1); 129 if (!$gtin) $gtin = $product['code']; 134 if ($gtin === "FALSE") { 135 $identifier_exists = "FALSE"; 136 $gtin = ""; 137 } else { 138 if (!$gtin) $gtin = $product['code']; 139 } 140 130 141 $write .= foxyshop_dblquotes($gtin); break; 131 132 142 case 'mpn': 133 143 $mpn = get_post_meta($product['id'],'_mpn',1); 134 if (!$mpn) $mpn = $product['code']; 144 if ($mpn === "FALSE") { 145 $identifier_exists = "FALSE"; 146 $mpn = ""; 147 } else { 148 if (!$mpn) $mpn = $product['code']; 149 } 135 150 $write .= foxyshop_dblquotes($mpn); break; 151 152 case 'identifier_exists': 153 $write .= foxyshop_dblquotes($identifier_exists); break; 136 154 137 155 case "image_link": … … 156 174 } 157 175 $write .= "\n"; 158 159 160 176 } 161 177 echo $write; … … 243 259 $xml .= '<sc:target_country>' . apply_filters("foxyshop_google_product_target_country", "US") . '</sc:target_country>'."\n"; 244 260 $xml .= '<sc:content_language>en</sc:content_language>'."\n"; 261 $identifier_exists = true; 245 262 foreach($google_product_field_names as $field) { 246 263 $val = get_post_meta($product['id'],'_'.$field,1); 264 if ($field == 'gtin' && $val == "FALSE") { 265 $identifier_exists = false; 266 $val = ""; 267 } 268 if ($field == 'mpn' && $val == "FALSE") { 269 $identifier_exists = false; 270 $val = ""; 271 } 247 272 if ($field == 'condition') $val = $condition; 248 if ($field == 'gtin' && !$val) $val = $product['code']; 273 if ($field == 'gtin' && !$val && $identifier_exists) $val = $product['code']; 274 if ($field == 'mpn' && !$val && $identifier_exists) $val = $product['code']; 249 275 if ($val) $xml .= '<scp:'.$field.'>' . esc_attr($val) . '</scp:'.$field.'>'."\n"; 250 276 } 277 278 //No GTIN or MPN 279 if (!$identifier_exists) { 280 $xml .= '<scp:identifier_exists>FALSE</scp:identifier_exists>'."\n"; 281 } 282 251 283 $xml .= '<scp:availability>in stock</scp:availability>'."\n"; 252 284 $xml .= '<scp:price unit="' . apply_filters("foxyshop_google_product_currency", "usd") . '">' . $product['originalprice'] . '</scp:price>'."\n"; -
foxyshop/trunk/helperfunctions.php
r1266209 r1551250 149 149 $new_product['images'] = array(); 150 150 if (!$shortcut) { 151 152 //Get Featured Image 151 153 $imageNumber = 0; 152 154 $featuredImageID = (has_post_thumbnail($thepost->ID) ? get_post_thumbnail_id($thepost->ID) : 0); 155 156 //Get Attachments 153 157 $attachments = get_posts(array('numberposts' => -1, 'post_type' => 'attachment','post_status' => null,'post_parent' => $thepost->ID, "post_mime_type" => "image", 'order' => 'ASC','orderby' => 'menu_order')); 154 if (!$attachments && $featuredImageID) { 155 $attachments = get_posts(array("p" => $featuredImageID, 'post_type' => 'attachment', "post_mime_type" => "image")); 158 159 //Search For Featured Image in Attachments 160 $featured_image_in_attachments = false; 161 foreach ($attachments as $cur_value) { 162 if ($cur_value->ID == $featuredImageID) { 163 $featured_image_in_attachments = true; 164 } 165 } 166 if ((!$attachments && $featuredImageID) || !$featured_image_in_attachments) { 167 $attachments = array_merge($attachments, get_posts(array("p" => $featuredImageID, 'post_type' => 'attachment', "post_mime_type" => "image"))); 156 168 } 157 169 $sizes = get_intermediate_image_sizes(); -
foxyshop/trunk/readme.txt
r1293858 r1551250 4 4 Tags: foxycart, shopping, cart, inventory, management, ecommerce, selling, subscription, foxy 5 5 Requires at least: 3.1 6 Tested up to: 4. 47 Stable tag: 4.7. 16 Tested up to: 4.7 7 Stable tag: 4.7.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.7.2 = 72 * Show featured image in a group even if it wasn't uploaded to product 73 * Updating Google Product Feed to allow identifier_exists=false value 74 * Widget class name updates to support PHP 7 70 75 71 76 = 4.7.1 = -
foxyshop/trunk/settings-page.php
r1010947 r1551250 435 435 <input type="checkbox" id="foxyshop_ship_to" name="foxyshop_enable_ship_to"<?php checked($foxyshop_settings['enable_ship_to'], "on"); ?> /> 436 436 <label for="foxyshop_ship_to"><?php _e('Enable Multi-Ship', 'foxyshop'); ?></label> 437 <a href="#" class="foxyshophelp"> Remember that FoxyCart charges an extra fee for this service. You must enable it on your FoxyCart account or it will not work. NOTE: At this time, this feature is not available for multi-ship stores.</a>437 <a href="#" class="foxyshophelp">You must enable this feature on your FoxyCart account or it will not work.</a> 438 438 </td> 439 439 </tr> -
foxyshop/trunk/widgetcode.php
r1219461 r1551250 15 15 16 16 //Widget Setup 17 function FoxyShop_Category() {17 function __construct() { 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'); … … 135 135 136 136 //Widget Setup 137 function FoxyShop_Cart_Link() {137 function __construct() { 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'); … … 209 209 210 210 //Widget setup. 211 function FoxyShop_Category_List() {211 function __construct() { 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');
Note: See TracChangeset
for help on using the changeset viewer.