Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Modding Bestsellers to work in vertcolumnright

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2008, 08:56 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default 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?
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #2  
Old 03-26-2008, 12:54 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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.
Reply With Quote
  #3  
Old 03-26-2008, 02:55 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Modding Bestsellers to work in vertcolumnright

Instead of bestsellers.tpl, use menu_bestsellers.tpl
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 03-26-2008, 03:45 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: Modding Bestsellers to work in vertcolumnright

what i did was move the include bestsellers line of code in home.tpl into vertmenuright
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #5  
Old 03-26-2008, 05:28 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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?
Reply With Quote
  #6  
Old 03-26-2008, 05:35 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default 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....
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #7  
Old 03-26-2008, 06:14 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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....
Reply With Quote
  #8  
Old 03-26-2008, 08:30 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default 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
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #9  
Old 03-27-2008, 12:07 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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 ........
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:59 AM.

   

 
X-Cart forums © 2001-2020