Changeset 2000173
- Timestamp:
- 12/22/2018 08:28:32 AM (7 years ago)
- Location:
- tradetracker-store
- Files:
-
- 71 added
- 3 edited
-
tags/4.6.48 (added)
-
tags/4.6.48/Tradetracker-Store.php (added)
-
tags/4.6.48/cache (added)
-
tags/4.6.48/debug.php (added)
-
tags/4.6.48/front.php (added)
-
tags/4.6.48/functions.php (added)
-
tags/4.6.48/images (added)
-
tags/4.6.48/images/No_image.png (added)
-
tags/4.6.48/images/ajax-loader.gif (added)
-
tags/4.6.48/images/more.png (added)
-
tags/4.6.48/import (added)
-
tags/4.6.48/import/database.php (added)
-
tags/4.6.48/import/xml.php (added)
-
tags/4.6.48/import/xmlsplit.php (added)
-
tags/4.6.48/js (added)
-
tags/4.6.48/js/expand.js (added)
-
tags/4.6.48/menu (added)
-
tags/4.6.48/menu/expand.js (added)
-
tags/4.6.48/menu/faq.php (added)
-
tags/4.6.48/menu/images (added)
-
tags/4.6.48/menu/images/Premium-addons.png (added)
-
tags/4.6.48/menu/images/add-edit-stores.png (added)
-
tags/4.6.48/menu/images/debug.png (added)
-
tags/4.6.48/menu/images/enhanced-distribution.png (added)
-
tags/4.6.48/menu/images/item-selection.png (added)
-
tags/4.6.48/menu/images/kruisje.png (added)
-
tags/4.6.48/menu/images/layout-settings.png (added)
-
tags/4.6.48/menu/images/more.png (added)
-
tags/4.6.48/menu/images/overlay.png (added)
-
tags/4.6.48/menu/images/product-page.png (added)
-
tags/4.6.48/menu/images/screenshot-1.png (added)
-
tags/4.6.48/menu/images/tb-close.png (added)
-
tags/4.6.48/menu/images/vinkje.png (added)
-
tags/4.6.48/menu/images/xml-feed-options.png (added)
-
tags/4.6.48/menu/itemselect.php (added)
-
tags/4.6.48/menu/layout.php (added)
-
tags/4.6.48/menu/main.js (added)
-
tags/4.6.48/menu/menu.css (added)
-
tags/4.6.48/menu/menu.php (added)
-
tags/4.6.48/menu/news.php (added)
-
tags/4.6.48/menu/pluginsettings.php (added)
-
tags/4.6.48/menu/premium.php (added)
-
tags/4.6.48/menu/releaselog.php (added)
-
tags/4.6.48/menu/search.php (added)
-
tags/4.6.48/menu/showlayout.php (added)
-
tags/4.6.48/menu/store.php (added)
-
tags/4.6.48/menu/style.css (added)
-
tags/4.6.48/menu/xmlfeed.php (added)
-
tags/4.6.48/menu/xmloption.php (added)
-
tags/4.6.48/readme.txt (added)
-
tags/4.6.48/screenshot-1.png (added)
-
tags/4.6.48/screenshot-2.png (added)
-
tags/4.6.48/screenshot-3.png (added)
-
tags/4.6.48/splits (added)
-
tags/4.6.48/tinymce (added)
-
tags/4.6.48/tinymce/cart.png (added)
-
tags/4.6.48/tinymce/test.js (added)
-
tags/4.6.48/tinymce/tinyTT.php (added)
-
tags/4.6.48/tinymce/tinymce.php (added)
-
tags/4.6.48/tinymce/ttmce.js (added)
-
tags/4.6.48/translation (added)
-
tags/4.6.48/translation/default.mo (added)
-
tags/4.6.48/translation/default.po (added)
-
tags/4.6.48/translation/tradetracker-store-nl_NL.mo (added)
-
tags/4.6.48/translation/tradetracker-store-nl_NL.po (added)
-
tags/4.6.48/translation/ttstore-nl_NL.mo (added)
-
tags/4.6.48/translation/ttstore-nl_NL.po (added)
-
tags/4.6.48/uninstall.php (added)
-
tags/4.6.48/upgrading.php (added)
-
tags/4.6.48/widget (added)
-
tags/4.6.48/widget/widget.php (added)
-
trunk/Tradetracker-Store.php (modified) (1 diff)
-
trunk/menu/itemselect.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tradetracker-store/trunk/Tradetracker-Store.php
r1996856 r2000173 3 3 * Plugin Name: Tradetracker-Store 4 4 * Plugin URI: http://wpaffiliatefeed.com 5 * Version: 4.6.4 75 * Version: 4.6.48 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/menu/itemselect.php
r1996856 r2000173 218 218 if(isset($_GET['search']) && $_GET['search'] !=""){ 219 219 $keyword = $_GET['search']; 220 if($_GET['title']=='yes'){ 221 $searchtitle = "and CONVERT(`name` USING utf8) LIKE '%$keyword%'"; 222 } 223 if($_GET['description']=='yes'){ 224 if(isset($searchtitle)){ 225 $searchdescription = "or CONVERT(`description` USING utf8) LIKE '%$keyword%'"; 226 } else { 227 $searchdescription = "and CONVERT(`description` USING utf8) LIKE '%$keyword%'"; 228 } 229 } 220 230 $searchlink = "&search=".$keyword; 221 $countquery=$wpdb->get_row("SELECT COUNT(DISTINCT ".$ttstoretable.".productID) as cnt FROM (".$ttstoretable.", ".$ttstorecattable.") left join ".$ttstoreextratable." on (".$ttstoreextratable.".`productID` = ".$ttstoretable.".`productID`) and ".$ttstoreextratable.".`extravalue` LIKE '%$keyword%' where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (CONVERT(`name` USING utf8) LIKE '%Naxos%' or CONVERT(`description` USING utf8) LIKE '%$keyword%' or ".$ttstoreextratable.".`extravalue` != null)".$searchcategorieselect." ".$searchxmlfeed." ");231 $countquery=$wpdb->get_row("SELECT COUNT(DISTINCT ".$ttstoretable.".productID) as cnt FROM (".$ttstoretable.", ".$ttstorecattable.") where ".$ttstorecattable.".productID = ".$ttstoretable.".productID $searchtitle $searchdescription ".$searchcategorieselect." ".$searchxmlfeed." "); 222 232 } else { 223 233 $searchlink = ""; … … 361 371 <input type="hidden" name="order" value="<?php echo $order;?>"> 362 372 <input class="s" type="text" name="search" value="<?php if(isset($keyword)) { echo $keyword;} ?>"> 363 <?php if(!isset($_GET['title'])&&!isset($_GET['description']) &&!isset($_GET['extra'])){ ?>373 <?php if(!isset($_GET['title'])&&!isset($_GET['description'])){ ?> 364 374 <input type="checkbox" name="title" checked="checked" value="yes">title 365 375 <input type="checkbox" name="description" checked="checked" value="yes">description 366 <input type="checkbox" name="extra" checked="checked" value="yes">extra fields367 376 <?php 368 377 $filterurl = ''; … … 379 388 $descriptionurl = ''; 380 389 } 381 if(isset($_GET['extra']) && $_GET['extra']=='yes'){ 382 $extraurl = '&extra=yes'; 383 } else { 384 $extraurl = ''; 385 } 386 $filterurl = $titleurl."".$descriptionurl."".$extraurl; 390 $filterurl = $titleurl."".$descriptionurl; 387 391 ?> 388 392 <input type="checkbox" name="title" <?php if($_GET['title']=='yes'){ echo "checked=\"checked\""; }?> value="yes">title 389 393 <input type="checkbox" name="description" <?php if($_GET['description']=='yes'){ echo "checked=\"checked\""; }?> value="yes">description 390 <input type="checkbox" name="extra" <?php if($_GET['extra']=='yes'){ echo "checked=\"checked\""; }?> value="yes">extra fields391 394 <?php } ?> 392 395 … … 421 424 } 422 425 } 423 if($_GET['extra']=='yes'){ 424 if(isset($searchtitle) || isset($searchdescription)){ 425 $searchextra = "or `extravalue` LIKE '%$keyword%'"; 426 } else { 427 $searchextra = "or `extravalue` LIKE '%$keyword%'"; 428 } 429 } 430 $visits=$wpdb->get_results("SELECT ".$ttstoretable.".*, ".$ttstorecattable.".categorieid, ".$ttstorecattable.".categorie FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$searchtitle." ".$searchdescription." ".$searchextra.") ".$searchcategorieselect." ".$searchxmlfeed." group by ".$ttstoretable.".productID ORDER BY ".$order." ASC LIMIT ".$currentpage.", ".$limit.""); 426 $visits=$wpdb->get_results("SELECT ".$ttstoretable.".*, ".$ttstorecattable.".categorieid, ".$ttstorecattable.".categorie FROM ".$ttstoretable.", ".$ttstorecattable." where ".$ttstorecattable.".productID = ".$ttstoretable.".productID and (".$searchtitle." ".$searchdescription.") ".$searchcategorieselect." ".$searchxmlfeed." group by ".$ttstoretable.".productID ORDER BY ".$order." ASC LIMIT ".$currentpage.", ".$limit.""); 431 427 } else { 432 428 if(isset($_GET['selected']) && $_GET['selected']=="yes"){ -
tradetracker-store/trunk/readme.txt
r1996856 r2000173 4 4 Tags: tradetracker, store, productfeed, affiliate, daisycon, zanox, cleafs, tradedoubler, paidonresults, M4N, xml productfeed 5 5 Requires at least: 4 6 Tested up to: 5.0. 17 Stable tag: 4.6.4 76 Tested up to: 5.0.2 7 Stable tag: 4.6.48 8 8 9 9 A plugin that lets you import an XML productfeed from TradeTracker. … … 42 42 43 43 == Changelog == 44 = 4.6.48 = 45 - Removed the search in extra fields in item select, mainly because it causes too much issues. 46 - Counter for amount of items found should be accurate now in item select search results. 47 44 48 = 4.6.47 = 45 49 - In item select it also shows description when you hover over the title of the item.
Note: See TracChangeset
for help on using the changeset viewer.