-
Best Seller's Scrolling Images - support thread
This is the official support thread for the "Best Seller's Scrolling Images" plugin.
This plugin enables the following upgrades to the best seller's sidebox:
- Added the image
- Removed the numbering
- Display of the product name is beside the image (and not under image)
- Image display uses zen-cart image function (if you use Image Handler, it will be used here as well)
- Product price displayed using a zen-cart function (will also show currency changes and specials pricing)
In a nutshell - it scrolls the best sellers and adds needed info (price) to the sidebox.
This plugin was designed to be simple and without any special JS or AJAX technology, it uses a simple marquee tag.
Links:
Author's page: http://zen-cart.co.il/bestsellers-scrolling-images/
Plugin on ZenCart: http://www.zen-cart.com/index.php?ma...oducts_id=1836
Example can be found here:
http://noajewelry.com/
Enjoy,
Chaiavi
-
Re: Best Seller's Scrolling Images - support thread
I tried your nice module but no image is shown in the sidebox. Only the default : no_picture.gif !
What am i missing ? :blink:
-
Re: Best Seller's Scrolling Images - support thread
The bestseller sidebox shows your existing products.
Do the products it shows there have pictures?
-
Re: Best Seller's Scrolling Images - support thread
Yes, they do have images.
But something strange is happening.
I tried to debug the result of : tpl_best_sellers.php , by adding some echo commands :
PHP Code:
echo 'imgLink : ' . $imgLink .'<br/>';
echo "\n" ;
echo zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) .'<br/>';
echo "\n" ;
echo zen_get_products_display_price($bestsellers_list[$i]['id']) .'<br/>'.'<br/>';
and everything is OK, except the image file ! It only returns the default image folder ( i.e images/ )
You can seet the Results below :
imgLink : images/
http://example.com/store/index.php?m...roducts_id=191
€18,00
imgLink : images/
http://example.com/store/index.php?m...roducts_id=189
€13,60
imgLink : images/
http://example.com/store/index.php?m...roducts_id=181
€20,00
Any ideas ?
-
Re: Best Seller's Scrolling Images - support thread
Adding also this line :
PHP Code:
echo 'bestsellers_list['.$i.'][image] : ' . $bestsellers_list[$i]['image'] ;
returns empty results ( ! ) :
bestsellers_list[1][image] :
bestsellers_list[2][image] :
bestsellers_list[3][image] :
-
Re: Best Seller's Scrolling Images - support thread
Hi Takisd,
Please look at the other file you have in the bestseller package, it's in the modules directory.
Look at line #68 - that is the place where the image name is being populated.
Please debug that place and keep us posted.
BTW - good debugging work till now
-
Re: Best Seller's Scrolling Images - support thread
Chaivai , any ideas how to do it ? I'm new to zen cart & php . Thank you
-
Re: Best Seller's Scrolling Images - support thread
This is what i found !
If i paste the code of best_sellers.php into one page i.e Page4, while viewing the page everything works PERFECT ( Inside the page - where a new box is displayed - and in the right side where the basic sidebox is ! ).
In all other pages the images are not displayed !
What am i missing ?
-
Re: Best Seller's Scrolling Images - support thread
Quote:
Originally Posted by
takisd
Chaivai , any ideas how to do it ? I'm new to zen cart & php . Thank you
I am sorry for the misspell of your name !
-
Re: Best Seller's Scrolling Images - support thread
Thanks for this model.
Is it possible to remove the price from the product? to scroll just the product?
-
Re: Best Seller's Scrolling Images - support thread
Hi Melir...
Find the exact following string:
. zen_get_products_display_price($bestsellers_list[$i]['id'])
and remove it.
It should work
(It will be in the file: tpl_best_sellers.php)
Please try it and report back
-
Re: Best Seller's Scrolling Images - support thread
You can remove even more.
You can remove the following string:
<div align=left>' . zen_get_products_display_price($bestsellers_list[$i]['id']) . '</div>
instead of the previous string I sent you
-
Re: Best Seller's Scrolling Images - support thread
Thanks chaiavi for your quick reply. I've tried it and works wonderful.
My bestsellers are set to max 5, is this why after is finishes scrolling it becomes blank for a few seconds till it starts again scrolling?
Also is it possible to add a separator between the bestseller box products? i found a tread with the solution but only showing to me after first product.
link: http://www.zen-cart.com/forum/showthread.php?t=111763
-
Re: Best Seller's Scrolling Images - support thread
Add the following tag:
<hr>
before the closing "}"
Where is it located?
Search for:
}
$content .= '</table></div>' . "\n";
right before these lines add the tag I mentioned: <hr>
Please report back
Thanks
-
Re: Best Seller's Scrolling Images - support thread
Sorry but the <HR> didn't work and the whole sidebox disappeared
i added like this:
zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a><BR></td></tr>' . "\n";
<hr>
}
$content .= '</table></div>' . "\n";
-
Re: Best Seller's Scrolling Images - support thread
tRY ADDING IT RIGHT AFTER THE:
</tr>
-
Re: Best Seller's Scrolling Images - support thread
Tried new solution but can't manage to make it work, but this mod is great anyway.
I also have another bestseller mod called "best sellers page" that's just a page to my bestsellers, i want to add this to your bestsellers scrolling sidebox with an 'more" link into the box heading, (because the scrolling shows only 5 products, i need customers to be able to search all bestsellers) how can this be done?
תודה רבה:clap:
-
Re: Best Seller's Scrolling Images - support thread
Original code:
for ($i = 1; $i <= $total; $i++) {
$imgLink = DIR_WS_IMAGES . $bestsellers_list[$i]['image'];
if ($i == 2) {$content .= '';}
$content .= '<tr><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_image($imgLink, zen_trunc_string($bestsellers_list[$i]['name']), SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2) . '</a></td><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a><BR><div align=left>' . zen_get_products_display_price($bestsellers_list[$i]['id']) . '</div></td></tr>' . "\n";
}
$content .= '</table></div>' . "\n";
Altered code:
for ($i = 1; $i <= $total; $i++) {
$imgLink = DIR_WS_IMAGES . $bestsellers_list[$i]['image'];
if ($i == 2) {$content .= '';}
$content .= '<tr><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_image($imgLink, zen_trunc_string($bestsellers_list[$i]['name']), SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2) . '</a></td><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a><BR><div align=left>' . zen_get_products_display_price($bestsellers_list[$i]['id']) . '</div><hr></td></tr>' . "\n";
}
$content .= '</table></div>' . "<a href=http://example.com>More Bestsellers...</a>\n";
I have bolded out the changed code.
לילה טוב :smile:
-
Re: Best Seller's Scrolling Images - support thread
Thanks so much chaiav it works like a charm.
Love you...
-
Re: Best Seller's Scrolling Images - support thread
My pleasure.
Hope to see you in my Israeli support site:
Israel Zen Cart support site
Did the separating line also work?
What is the link to your site?
Avi Hayun
-
Re: Best Seller's Scrolling Images - support thread
Hi, the separating line also worked, only with the new Altered code you gave me. Thanks a million....
Thanks for your invitation to your Israeli site although I understand Hebrew well it's not my native language, and I find it easier to read English.
-
Re: Best Seller's Scrolling Images - support thread
I have just installed this add on to my site and it is working only, the product images are not showing. The only image showing is the default no_picture.gif. Also, my items are on sale and it is cutting off the sale price. You can see the whole thing. Here is my store: http://rockmyworldwg.com/
-
Re: Best Seller's Scrolling Images - support thread
Just installed this mod - Working great just a little too wide for my sidebox. I will see if I can adjust! Great Mod!:clap:
-
Re: Best Seller's Scrolling Images - support thread
Quote:
Originally Posted by
blackriver
Just installed this mod - Working great just a little too wide for my sidebox. I will see if I can adjust! Great Mod!:clap:
@blackriver what Zen Cart version did you install to, 1.5? I am looking to install this on 1.5 and was wondering if it works.
Thanks
-
Re: Best Seller's Scrolling Images - support thread
I don't have 1.5, please try it and tell us if it works
-
Re: Best Seller's Scrolling Images - support thread
My site:
http://earthscauldron.com/store/
What would be the code to center this more in the sidebox. A padding maybe??? Also would I add the code to my regular style sheet?
Thanks a bunch, this mod looks great!:yes:
-
Re: Best Seller's Scrolling Images - support thread
Anyone get this working with 1.5 yet? Everything works fine but the imaqes do not show product images just "No Picture available"
-
Re: Best Seller's Scrolling Images - support thread
FYI, this works with 1.5.
I had missed a YOUR_TEMPLATE folder.
-
Re: Best Seller's Scrolling Images - support thread
I managed to achieve a similar spacing between images by adjusting the cellspacing to 5.
-
Re: Best Seller's Scrolling Images - support thread
Hi,
Something has changed with my scrolling best sellers sidebox. In the past it would scroll 6 at a time but a total of 20. Now the length of the box changes with how many best sellers I want to display. If I want the top 20, the box length gets a lot longer. If I change it to 6, only 6 will show then it starts over.
-
Re: Best Seller's Scrolling Images - support thread
Hello members,
If anyone is wondering if this plugin will work on v1.5.x.x it does. I had it on my old cart v1.5.5e and I upgraded to v1.5.7d, and I got mine to work. If the images aren't showing up (like mine wasn't) you have to make sure that you rename the /YOUR_TEMPLATE/ folder that is in /includes/modules/sideboxes/ to the templateyou're using.Hope this helps!
-
Re: Best Seller's Scrolling Images - support thread
You might want to try something a little more current.
https://www.zen-cart.com/downloads.php?do=file&id=1909
:bigups:
-
Re: Best Seller's Scrolling Images - support thread
Quote:
Originally Posted by
dbltoe
Oh yeah,.... I am going to definitely try this one.
Thanks for the heads-up!
TesterServers