Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding text from Languages Directory


cczernia

Recommended Posts

I have a bunch of text that is in

 

includes/languages/english/shipping.php

 

I want to include the text labeled TEXT_INFORMATION (located in shipping.php) in checkout_shipping.php without copy and pasting. However if I put:

 

<?php echo TEXT_INFORMATION; ?>

 

in checkout_shipping.php all it prints out is "TEXT_INFORMATION" I can't figure out how to access the right file so I can output the right text. Any help would be great.

 

Thanks in advance.

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Never mind. Managed to figure it out. I added this which somehow accessed the right file.

 

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...