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

Bestsellers on 1 static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-24-2013, 03:33 AM
 
info@sjidesign.com info@sjidesign.com is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 46
 

Default Bestsellers on 1 static page

Hi guys,

Does anyone know how to create a static page that shows all the bestsellers?

I only want this on one page.

I have created a static page in the admin called shows.php and now I want to show all the bestsellers on the shows page.

My shows page link is ecommerce/pages.php?pageid=12

So i'm guessing I need to give an if statement on pages id=12 somewhere.

Anyone?

I am using X Cart Version 4.5.5
__________________
X Cart Version 4.2
Reply With Quote
  #2  
Old 07-24-2013, 04:43 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Bestsellers on 1 static page

You would need to see if the Bestsellers variables are available in static pages for a start. Check in webmaster mode. I might be wrong but I'm guessing not.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote

The following user thanks philrisk for this useful post:
info@sjidesign.com (07-24-2013)
  #3  
Old 07-24-2013, 04:58 AM
 
info@sjidesign.com info@sjidesign.com is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 46
 

Default Re: Bestsellers on 1 static page

Thanks, I already have the bestsellers mod installed and it is showing them on the home page.

Just need to show them on the shows.php page.
__________________
X Cart Version 4.2
Reply With Quote
  #4  
Old 07-24-2013, 05:01 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Bestsellers on 1 static page

Quote:
Originally Posted by info@sjidesign.com
Thanks, I already have the bestsellers mod installed and it is showing them on the home page.

Just need to show them on the shows.php page.

Yes but have you checked the bestsellers variables are available on the static page? Not all variables are available everywhere. Turn on webmaster mode. Go to your static page and look to see if $bestsellers is in the list of variables in the popup.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #5  
Old 07-24-2013, 05:03 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Bestsellers on 1 static page

Your lucky it is. {$bestsellers}. That saves some time. First try would be to copy the homepage include code for the bestsellers and paste in a static page in the back end. Make sure you have parse smarty tags ticked.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote

The following user thanks philrisk for this useful post:
info@sjidesign.com (07-24-2013)
  #6  
Old 07-24-2013, 05:09 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Bestsellers on 1 static page

Quote:
Originally Posted by philrisk
Your lucky it is. {$bestsellers}. That saves some time. First try would be to copy the homepage include code for the bestsellers and paste in a static page in the back end. Make sure you have parse smarty tags ticked.

Tested it on mine and that works so all you need now is a custom {include file="modules/Bestsellers/bestsellers.tpl"} that calls in the amount of products that you want. I would limit it as there will probably be a lot if you have a big store.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote

The following user thanks philrisk for this useful post:
info@sjidesign.com (07-24-2013)
  #7  
Old 07-24-2013, 05:19 AM
 
info@sjidesign.com info@sjidesign.com is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 46
 

Smile Re: Bestsellers on 1 static page

Thanks philrisk brilliant, got it working now.

It was the parse smarty tags box that I needed to tick, thank you once again you are a star.
__________________
X Cart Version 4.2
Reply With Quote
  #8  
Old 07-24-2013, 05:40 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Bestsellers on 1 static page

Quote:
Originally Posted by info@sjidesign.com
Thanks philrisk brilliant, got it working now.

It was the parse smarty tags box that I needed to tick, thank you once again you are a star.

Your welcome.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

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 05:03 AM.

   

 
X-Cart forums © 2001-2020