worldwidecom Posted January 22, 2006 Posted January 22, 2006 I already update the categories. I?m preparing to put the products inside. I setup 3 languages. I wonder how to write on the pages. On the first page and other too. On an ordinary html file I could use FrontPage from Microsoft or Dreamweaver to edit the contents. How to edit the contents from my shop now? Maybe you suppose is a stupid question but really for me is important to write something in the shop Thank you in advance. :o
tina_boots Posted January 22, 2006 Posted January 22, 2006 I already update the categories. I?m preparing to put the products inside. I setup 3 languages. I wonder how to write on the pages. On the first page and other too. On an ordinary html file I could use FrontPage from Microsoft or Dreamweaver to edit the contents. How to edit the contents from my shop now? Maybe you suppose is a stupid question but really for me is important to write something in the shop Thank you in advance. :o Most text including labels which are found on the pages of your store are defined in the language files. Each page has a corresponding file with the same name inside the language folder which defines the actual text for that particular page. For example you mentioned the first page, the assumption is usually made that you are referring to the index.php file. So if you wanted to change the text that appears on that particular page, you would edit the includes/languages/english/index.php file. As well as, since you are using all three languages, includes/languages/german/index.php and includes/languages/espanol/index.php. Of course this means that in order to effectively support the other languages that you understand or have someone available who understands the other languages. You may also of course add additional languages if you choose to do so, and there are several contributions to assist you along that path. The language files use PHP define statements and the syntax goes like this: define('CONSTANT_NAME','Displayed Text'); An example on the index.php "first page" is like this: define('HEADING_TITLE', 'What\'s New Here?'); This displays that bit of text on the page that says "What's New Here?". Suppose you wanted to change that to "Our New Stuff", it would look like this when you were done: define('HEADING_TITLE', 'Our New Stuff'); You always want to leave the first parameter untouched, the 'HEADING_TITLE' part. All your edits are in the second parameter, the 'Our New Stuff' part. Also one of the most common errors users of osC experience is the "Unexpected T_STRING". This usually means that there is some error in the string portion (the second parameter) of the define statement. The most common of those being the use of an apostrophe in the string. You'll notice that in the stock What's New Here? there is a backslash in front of the apostrophe in the word What's. That is because PHP sees the apostrophe as the end of a string, so if you want one inside the string you need to proceed it with a backslash which tells PHP we are not ready to end the string just yet. There are other errors users make however that happens to be one of the most common and why I point it out. Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
worldwidecom Posted January 22, 2006 Author Posted January 22, 2006 Most text including labels which are found on the pages of your store are defined in the language files. Each page has a corresponding file with the same name inside the language folder which defines the actual text for that particular page. For example you mentioned the first page, the assumption is usually made that you are referring to the index.php file. So if you wanted to change the text that appears on that particular page, you would edit the includes/languages/english/index.php file. As well as, since you are using all three languages, includes/languages/german/index.php and includes/languages/espanol/index.php. Of course this means that in order to effectively support the other languages that you understand or have someone available who understands the other languages. You may also of course add additional languages if you choose to do so, and there are several contributions to assist you along that path. The language files use PHP define statements and the syntax goes like this: define('CONSTANT_NAME','Displayed Text'); An example on the index.php "first page" is like this: define('HEADING_TITLE', 'What\'s New Here?'); This displays that bit of text on the page that says "What's New Here?". Suppose you wanted to change that to "Our New Stuff", it would look like this when you were done: define('HEADING_TITLE', 'Our New Stuff'); You always want to leave the first parameter untouched, the 'HEADING_TITLE' part. All your edits are in the second parameter, the 'Our New Stuff' part. Also one of the most common errors users of osC experience is the "Unexpected T_STRING". This usually means that there is some error in the string portion (the second parameter) of the define statement. The most common of those being the use of an apostrophe in the string. You'll notice that in the stock What's New Here? there is a backslash in front of the apostrophe in the word What's. That is because PHP sees the apostrophe as the end of a string, so if you want one inside the string you need to proceed it with a backslash which tells PHP we are not ready to end the string just yet. There are other errors users make however that happens to be one of the most common and why I point it out. Tina Thank you. I shall try. How about some pictures on the first page (index.php)? How to do it?
starr5 Posted January 29, 2006 Posted January 29, 2006 Hi all, In reply to this post, I am really new to Oscommerce and I have a further question for you for help to set up my store. If I want to change the font, in the body text - how/where do I define that? I have worked out how to change the Heading title field, I just cannot work out to change the font from the default. If anyone could help me out I would really appreciate the support.
tina_boots Posted January 29, 2006 Posted January 29, 2006 Hi all, In reply to this post, I am really new to Oscommerce and I have a further question for you for help to set up my store. If I want to change the font, in the body text - how/where do I define that? I have worked out how to change the Heading title field, I just cannot work out to change the font from the default. If anyone could help me out I would really appreciate the support. All or most visual adjustments are defined in the stylesheet.css file. For example: TD.main, P.main { font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 1.5; } Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.