Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Side bar design


lehvel

Recommended Posts

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

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

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/

 

Link to comment
Share on other sites

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

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

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

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

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

Archived

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

×
×
  • Create New...