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)
-   -   FAQ set up - clicking goes to home page (https://forum.x-cart.com/showthread.php?t=62625)

flysite.eu 02-12-2012 05:33 PM

FAQ set up - clicking goes to home page
 
Hi there,

Can anyone help here: I have set up a static FAQ page and included the accordion content following the template instructions using the code {include file="custom/addons/faqs/faqs.tpl"} and checking the "Parse Smarty tags in the content of embedded static pages" in the general options.

Now when I click on a FAQ item to expand it I am sent to my home page. Any ideas how to set it up so it works as intended i.e. the FAQ item expands?

See this link: http://www.flysite.eu/FAQ.html

Thanks for your help.

Richard
flysite.eu

PhilJ 02-13-2012 06:23 AM

Re: FAQ set up - clicking goes to home page
 
In skin/ability/custom/addons/addons_common.tpl

Find this line...

Code:

{if ($main eq "product" && $config.Ability_Template.abi_product_info_display eq "accordion") || ($main eq "help" && $config.Ability_Template.abi_addon_faqs eq "Y") || $smarty.get.pageid eq "1"}

Replace...

$smarty.get.pageid eq "1"

With the ID # if your FAQ static page.

flysite.eu 02-13-2012 01:18 PM

Re: FAQ set up - clicking goes to home page
 
Hi Phil,

I have replaced the code you referenced with pageid eq "1"

The FAQ now shows an expanded accordion, but will not collapse i.e. it is a static page.

Also when I click the links to expand or collapse it sends me to my home page.

What did I miss?

Thanks

Richard

PhilJ 02-13-2012 04:36 PM

Re: FAQ set up - clicking goes to home page
 
Are you sure the ID of your FAQ static page is 1 ?

flysite.eu 02-13-2012 05:03 PM

Re: FAQ set up - clicking goes to home page
 
This is what I see when I hover over my faq page:

http://i42.tinypic.com/mkvevn.png

PhilJ 02-14-2012 06:29 AM

Re: FAQ set up - clicking goes to home page
 
Please open a support ticket and I'll take a look.


All times are GMT -8. The time now is 08:51 AM.

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