Changeset 1593738
- Timestamp:
- 02/11/2017 08:15:47 AM (9 years ago)
- Location:
- tradetracker-store
- Files:
-
- 71 added
- 3 edited
-
tags/4.6.39 (added)
-
tags/4.6.39/Tradetracker-Store.php (added)
-
tags/4.6.39/cache (added)
-
tags/4.6.39/debug.php (added)
-
tags/4.6.39/front.php (added)
-
tags/4.6.39/functions.php (added)
-
tags/4.6.39/images (added)
-
tags/4.6.39/images/No_image.png (added)
-
tags/4.6.39/images/ajax-loader.gif (added)
-
tags/4.6.39/images/more.png (added)
-
tags/4.6.39/import (added)
-
tags/4.6.39/import/database.php (added)
-
tags/4.6.39/import/xml.php (added)
-
tags/4.6.39/import/xmlsplit.php (added)
-
tags/4.6.39/js (added)
-
tags/4.6.39/js/expand.js (added)
-
tags/4.6.39/menu (added)
-
tags/4.6.39/menu/expand.js (added)
-
tags/4.6.39/menu/faq.php (added)
-
tags/4.6.39/menu/images (added)
-
tags/4.6.39/menu/images/Premium-addons.png (added)
-
tags/4.6.39/menu/images/add-edit-stores.png (added)
-
tags/4.6.39/menu/images/debug.png (added)
-
tags/4.6.39/menu/images/enhanced-distribution.png (added)
-
tags/4.6.39/menu/images/item-selection.png (added)
-
tags/4.6.39/menu/images/kruisje.png (added)
-
tags/4.6.39/menu/images/layout-settings.png (added)
-
tags/4.6.39/menu/images/more.png (added)
-
tags/4.6.39/menu/images/overlay.png (added)
-
tags/4.6.39/menu/images/product-page.png (added)
-
tags/4.6.39/menu/images/screenshot-1.png (added)
-
tags/4.6.39/menu/images/tb-close.png (added)
-
tags/4.6.39/menu/images/vinkje.png (added)
-
tags/4.6.39/menu/images/xml-feed-options.png (added)
-
tags/4.6.39/menu/itemselect.php (added)
-
tags/4.6.39/menu/layout.php (added)
-
tags/4.6.39/menu/main.js (added)
-
tags/4.6.39/menu/menu.css (added)
-
tags/4.6.39/menu/menu.php (added)
-
tags/4.6.39/menu/news.php (added)
-
tags/4.6.39/menu/pluginsettings.php (added)
-
tags/4.6.39/menu/premium.php (added)
-
tags/4.6.39/menu/releaselog.php (added)
-
tags/4.6.39/menu/search.php (added)
-
tags/4.6.39/menu/showlayout.php (added)
-
tags/4.6.39/menu/store.php (added)
-
tags/4.6.39/menu/style.css (added)
-
tags/4.6.39/menu/xmlfeed.php (added)
-
tags/4.6.39/menu/xmloption.php (added)
-
tags/4.6.39/readme.txt (added)
-
tags/4.6.39/screenshot-1.png (added)
-
tags/4.6.39/screenshot-2.png (added)
-
tags/4.6.39/screenshot-3.png (added)
-
tags/4.6.39/splits (added)
-
tags/4.6.39/tinymce (added)
-
tags/4.6.39/tinymce/cart.png (added)
-
tags/4.6.39/tinymce/test.js (added)
-
tags/4.6.39/tinymce/tinyTT.php (added)
-
tags/4.6.39/tinymce/tinymce.php (added)
-
tags/4.6.39/tinymce/ttmce.js (added)
-
tags/4.6.39/translation (added)
-
tags/4.6.39/translation/default.mo (added)
-
tags/4.6.39/translation/default.po (added)
-
tags/4.6.39/translation/tradetracker-store-nl_NL.mo (added)
-
tags/4.6.39/translation/tradetracker-store-nl_NL.po (added)
-
tags/4.6.39/translation/ttstore-nl_NL.mo (added)
-
tags/4.6.39/translation/ttstore-nl_NL.po (added)
-
tags/4.6.39/uninstall.php (added)
-
tags/4.6.39/upgrading.php (added)
-
tags/4.6.39/widget (added)
-
tags/4.6.39/widget/widget.php (added)
-
trunk/Tradetracker-Store.php (modified) (1 diff)
-
trunk/front.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tradetracker-store/trunk/Tradetracker-Store.php
r1584214 r1593738 3 3 * Plugin Name: Tradetracker-Store 4 4 * Plugin URI: http://wpaffiliatefeed.com 5 * Version: 4.6.3 85 * Version: 4.6.39 6 6 * Description: A Plugin that will add a TradeTracker affiliate feed to your site with several options to choose from. 7 7 * Author: Robert Braam -
tradetracker-store/trunk/front.php
r1583787 r1593738 17 17 $ttslidertheme = "base"; 18 18 } 19 } 19 20 if(get_option("Tradetracker_usecss") == "1"){ 20 21 wp_register_style( 'tt_store_css', get_option('Tradetracker_csslink')); … … 23 24 wp_register_style( 'tt_slider_css', "//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/".$ttslidertheme."/jquery-ui.css"); 24 25 wp_enqueue_style( 'tt_slider_css'); 25 }26 26 } 27 27 … … 423 423 $Tradetracker_amount_i = "LIMIT ".$multi_val->multiamount.""; 424 424 } 425 $totalitems=count($wpdb->get_results("SELECT id FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID ".$priceselect." group by ".$ttstoretable.".productID ".$Tradetracker_amount_i."")); 425 $nonexisting = $wpdb->get_results("SELECT productID from ".$ttstoreitemtable." where storeID = '".$winkelvol."'"); 426 if(count($nonexisting)>0){ 427 $Tradetracker_productid1 = array(); 428 foreach($nonexisting as $term){ 429 $Tradetracker_productid1[] = $term->productID; 430 } 431 $Tradetracker_productid1 = implode(",", $Tradetracker_productid1); 432 } 433 $productID = $Tradetracker_productid1; 434 $productID = str_replace(",", "' or ".$ttstoretable.".productID='", $productID); 435 436 437 $totalitems=count($wpdb->get_results("SELECT id FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$ttstoretable.".productID='".$productID."') ".$multixmlfeed." ".$categorieselect." ".$priceselectcur." group by ".$ttstoretable.".productID ORDER BY ".$multisorting." ".$multiorder." ".$Tradetracker_amount_i."")); 426 438 } 427 439 if(isset($_GET['ipp']) && is_numeric($_GET['ipp']) && $_GET['ipp']>"0"){ … … 597 609 $productID = $Tradetracker_productid; 598 610 $productID = str_replace(",", "' or ".$ttstoretable.".productID='", $productID); 599 $totalitems=count($wpdb->get_results("SELECT id FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$ttstoretable.".productID='".$productID."') ".$ priceselectcur." group by ".$ttstoretable.".productID ".$Tradetracker_amount_i.""));611 $totalitems=count($wpdb->get_results("SELECT id FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$ttstoretable.".productID='".$productID."') ".$multixmlfeed." ".$categorieselect." ".$priceselectcur." group by ".$ttstoretable.".productID ".$Tradetracker_amount_i."")); 600 612 } 601 613 if(isset($_GET['ipp']) && is_numeric($_GET['ipp']) && $_GET['ipp']>"0"){ … … 678 690 $productID = str_replace(",", "' or ".$ttstoretable.".productID='", $productID); 679 691 if(isset($productID) && $productID != ""){ 680 $wherequery = "where (".$ttstoretable.".productID='".$productID."') ".$ priceselectcur;681 $wherequery1 = "where (t.productID='".$productID1."') ".$ priceselectcur;692 $wherequery = "where (".$ttstoretable.".productID='".$productID."') ".$multixmlfeed." ".$categorieselect." ".$priceselectcur; 693 $wherequery1 = "where (t.productID='".$productID1."') ".$multixmlfeed." ".$categorieselect." ".$priceselectcur; 682 694 } else { 683 $wherequery = "where 1=1 ".$ priceselectcur;695 $wherequery = "where 1=1 ".$multixmlfeed." ".$categorieselect." ".$priceselectcur; 684 696 } 685 $visits=$wpdb->get_results("SELECT * FROM ".$ttstorecattable.", ".$ttstoretable." as t JOIN (SELECT(FLOOR(max(id) * rand())) as maxid FROM ".$ttstoretable." $wherequery ".$Tradetracker_amount_i.") as tt on t.id >= tt.maxid ".$wherequery1." and ".$ttstorecattable.".productID = t.productID group by t.productID ".$Tradetracker_amount_i."");697 $visits=$wpdb->get_results("SELECT * FROM ".$ttstorecattable.", ".$ttstoretable." as t JOIN (SELECT(FLOOR(max(id) * rand())) as maxid FROM ".$ttstoretable.", ".$ttstorecattable." $wherequery ".$Tradetracker_amount_i.") as tt on t.id >= tt.maxid ".$wherequery1." and ".$ttstorecattable.".productID = t.productID group by t.productID ".$Tradetracker_amount_i.""); 686 698 } 687 699 } … … 700 712 $productID = $Tradetracker_productid; 701 713 $productID = str_replace(",", "' or ".$ttstoretable.".productID='", $productID); 702 $visits=$wpdb->get_results("SELECT * FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$ttstoretable.".productID='".$productID."') ".$ priceselectcur." group by ".$ttstoretable.".productID ORDER BY ".$multisorting." ".$multiorder." ".$Tradetracker_amount_i."");714 $visits=$wpdb->get_results("SELECT * FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$ttstoretable.".productID='".$productID."') ".$multixmlfeed." ".$categorieselect." ".$priceselectcur." group by ".$ttstoretable.".productID ORDER BY ".$multisorting." ".$multiorder." ".$Tradetracker_amount_i.""); 703 715 } 704 716 } -
tradetracker-store/trunk/readme.txt
r1584214 r1593738 5 5 Requires at least: 4 6 6 Tested up to: 4.7.2 7 Stable tag: 4.6.3 87 Stable tag: 4.6.39 8 8 9 9 A plugin that lets you import an XML productfeed from TradeTracker. … … 43 43 == Changelog == 44 44 = 4.6.38 = 45 - If you deselect a category while you have selected items then it will only display the items of the remaining selected categories. 46 47 = 4.6.38 = 45 48 - Selecting none in the item select and saving will now also save when no items are selected. 46 49
Note: See TracChangeset
for help on using the changeset viewer.