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

In-Page Anchor links for Popup Terms & Conditions in 4.5.1

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-13-2012, 08:32 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default In-Page Anchor links for Popup Terms & Conditions in 4.5.1

Background:
Using the AJAX one page checkout in XC 4.5.1, a link is displayed to the customer to bring up the Terms & Conditions info in a popup. The code behind this link is <xcartdir>/pages.php?alias=conditions. In pages.php there is code that associates the alias "conditions" with the name of the static page which contains your terms and conditions info. (NOTE you must make sure your static page has the same name as what is in the pages.php file)

Problem:
My terms and conditions page is rather long on content (as most are) and so I had built my static page with in-page anchor links (using things like <a href="#returns"> and corresponding <a name="returns"> code) in order to allow "jumping" within the content. Although the terms and conditions page works great when called from the help section at the bottom of the store pages (<xcartdir>/terms_and_conditions.html), and the page loads fine as a popup from the AJAX OPC link, if someone clicks one of the in-page links within the popup it reloads the storefront homepage within the popup. I can see why this is happening because the in-page link inside the popup page tries to load <xcartdir>/#returns which of course is not right.

So, any suggestion on how to get in-page links working for a static page loaded as a popup from the AJAX OPC link?
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #2  
Old 04-01-2015, 10:19 PM
 
duragrit duragrit is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 36
 

Default Re: In-Page Anchor links for Popup Terms & Conditions in 4.5.1

@tartaglia Experiencing the same issue. Did you ever get this resolved?
__________________
X-Cart v4.7.5 Gold Plus
Modules: Infinite Scroll, X-Cloud Backup
theXCartStore: xTreme Gear Template, xMobile, xAccess, xBanners 2, xMenus Responsive, Predictive Search
Reply With Quote
  #3  
Old 06-18-2015, 11:56 AM
  McGuireArmyNavy's Avatar 
McGuireArmyNavy McGuireArmyNavy is offline
 

Member
  
Join Date: Oct 2013
Posts: 29
 

Default Re: In-Page Anchor links for Popup Terms & Conditions in 4.5.1

You can fix this by using the full url including the #, instead of just the #.

example:
replace
Code:
<a href="#shipping_charges">What are the shipping charges?</a>
with
Code:
<a href="http://www.mcguirearmynavy.com/Shipping-Returns.html#shipping_charges">What are the shipping charges?</a>
__________________
X-Cart Gold 4.6.4
www.mcguirearmynavy.com
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 04:41 AM.

   

 
X-Cart forums © 2001-2020