DoingOSC Posted November 13, 2009 Posted November 13, 2009 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!
MrPhil Posted November 14, 2009 Posted November 14, 2009 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?
multimixer Posted November 14, 2009 Posted November 14, 2009 Can you post the code of includes/application_top.php that refers to this contribution? Can you say in what line of includes/application_top.php you have the code? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
DoingOSC Posted November 14, 2009 Author Posted November 14, 2009 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.
WorkingHard Posted November 15, 2009 Posted November 15, 2009 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!
WorkingHard Posted November 16, 2009 Posted November 16, 2009 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)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.