Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Free Call For Price' addon can't install in 2.2RC2


DoingOSC

Recommended Posts

Posted

Hello,

 

I'm trying got install 'Free Call For Price' contribution from http://addons.oscommerce.com/info/134. It seems to be very useful one - if it is possible to install it under 2.2RC2. After replacing all files as stated in installation, I'm getting following error:

 

Warning: require(DIR_WS_FUNCTIONSfree_call_for_price.php) [function.require]: failed to open stream: No such file or directory in /home/homesite/public_html/test/includes/application_top.php on line 15

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_FUNCTIONSfree_call_for_price.php' (include_path='.:/usr/lib/php') in /home/homesite/public_html/test/includes/application_top.php on line 15

 

The thing is that everything is there.

 

Any idea on this? I will really appreciate any help because I need this urgently.

 

Thanks in advdance!

Posted

For some reason, the PHP macro DIR_WS_FUNCTIONS is failing to be defined. It should be defined in both your includes/configure.php and admin/includes/configure.php as DIR_WS_INCLUDES . 'functions/', giving a final value of includes/functions/ and admin/includes/functions/ respectively.

 

Was "test" a working osC installation before you tried installing the add-on? The application_top.php file was modified, so maybe it's no longer requiring includes/configure.php, to set macros?

Posted

multimixer & MrPhil

 

Thanks for your intention to help! Before I saw your responses I found a developer and he fixed that error so I'm not sure what was causing that error. But I will let you know if I receive more info from him.

 

Thanks.

Posted

Hello,

 

I see some gurus in this topic so I want to ask one thing related to this contribution.

 

Is it possible to customize this add-on to work with different languages? I think that I saw somewhere that it only works with one predefined language? If possible, please some tip on changes etc...

 

Thanks!

Posted

Hello,

 

I see some gurus in this topic so I want to ask one thing related to this contribution.

 

Is it possible to customize this add-on to work with different languages? I think that I saw somewhere that it only works with one predefined language? If possible, please some tip on changes etc...

 

Thanks!

 

Actually yes it is possible to add to new languages. Just add following code to language file:

 

// BOF: WebMakers.com Added: FREE-CALL FOR PRICE-COMING SOON ETC. v3.0
require(DIR_WS_LANGUAGES . $language . '/' . 'free_call_for_price.php');
// EOF: WebMakers.com Added: FREE-CALL FOR PRICE-COMING SOON ETC. v3.0

 

B)

Archived

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

×
×
  • Create New...