![]() |
Terms and Conditions/Privacy Statement
Hello,
New here. I did check the forum for some info on the quick fix. I am sure there are a hundred answers I just could not find them. I feel dumb for asking. Some quick help would be appreciated. I added 2 new static pages for the privacy statement and terms and conditions (static pages). I am trying to edit the URL in the Webmaster Tools for the java pop up. Here are the new pages, the URL's, skin/common_files/pages/en/terms_and_conditions.html and skin/common_files/pages/en/privacy_statement-new.html Here is what is there by default, I accept the <a href="{{terms_url}}" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;" target="_blank">"Terms & Conditions"</a> and <a href="{{privacy_url}}" target="_blank" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;">"Privacy Statement"</a> I have tried 5 different ways of showing the path (absolute and relative) and I am either getting an error or no information is showing and the beach ball is just spinning. Thanks ahead of time. |
Re: Terms and Conditions/Privacy Statement
Welcome to the forums! Don't feel dumb, this stuff is confusing.
Looking at some templates I see this: {$lng.txt_terms_and_conditions_newbie_note|substit ute:"terms_url":"`$xcart_web_dir`/pages.php?alias=conditions"} in /common_files/customer/main/register.tpl Find out what your page id is for your new page and try changing pages.php?alias=conditions to pages.php?pageid=3 where page id is your new pages id. Hope that helps, -Mike |
Re: Terms and Conditions/Privacy Statement
There are just static HTML pages. This is also the the terms and conditions at checkout, sorry forgot tot mention that.
I pull up the txt_terms_and_conditions_note. There I should just be able to edit the URL? I accept the <a href="{{terms_url}}" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;" target="_blank">"Terms & Conditions"</a> and <a href="{{privacy_url}}" target="_blank" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;">"Privacy Statement"</a> Here are the 2 paths to the static URL. http://www.grays-sportswear.com/skin/common_files/pages/en/privacy_statement-new.html http://www.grays-sportswear.com/skin/common_files/pages/en/terms_and_conditions.html If you go to the checkout here, http://www.grays-sportswear.com/cart.php?mode=checkout, you can see right now the privacy statement URL is pulling up the customer service static page?I got a straight static file to open but it is not formatted like the customer service page is now. Thanks |
Re: Terms and Conditions/Privacy Statement
When you say these are static HTML pages, are they not created by the static pages function of X-cart? If so then you should always reference them by page id like I described above. Html links which are generated by the Clean Url's module, may not be parsed correctly by javascript.
I would edit the URL like I described above, not in the language file. Hope that helps, -Mike |
Re: Terms and Conditions/Privacy Statement
Yes I created them in the static page section.
Ok thanks. The page ids are 11 and 12. Is the register file the only template file edited? Because really right now I just need to edit on the checkout page. So is that edited on the cart.php. Thanks |
Re: Terms and Conditions/Privacy Statement
/common_files/modules/One_Page_Checkout/opc_summary.tpl
If you are using OPC this is where the correct tpl is located. I think it is near line 57 but I am not positive. -Mike |
Re: Terms and Conditions/Privacy Statement
That worked thank you.
I wished there is an easier way to find out which template to edit. If I could find that out I could figure out what to edit easier. I guess more of that knowledge will come with time. Thank you totaltec. |
Re: Terms and Conditions/Privacy Statement
It does, familiarity usually breeds contempt, but in regards to X-cart it does the opposite for me. Glad you got it sorted.
-Mike |
Re: Terms and Conditions/Privacy Statement
Quote:
|
Re: Terms and Conditions/Privacy Statement
I have but in this case it does not tell me which internal file I needed to edit.
|
Re: Terms and Conditions/Privacy Statement
You can use Webmaster Mode and Firebug
|
Re: Terms and Conditions/Privacy Statement
Thanks so much for the info in this thread. it lead me where I needed to go.
here's how I did it in 4.4.5 using Fast lane checkout, do the following edits to get your terms and privacy statement in those popup windows. File: /common_files/modules/Fast_Lane_Checkout/checkout_3_place.tpl original: Code:
<div class="terms_n_conditions center"> change to: Code:
<div class="terms_n_conditions center"> change the red/bold page #s there to your page. |
Re: Terms and Conditions/Privacy Statement
Quote:
I can't believe there are so many threads about this silly fact. Yes, I can confirm in 4.5.3 this is still not solved. And I too had to search around, wasting time on how to solve this. I created 2 static pages, but instead of modifying templates, I believe the correct way is as you attempted, to just replace the url in the language variable txt_terms_and_conditions_note. For me, replacing "{{terms_url}}" with "pages.php?pageid=x" worked. Same thing for the privacy url. x being the page id of your static page. |
Re: Terms and Conditions/Privacy Statement
FYI, the problem of the OPC terms and conditions and privacy statement links not working unless you have created static pages with the hardcoded names dictated by QT and burried in the code still exists in 4.5.4.
The workaround (without modifying func.pages.php, where the hardcoded names are found) suggested by espresso above may work but I do not think the replacing "{{terms_url}}" with "pages.php?pageid=x" will still show the contentent in a popup or will it. Yes I agree, getting this correct shouldn't be so hard. |
All times are GMT -8. The time now is 09:07 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.