azziman Posted June 29, 2004 Posted June 29, 2004 im trying to make a new page but i see that there are two files: eg. catalog/privacy.php catalog/includes/languages/english/privacy.php my question is how are both these files linked together? i cant seem to find the code which has privacy.php (catalog folder) read data from the privacy.php in the english folder?
Acheron Posted June 29, 2004 Posted June 29, 2004 The former is the actual page your customers will see. The latter is simply the language file for it. It is done that way so that items referenced in privacy.php can be displayed in other languages if you offer them. If you are only using 1 language and are creating a new page, you can simply hard-code the text with no need for the language file.
azziman Posted June 29, 2004 Author Posted June 29, 2004 oh thanx - would have wasted time trying to read all the codes to find the link!
azziman Posted June 29, 2004 Author Posted June 29, 2004 The former is the actual page your customers will see. The latter is simply the language file for it. It is done that way so that items referenced in privacy.php can be displayed in other languages if you offer them. k say if i was gonna offer it in other languages then how will it be referenced?
azziman Posted June 29, 2004 Author Posted June 29, 2004 i found this code require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY); now how would i link this up with the faq file in the languages file?
Acheron Posted June 29, 2004 Posted June 29, 2004 i found this code ?require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY); now how would i link this up with the faq file in the languages file? (1) Add in your /catalog/newfile.php: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWFILE); (2) Define the filename in /catalog/includes/filenames.php (3) Create a file with the same name (newfile.php) and place it in /catalog/includes/languages/english/ Model your files after the pre-existing files
blucollarguy Posted June 29, 2004 Posted June 29, 2004 There is a contribution that I found fantastic for dealing with this issue. Search for the following in the contributions section, it enables you to change all these files through the admin. It works great. Privacy_Shipping_Conditions_Update v1.0b.zip Craig. Happy Coding! Craig Garrison Sr Anything worth having, is worth working for. Multi Vendor Shipping V1.1 Demo Catalog 3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout. Multi Vendor Shipping V1.1 Demo Admin login: [email protected] pass: mvs_demo MVS Thread: Multi-Vendor Shipping My contribs: Download Multi Vendor Shipping V1.1 Vendor Email Vendor Info in easypopulate EZ Price Updater And more to come!
azziman Posted June 29, 2004 Author Posted June 29, 2004 thanx! guess it pays to read the code and have a buddy like u Acheron, to advise me :) :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.