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

Bestsellers modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-06-2008, 09:59 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Bestsellers modification

Hi everyone,

I am attempting to get 'Bestsellers' to display on every page of my store, and have modified it to display in the third column. I have basically use an {include file="modules/Bestsellers/bestsellers.tpl"} statement in home.tpl for where I want the bestsellers to display and it works flawlessly on certain pages, like the main store front or within the product catalogue.

However when I navigate to gift certs, or advanced search it won't display anything from bestsellers.tpl and I can't figure out why.

Can anyone provide some insight here?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #2  
Old 06-06-2008, 11:13 AM
 
dtran dtran is offline
 

Member
  
Join Date: Mar 2008
Posts: 17
 

Default Re: Bestsellers modification

hello tqualizerman,

The bestseller menu displays bestsellers within the current category, that's why you're not able to see the product listings on certain pages. i.e. Try this post http://forum.x-cart.com/showthread.php?t=6073&highlight=bestseller which contains some mod that may do what you're looking for.

Thanks,
__________________
Ennexus
SEO, CMS, E-Commerce, Hosting

X-cart Gold 4.1.x
X-cart Gold 4.2.1
X-Affiliate
Dynamic Image Generator, Tela Firma
Reply With Quote
  #3  
Old 06-06-2008, 11:33 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Bestsellers modification

Thanks for the link.

After looking through the thread I think much of what was discussed is what I need to do, but the code seems to all be outdated.

Has anyone got a bestsellers modification which can simply be plugged into any page to show the overall best selling products in the store (regardless of category)??
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #4  
Old 06-06-2008, 02:22 PM
 
dtran dtran is offline
 

Member
  
Join Date: Mar 2008
Posts: 17
 

Default Re: Bestsellers modification

No problem,


If you can't find a mod out there you can try the code on the 4th page of the post.

PHP Code:
if ($active_modules["Bestsellers"])
include 
$xcart_dir."/modules/Bestsellers/bestsellers.php"

Add the above code underneath the following code

PHP Code:
if ($active_modules["Manufacturers"])
include 
$xcart_dir."/modules/Manufacturers/customer_manufacturers.php"


in files giftcert.php and search.php on the root folder.
(* make sure you backup your file *)
I've tested it on ver 4.1.9 and 4.1.10 it's showing up.

Thanks,
__________________
Ennexus
SEO, CMS, E-Commerce, Hosting

X-cart Gold 4.1.x
X-cart Gold 4.2.1
X-Affiliate
Dynamic Image Generator, Tela Firma
Reply With Quote
  #5  
Old 06-07-2008, 09:12 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Bestsellers modification

derrRrRrrr.....


I thought I was working with outdated code because until now I've only uncovered the .TPL files but now I see all of this is referring to the still-very-much-used .PHP files...fairly simple mod once you come to this realization.

Thanks for pointing me in the right direction.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #6  
Old 07-30-2008, 10:19 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Bestsellers modification

Can anyone advise how to implement this code into a static page?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #7  
Old 07-30-2008, 10:30 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Bestsellers modification

Add this code to pages.php

Code:
if ($active_modules["Bestsellers"]) include $xcart_dir."/modules/Bestsellers/bestsellers.php";

Ensure that parsing of smarty tags in static pages is enabled.

Include your bestsellers.tpl in your static page.
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 03:05 AM.

   

 
X-Cart forums © 2001-2020