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

FAQ set up - clicking goes to home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-12-2012, 05:33 PM
 
flysite.eu flysite.eu is offline
 

Member
  
Join Date: Feb 2012
Posts: 11
 

Default 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
__________________
www.flysite.eu
X-Cart DB Version: 4.4.5 GOLD

Checkout Module: One_Page_Checkout
Current Skin: Ability Template(/skin/ability)
Available Languages: de,en,es,fr,it
Enabled: Ability_Template; XMultiCurrency
Reply With Quote
  #2  
Old 02-13-2012, 06:23 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 02-13-2012, 01:18 PM
 
flysite.eu flysite.eu is offline
 

Member
  
Join Date: Feb 2012
Posts: 11
 

Default 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
__________________
www.flysite.eu
X-Cart DB Version: 4.4.5 GOLD

Checkout Module: One_Page_Checkout
Current Skin: Ability Template(/skin/ability)
Available Languages: de,en,es,fr,it
Enabled: Ability_Template; XMultiCurrency
Reply With Quote
  #4  
Old 02-13-2012, 04:36 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: FAQ set up - clicking goes to home page

Are you sure the ID of your FAQ static page is 1 ?
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 02-13-2012, 05:03 PM
 
flysite.eu flysite.eu is offline
 

Member
  
Join Date: Feb 2012
Posts: 11
 

Default 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
__________________
www.flysite.eu
X-Cart DB Version: 4.4.5 GOLD

Checkout Module: One_Page_Checkout
Current Skin: Ability Template(/skin/ability)
Available Languages: de,en,es,fr,it
Enabled: Ability_Template; XMultiCurrency
Reply With Quote
  #6  
Old 02-14-2012, 06:29 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: FAQ set up - clicking goes to home page

Please open a support ticket and I'll take a look.
__________________
xcartmods.co.uk
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 11:24 PM.

   

 
X-Cart forums © 2001-2020