X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Featured product on any pages (https://forum.x-cart.com/showthread.php?t=62979)

Myriam 03-15-2012 12:19 PM

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?

totaltec 03-16-2012 11:16 AM

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?

Myriam 03-16-2012 11:28 AM

Re: Featured product on any pages
 
Sorry, I meant the Static pages system in xcart, wrong term :D

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.

totaltec 03-16-2012 11:35 AM

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

totaltec 03-16-2012 11:37 AM

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.

Myriam 03-16-2012 11:45 AM

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.

Myriam 03-16-2012 11:46 AM

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.

cflsystems 03-16-2012 12:42 PM

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

David-Allan 07-19-2012 04:45 AM

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.

cflsystems 07-19-2012 07:53 AM

Re: Featured product on any pages
 
Yes custom coded :) But it should work


All times are GMT -8. The time now is 02:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.