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

Featured product on any pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-15-2012, 12:19 PM
 
Myriam Myriam is offline
 

Newbie
  
Join Date: May 2011
Posts: 6
 

Default Featured product on any pages

Hello,

I'm currently working on a template with the featured item module in the template, so it should appear on every page, but it obviously only works on the main page and the products pages. Is there a way to make it work even on the CMS's pages?
__________________
X-Cart DB Version: 4.4.3 GOLD
Reply With Quote
  #2  
Old 03-16-2012, 11:16 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Featured product on any pages

I'm sure there is a way, but you may need to provide us with more info. What CMS are you referring to? X-cart's default static pages?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Myriam (03-16-2012)
  #3  
Old 03-16-2012, 11:28 AM
 
Myriam Myriam is offline
 

Newbie
  
Join Date: May 2011
Posts: 6
 

Default Re: Featured product on any pages

Sorry, I meant the Static pages system in xcart, wrong term

Here's the main page, the featured item section is on the bottom of the page
http://www.coachhouseantique.com/

and i would for it to appear on pages like:
http://www.coachhouseantique.com/sell-to-us.html
and
http://www.coachhouseantique.com/help.php?section=contactus&mode=update

I'm using a customized version of the fashion mosaic grey skin for a template.
__________________
X-Cart DB Version: 4.4.3 GOLD
Reply With Quote
  #4  
Old 03-16-2012, 11:35 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Featured product on any pages

Got it. It looks like some variables are not being assigned to smarty on those pages, you can see the section being created in the source but the content is blank.

Using webmaster mode you can determine what variables are being loaded on a particular page, and that will give you clues as to what to search for in the php.

Is this a custom module allowing this function? if so you can trace through the installation instructions and see where the variables are assigned. Then you can add that code to pages.php and help.php
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 03-16-2012, 11:37 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Featured product on any pages

Whoah, I just noticed something I'm sure you will want to know, the drop down menus on the site are not working in IE 9 on Windows 7.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Myriam (03-16-2012)
  #6  
Old 03-16-2012, 11:45 AM
 
Myriam Myriam is offline
 

Newbie
  
Join Date: May 2011
Posts: 6
 

Default Re: Featured product on any pages

Quote:
Originally Posted by totaltec
Is this a custom module allowing this function? if so you can trace through the installation instructions and see where the variables are assigned. Then you can add that code to pages.php and help.php

No, it's the available Featured product module available with the default install of xcart.

The issue here, is i think it was not made to go on the static pages, only the the category pages. As per the text in it: " This section allows you to define featured products to be shown on the category level chosen in the form above." and I'm trying to find a work around this.
__________________
X-Cart DB Version: 4.4.3 GOLD
Reply With Quote
  #7  
Old 03-16-2012, 11:46 AM
 
Myriam Myriam is offline
 

Newbie
  
Join Date: May 2011
Posts: 6
 

Default Re: Featured product on any pages

Quote:
Originally Posted by totaltec
Whoah, I just noticed something I'm sure you will want to know, the drop down menus on the site are not working in IE 9 on Windows 7.

thanks for that, I'll look into. Bizarre tough, since it's the included drop down menu from the default xcart install.
__________________
X-Cart DB Version: 4.4.3 GOLD
Reply With Quote
  #8  
Old 03-16-2012, 12:42 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Featured product on any pages

Featured products are category based only. Since they are defined by category there is no way to show them on non-category page - category doesn't exists there. If you want to have some sort of "featured product(s)" on non-category pages this has to be custom coded
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 07-19-2012, 04:45 AM
  David-Allan's Avatar 
David-Allan David-Allan is offline
 

eXpert
  
Join Date: Oct 2011
Location: Scotland, UK
Posts: 313
 

Default Re: Featured product on any pages

TotalTec explains how to do this very thing in another thread. http://forum.x-cart.com/showthread.php?t=61046&highlight=add+products+to+s tatic+pages

Worked for me kind of. Just have to play with it to make it look correct.
__________________
Live Version : 4.5.2
Licensed Products:
X-Cart Gold
Ability Theme
CDSEO
xCMS
Abandoned Cart
Food Packaging Scotland
Reply With Quote
  #10  
Old 07-19-2012, 07:53 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Featured product on any pages

Yes custom coded But it should work
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 03:42 AM.

   

 
X-Cart forums © 2001-2020