| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
In-Page Anchor links for Popup Terms & Conditions in 4.5.1 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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) |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
#3
|
|||||||||
|
|||||||||
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:
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|