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
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
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
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
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
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";
tRY ADDING IT RIGHT AFTER THE:
</tr>
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?
תודה רבה![]()
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.
לילה טוב![]()
Thanks so much chaiav it works like a charm.
Love you...
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
Bookmarks