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

Help with adding a txt in languages..it won't let me add!!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-20-2002, 08:18 PM
 
tmx tmx is offline
 

Member
  
Join Date: Nov 2002
Location: Arizona (USA)
Posts: 28
 

Default ...

Yes put it in it's own template, sorry when i looked at it earlier i assumed you had it in a template that is why i posted the {literal} tags. Let me know if you have any more problems with it once you post it into a template!
__________________
-tmx-
Reply With Quote
  #12  
Old 11-21-2002, 10:05 AM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default reply..

Hey, I never created a new template. Can you please guide me through it and tell me hos it's done? Thanks![/code]
Reply With Quote
  #13  
Old 11-21-2002, 11:28 AM
 
tmx tmx is offline
 

Member
  
Join Date: Nov 2002
Location: Arizona (USA)
Posts: 28
 

Default How to...

Ok here goes, i'll try to explain as best as I can. I'm not sure where you would like to keep this template so I'll just assume your going to put it into xcart/customer/main/. So once your logged into the Admin section click on Edit Templates, then go to customer/main/ In there type in the new template your going to create, web_quote.tpl then click new file. From there it will create the new file so now go into it to edit it. Paste this exact code into it...

Code:
{ include file="location.tpl" last_location="Web Quote"} {capture name=dialog} {literal} <form method="POST" name="FrontPage_Form1" action="freequote.php" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber3"> <tr> <td width="558" colspan="2">Contact Information:</td> </tr> <tr> <td width="558" colspan="2"></td> </tr> <tr> <td width="94" align="right">Name:</td> <td width="464"> <input type="text" name="Name" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Company:</td> <td width="464"> <input type="text" name="Company" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Title:</td> <td width="464"> <input type="text" name="Title" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Address:</td> <td width="464"> <input type="text" name="Address1" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Address:</td> <td width="464"> <input type="text" name="Address2" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Country:</td> <td width="464"> <input type="text" name="Country" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">E-Mail:</td> <td width="464"> <input type="text" name="email" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Phone:</td> <td width="464"> <input type="text" name="phone" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Fax:</td> <td width="464"> <input type="text" name="fax" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">URL:</td> <td width="464"> <input type="text" name="url" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Describe Your Company:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Company_Description" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Target Audience Web Page Is Intended For:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Intended_Audience" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">When Does Your Site Need To Be Online?</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Time_To_Live" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Describe The Theme Of Your New Web Site:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Site_Theme" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Based On The Given Examples, Choose One Which Best Will Resemble Your Site:</td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="94">Personal:</td> <td width="464"><input type="radio" value="Personal" name="Choose_Site">Few Graphics, Little Interactivity, 1-10 Pages</td> </tr> <tr> <td width="94">Small Business:</td> <td width="464"> <input type="radio" value="Small_Business" name="Choose_Site">Custom Graphics, Forms, Moderate Interactivity, 10-20 Pages</td> </tr> <tr> <td width="94">Large Business:</td> <td width="464"> <input type="radio" value="Large_Business" name="Choose_Site">Detailed Graphics, Shopping Cart, Java Applets, 10-20+ Pages</td> </tr> <tr> <td width="94">Corporate:</td> <td width="464"> <input type="radio" value="Corporate" checked name="Choose_Site">Detailed Graphics, Dynamic Data, Interactive Pages 20+ Pages</td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Please Provide A URL Of A Web Page Similar To Yours:</td> </tr> <tr> <td width="94"></td> <td width="464"> <input type="text" name="Similar_Page" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Please Provide Any Additional Information You Feel Will Help Us With Your Quote:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Additional_Information" cols="49" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> </table> </center> </div> <p align="center"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> {/literal} {/capture} { include file="dialog.tpl" title="Web Design Quote" content=$smarty.capture.dialog extra="width=100%"}

Now the page is created, now you will need to go into customer/ and click on home_main.tpl to edit it. Now go down to the bottom and paste this code in BEFORE {else}...

Code:
{elseif $smarty.get.mode eq "web_quote"} {include file="customer/main/web_quote.tpl"}

Then where you have the link, to link to the template it would be...

http://www.digitaladdition.net/xcart/customer/main.php?section=web_quote

Hopefully this helps you, I'm not very good at explaining things but i did my best, let me know if you need any more help.
__________________
-tmx-
Reply With Quote
  #14  
Old 11-27-2002, 01:33 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default hmm??

I did all that, and I get the error message........

Not Found
The requested URL /xcart/customer/main.php was not found on this server.

What did i forget? Thanks!
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 06:46 AM.

   

 
X-Cart forums © 2001-2020