X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Modding Bestsellers to work in vertcolumnright (https://forum.x-cart.com/showthread.php?t=38580)

toolexperts 03-25-2008 08:56 AM

Modding Bestsellers to work in vertcolumnright
 
I have been able to place my bestsellers in my right hand column yet for some reason they will not link to the products, can anyone give me advice on how to make them linkable?

Yurij 03-26-2008 12:54 AM

Re: Modding Bestsellers to work in vertcolumnright
 
First make sure you have a module "Advanced Statistics - active.

If that does not work, tell us how you do the transfer, and what changes made in the code.

PhilJ 03-26-2008 02:55 AM

Re: Modding Bestsellers to work in vertcolumnright
 
Instead of bestsellers.tpl, use menu_bestsellers.tpl

toolexperts 03-26-2008 03:45 AM

Re: Modding Bestsellers to work in vertcolumnright
 
what i did was move the include bestsellers line of code in home.tpl into vertmenuright

Yurij 03-26-2008 05:28 AM

Re: Modding Bestsellers to work in vertcolumnright
 
Quote:

Originally Posted by toolexperts
what i did was move the include bestsellers line of code in home.tpl into vertmenuright


This could't break Block "Bestsellers."
You just do not change anything else?
This is possible if you followed the incorrect deferral in "skin1/customer/home.tpl."

It is not bad if you show site.

PS. He does not work on all pages (products, categories, etc.) or just a few?

toolexperts 03-26-2008 05:35 AM

Re: Modding Bestsellers to work in vertcolumnright
 
not sure yurij...here is the site, http://216.75.30.97...if i move it back to the center of the page, it works....

Yurij 03-26-2008 06:14 AM

Re: Modding Bestsellers to work in vertcolumnright
 
Quote:

Originally Posted by toolexperts
not sure yurij...here is the site, http://216.75.30.97...if i move it back to the center of the page, it works....



Check code file "skin1/modules/bestsellers/bestsellers.tpl"
PHP Code:

{* $Idbestsellers.tpl,v 1.8.2.1 2006/11/16 13:12:29 max Exp $ *}
{if 
$bestsellers}
{
capture name=bestsellers}
<
table cellpadding="0" cellspacing="2">
{foreach 
from=$bestsellers item=bestseller}
<
tr>
{if 
$config.Bestsellers.bestsellers_thumbnails eq "Y"}
    <
td width="30">
    <
a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller">{include file="product_thumbnail.tpl" productid=$bestseller.productid image_x=25 product=$bestseller.product}</a>
    </
td>
{/if}
    <
td>
    <
b><a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller">{$bestseller.product}</a></b><br />
{
$lng.lbl_our_price}: {include file="currency.tpl" value=$bestseller.taxed_price}<br />
    </
td>
</
tr>
{/foreach}
</
table>
{/
capture}
{include 
file="dialog.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers extra='width="100%"'}
{/if} 


In any case, should displayed HTML tag links.

You have a wealth of errors in the resulting HTML code:
- check top search block in header, for Advanced Search, i'm find this:
PHP Code:

<a href="search.php"><font="ffffff"><u>Advanced search</u></a></f


- check left block on main page - "Monthly Specials", i'm find wrong links:
PHP Code:

http://216.75.30.97/product.php?productid=17206}&cat=0&page=1 

Odd parenthesis in product url - "....?productid=17206}........"

and some else....

toolexperts 03-26-2008 08:30 AM

Re: Modding Bestsellers to work in vertcolumnright
 
ok this is weird if i change the code in the right menu in bestsellers to have it show bestsellers.tpl instead of menu_bestsellers.tpl, it works but the pics are very small

Yurij 03-27-2008 12:07 AM

Re: Modding Bestsellers to work in vertcolumnright
 
Quote:

Originally Posted by toolexperts
ok this is weird if i change the code in the right menu in bestsellers to have it show bestsellers.tpl instead of menu_bestsellers.tpl, it works but the pics are very small


Change In this piece of code size tables and Images:
PHP Code:

<td width="30">
    <
a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller">{include file="product_thumbnail.tpl" productid=$bestseller.productid image_x=25 product=$bestseller.product}</a>
    </
td


<td width="30">
and
.......
image_x=25 ........


All times are GMT -8. The time now is 02:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.