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)
-   -   Terms and Conditions/Privacy Statement (https://forum.x-cart.com/showthread.php?t=62139)

tapupartforpres 12-27-2011 07:19 AM

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 &amp; 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.

totaltec 12-27-2011 07:40 AM

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

tapupartforpres 12-27-2011 08:04 AM

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 &amp; 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

totaltec 12-27-2011 08:09 AM

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

tapupartforpres 12-27-2011 08:19 AM

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

totaltec 12-27-2011 09:03 AM

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

tapupartforpres 12-27-2011 09:26 AM

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.

totaltec 12-27-2011 10:36 AM

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

cherie 12-27-2011 02:58 PM

Re: Terms and Conditions/Privacy Statement
 
Quote:

Originally Posted by tapupartforpres
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.

Have you tried using Webmaster Mode?

tapupartforpres 12-28-2011 05:57 AM

Re: Terms and Conditions/Privacy Statement
 
I have but in this case it does not tell me which internal file I needed to edit.


All times are GMT -8. The time now is 08:59 PM.

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