Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do these 2 files link up


azziman

Recommended Posts

Posted

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?

no1.jpg
Posted

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.

Posted
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?

no1.jpg
Posted

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?

no1.jpg
Posted
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

Posted

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...