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

Bestsellers Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-20-2009, 09:51 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Bestsellers Help

How to display bestsellers horizontally? I would like 3 across. Any help would be much appreciated.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #2  
Old 06-20-2009, 09:52 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Bestsellers Help

Also, how do you change the image size of the bestsellers?
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #3  
Old 12-09-2009, 10:55 PM
 
fbcexpress fbcexpress is offline
 

Newbie
  
Join Date: Oct 2008
Posts: 2
 

Default Re: Bestsellers Help

*Bump* I'm also trying to do this. Anyone?
Reply With Quote
  #4  
Old 12-10-2009, 04:57 AM
 
Shiftlocked Shiftlocked is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 72
 

Default Re: Bestsellers Help

Ive never been quite sure on the whole displaying best sellers, if you are being watched by your competition then it gives the game away.

Myself I prefer the flexibility of Feature Product Manager for xcart. Gives you a bit more of control of where you can place products on pages and really lets you goto town on promotion etc
__________________
Xcart Version: Patched 4.4.0 to 4.5.0
Mods Installed so far. Firetank Feed Manager - More soon - Looking for a designer to reinvent the website. Feel free to get in touch
Reply With Quote
  #5  
Old 12-10-2009, 05:16 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Wink Re: Bestsellers display

I made a mod for showing bestsellers horizontally and have it working in 4.2.3 version.

I made a revised version of bestsellers.tpl called bestsellers_r.tpl.

Code:
{* $Id: bestsellers_r.tpl,v 1.13 2009/11/26 bestsellers in a row Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $bestsellers} {capture name=bestsellers} <table class="rproducts"> <tr> {section name=cat_num loop=$bestsellers} <td> {if $config.Bestsellers.bestsellers_thumbnails eq "Y"} <a href="product.php?productid={$bestsellers[cat_num].productid} cat={$cat} bestseller=Y"> {include file="product_thumbnail.tpl" productid=$bestsellers[cat_num].productid product=$bestsellers[cat_num].product tmbn_url=$bestsellers[cat_num].tmbn_url}</a> <div class="details"> <a class="product-title" href="product.php?productid={$bestsellers[cat_num].productid} cat={$cat} bestseller=Y">{$bestsellers[cat_num].product|escape}</a><br /> {$lng.lbl_our_price}: {include file="currency.tpl" value=$bestsellers[cat_num].taxed_price} </div> <div class="clearing"></div> {else} <a class="product-title" href="product.php?productid={$bestsellers[cat_num].productid} cat={$cat} bestseller=Y">{$bestsellers[cat_num].product|escape}1</a><br /> {/if} </td> {/section} </tr> </table> {/capture} {include file="customer/dialog_nosort.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers} {/if}

Then I modified the code on subcategories.tpl located here:

/customer/main/subcategories.tpl

I just modified the file name to bestsellers_r.tpl.

Code:
{if $active_modules.Bestsellers && $config.Bestsellers.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers_r.tpl"} {/if}


See ya'
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #6  
Old 12-10-2009, 05:18 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Smile Re: Bestsellers Help

Quote:
Originally Posted by fbcexpress
*Bump* I'm also trying to do this. Anyone?

I just shared my mod code for this. Take a look at the thread.
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #7  
Old 12-10-2009, 04:07 PM
 
fbcexpress fbcexpress is offline
 

Newbie
  
Join Date: Oct 2008
Posts: 2
 

Default Re: Bestsellers Help

Thanks for sharing your code.. but its not working for us

We are running the same version of x-cart but it just gives us this error message -

Warning: Smarty error: unable to read resource: "customer/dialog_nosort.tpl" in ../xcart/include/lib/smarty/Smarty.class.php on line 1092

any ideas?
__________________
FAFFH
X-cart Gold 4.2.3
php 5.2.6
Reply With Quote
  #8  
Old 12-11-2009, 01:24 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Smile Re: Bestsellers in a row

Sorry 'bout that. I forgot that I made a new template called dialog_nosort.tpl under customer/ to remove the sorting feature which I found useless. Since as I only put 3 bestsellers, what's to sort?

Solution for you, change "customer/dialog_nosort.tpl" back to "customer/dialog.tpl"

You'll find this code at the bottom of the bestsellers_r.tpl
Code:
{/capture} {include file="customer/dialog_nosort.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers} {/if}

and change it back to
Code:
{/capture} {include file="customer/dialog.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers} {/if}

__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:54 PM.

   

 
X-Cart forums © 2001-2020