lehvel Posted July 24, 2018 Author Share Posted July 24, 2018 I am now trying to install a Payment Type Charge addon (https://apps.oscommerce.com/pWjJk) , and when I go to payment methods at checkout, it gives me this error: Warning: include_once(DIR_WS_MODULESorder_total/ot_fixed_payment_chg.php): failed to open stream: No such file or directory in /storage/ssd5/880/1562880/public_html/shop/includes/classes/payment.php on line 136 Warning: include_once(): Failed opening 'DIR_WS_MODULESorder_total/ot_fixed_payment_chg.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd5/880/1562880/public_html/shop/includes/classes/payment.php on line 136 Fatal error: Uncaught Error: Class 'ot_fixed_payment_chg' not found in /storage/ssd5/880/1562880/public_html/shop/includes/classes/payment.php:137 Stack trace: #0 /storage/ssd5/880/1562880/public_html/shop/checkout_payment.php(141): payment->selection() #1 {main} thrown in /storage/ssd5/880/1562880/public_html/shop/includes/classes/payment.php on line 137 What's wrong? Link to comment Share on other sites More sharing options...
lehvel Posted July 24, 2018 Author Share Posted July 24, 2018 3 hours ago, JcMagpie said: for 1 best to use this as with modular check out you can add thing without changing the core files. https://apps.oscommerce.com/89uS9&modular-checkout-pages-bs&v=23 Unfortunately this doesn't seem to do it for me. I don't see a way this addon would allow me to add text on the shipping options site during checkout, or am I just not seeing it? Is there some other way to do it? Link to comment Share on other sites More sharing options...
ArtcoInc Posted July 24, 2018 Share Posted July 24, 2018 @lehvel Once again, the Payment Type Charge add-on was written before the osC Edge, and will need some edits. You will have to go through the add-on code and replace all of the 'DIR_WS_MODULES' with 'includes/modules/'. Malcolm Link to comment Share on other sites More sharing options...
lehvel Posted July 24, 2018 Author Share Posted July 24, 2018 Figured it'd be something like that, thanks, will try it out. Link to comment Share on other sites More sharing options...
♥raiwa Posted July 24, 2018 Share Posted July 24, 2018 16 minutes ago, lehvel said: Unfortunately this doesn't seem to do it for me. I don't see a way this addon would allow me to add text on the shipping options site during checkout, or am I just not seeing it? Is there some other way to do it? The best option is to make a new content module. Just use a copy of one of the included modules and rename it as well as all constants, class name and relevant variables. There are several topics here on the forum how to create a new content module. Another easier way would be to add your additional text to the shipping methods template file: tpl_cm_csh_shipping_methods.php. Of course, you should define a new language constant in the correspondant language file and use this constant to add the text. If all of this sounds too complicate to you, post a help enquiry in the commercial support topic: https://www.oscommerce.com/forums/forum/79-commercial-support-inquiries/ About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 Awesome, thanks to all for your help. Everything work as they should! One final problem I'm having for now, before I'm set up with all the basics: The emails don't get sent. I've tried both Email Transfer Methods, but when making orders on my test account and updating the order status on my admin panel, no emails arrive to my test account address. Is there something I need to do before they work? Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 If it helps, I'm going for smtp and phpMailer as I found the instructions for that (https://www.inmotionhosting.com/support/edu/oscommerce/testing-ecommerce-functionality/setting-up-smtp-with-oscommerce) However, as for editing the email.php, the lines I'm supposed to edit aren't there. Is this overly outdated? Should I go some other way? Link to comment Share on other sites More sharing options...
♥JcMagpie Posted July 25, 2018 Share Posted July 25, 2018 Setting up email is normally very simple from stock ocS. Have you put the correct email in admin/ config/ my store ? Also check your error log to see if anything is being logged as an error. Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 I have put the correct email there, yes, but not I nor the customer receives any emails. I'm using an outlook address. Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 Tried with another email address, still nothing. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted July 25, 2018 Share Posted July 25, 2018 So any errors in your error log? Without some data not much we can do to help! talk to your hosting people to check you have set up correctly at the server end. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted July 25, 2018 Share Posted July 25, 2018 2 hours ago, lehvel said: If it helps, I'm going for smtp and phpMailer as I found the instructions for that (https://www.inmotionhosting.com/support/edu/oscommerce/testing-ecommerce-functionality/setting-up-smtp-with-oscommerce) These instructions are not relevant to the new code! Talk to your host to find out what mail client options are available to you. Its a lot simpler just to use those. You can then set up mail forwarding to any other you need. or as @raiwa said If all of this sounds too complicate to you, post a help enquiry in the commercial support topic: https://www.oscommerce.com/forums/forum/79-commercial-support-inquiries/ Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 18 minutes ago, JcMagpie said: So any errors in your error log? Without some data not much we can do to help! talk to your hosting people to check you have set up correctly at the server end. Where is the error log located? Link to comment Share on other sites More sharing options...
♥JcMagpie Posted July 25, 2018 Share Posted July 25, 2018 Go to your root if you installed in that and look for error_log.php But you need to undo all the edits you did first! From what you described, your better of going back to stock files and making sure you have set up the email at server end properly first. Speak to your host they will be able to tell you what you need to do to make your email work. Link to comment Share on other sites More sharing options...
lehvel Posted July 25, 2018 Author Share Posted July 25, 2018 Yeah, no errors there. I'll look into the webhost email servers, but I'd really prefer to use my outlook address 'directly' through smtp. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted July 25, 2018 Share Posted July 25, 2018 That's ok but if your running a business with osC it will look a lot more professional if you r customers get emails from [email protected] than a outlook or gmail address, but it's up to you everyone has there own way of doing things. Link to comment Share on other sites More sharing options...
lehvel Posted July 26, 2018 Author Share Posted July 26, 2018 Is there anywhere to look for correct instructions on stmp/phpMailer that would work with the new code? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.