Search found 2018 matches

Search found 2018 matches

Re: Duplicate customer activity (new order), and email sent twice.

The event model/checkout/order/addOrderHistory/before should only add an activity if the order ID changes from 0. https://github.com/opencart/opencart/blob/3.0.3.7/upload/catalog/controller/event/activity.php#L222-L227 Could be some sort or race condition between the payment response and the callbac...

Jump to post
  • Thu Jul 29, 2021 7:51 am
  • Replies 5
  • Views 156
Re: Customer autologin using user_token

Do you have any suggestions on how should I do this? I don't need the full code, I just want to have an understanding how something like this is implemented. You would need to generate a token for a customer and store it for that customer in the database. I would also store a time so you can expire...

Jump to post
  • Thu Jul 29, 2021 7:32 am
  • Replies 15
  • Views 377
Re: Help - Overwritten orders

As I have already said, it impossible for the OpenCart core to use the same order ID twice. Without knowing what your payment and checkout extensions change, it's impossible to add code to the core to stop it. I would suggest it could be caused by your payment extension being incomparable with your ...

Jump to post
  • Thu Jul 29, 2021 5:32 am
  • Replies 22
  • Views 1728
Re: Fraudlabs error

Thanks, I found the setting under System > Settings > Server > Error Handling, but three places? In the settings. In system/config/default.php. https://github.com/opencart/opencart/blob/3.0.3.7/upload/system/config/default.php#L53 In you PHP configuration. Should be off by default, but there are so...

Jump to post
  • Thu Jul 29, 2021 4:55 am
  • Replies 5
  • Views 205
Re: Customer autologin using user_token

zerdnem wrote:
Wed Jul 28, 2021 6:16 pm
Ok thank you. I will try to implement this code
You would be wasting your time looking at that code. It's for CSRF protection. Kind of the opposite of what you want to do.

Jump to post
  • Wed Jul 28, 2021 8:26 pm
  • Replies 15
  • Views 377
Re: Site has too many redirects (302's)

I tried with Cloudflare disabled but the issue I have is my site gets hit hard the minute I turn cloudflare fully off so it half brings it down before I can even test I have these extensions > modules enabled:- Ultimate Filters Module (not present on main page) SL CSRF Protection Form Restrict Ship...

Jump to post
  • Wed Jul 28, 2021 8:14 pm
  • Replies 5
  • Views 137
Re: Site has too many redirects (302's)

Looks like it's caused by one of your extensions that is redirecting if there is no session. Have you tested with Cloudflare disabled? What extensions are you using?

Jump to post
  • Wed Jul 28, 2021 5:50 pm
  • Replies 5
  • Views 137
Re: Help - Overwritten orders

Could be an issue with your checkout extension. It could also be an issue with you payment module, but less likely. The way OpenCart adds orders relies on the database to allocate the order numbers. The only way it can reuse an order ID is if the code has been modified by an extension or there is a ...

Jump to post
  • Wed Jul 28, 2021 5:41 pm
  • Replies 22
  • Views 1728
Re: Fraudlabs error

It's just a message to tell you that create_function will be removed in future versions of PHP. As long as you have display errors switch off in all three places, it won't cause a problem. To get rid of the error and be compatible with PHP 8, do a search replace create_function, there are loads of e...

Jump to post
  • Wed Jul 28, 2021 5:22 am
  • Replies 5
  • Views 205
Re: Admin getting multiple, identical order mails + more

Check System -> Settings -> Edit (Your Store) -> Mail (Tab) -> Additional Alert Mail is empty or doesn't contain the main email. The catalog/controller/mail/order.php files sends the emails. Check if this has been modified. Extensions -> Modifications -> Log (tab). Or you could search in the modific...

Jump to post
  • Wed Jul 28, 2021 1:40 am
  • Replies 22
  • Views 1622
Re: Paypal Pro module suddenly duplicating payments [solved}

The line should already be there. Maybe try removing ". mt_rand()". If that causes problems with retrying failed payments, replace with something like ". time() / 10", so the ID will be unique every 10 seconds. Change the 10 seconds to suit. However, it's not 100% as the duplicates could be either s...

Jump to post
  • Tue Jul 27, 2021 7:40 am
  • Replies 15
  • Views 29037
Re: Paypal Pro module suddenly duplicating payments [solved}

I think the 'Request ID' is this. https://developer.paypal.com/docs/payflow/integration-guide/header-parameters/#required-payflow-headers It's set here. https://github.com/opencart/opencart/blob/2.3.0.1/upload/catalog/controller/extension/payment/pp_payflow.php#L132 Maybe it's too random and mt_rand...

Jump to post
  • Tue Jul 27, 2021 4:57 am
  • Replies 15
  • Views 29037
Re: After purchase, redirects to cart instead of success page

Thanks. Have contacted them (Payson), sent screenshots of the Payson extension settings and also the error.log. They have tested live and are ending up at index.php?route=checkout/cart when they should have arrived at index.php?route=checkout/success. Isn't there any way to lock the latter url some...

Jump to post
  • Mon Jul 26, 2021 11:43 pm
  • Replies 5
  • Views 154
Re: Why move the storage folder?

If you are not moving it you need to a least deny access to it. The log files can be useful to an attacker. You also can't account for a badly written extension assuming it's not accessible. But this from the default .htaccess prevents that: # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl...

Jump to post
  • Mon Jul 26, 2021 10:47 pm
  • Replies 7
  • Views 268
Re: A customer tries to checkout using "Register".. error pops up

I have looked everywhere, I contacted the hosting support and they could not solve it, many solved it from the hosting ... mine says that it can not ... and they suggest me to change the name of register.php by registration.php and its dependencies ... but I don't know where it is and what its depe...

Jump to post
  • Sun Jul 25, 2021 9:57 pm
  • Replies 17
  • Views 471
Re: Passing address info to Paypal.

If you need seller protection, see the issue here https://github.com/opencart/opencart/issues/9463. You may be able to port the latest to 2.x without too much trouble. Basically change payment_ to shipping_ for the following. https://github.com/opencart/opencart/blob/2.3.0.2/upload/catalog/controlle...

Jump to post
  • Sun Jul 25, 2021 2:35 am
  • Replies 2
  • Views 176
Re: Why move the storage folder?

There's absolutely no need to do this, it adds nothing to anything, just annoys you as well as folder restrictions in Extension Installer. Simply remove the nag screen and keep using the default storage path. Thank you If you are not moving it you need to a least deny access to it. The log files ca...

Jump to post
  • Sat Jul 24, 2021 2:34 am
  • Replies 7
  • Views 268
Re: Royal Mail shipping

Tracked & Signed wasn't available for Spain when the module was originally written. You will need to add 'ES', to the following array.

https://github.com/opencart/opencart/bl ... #L848-L890

Jump to post
  • Sat Jul 24, 2021 2:22 am
  • Replies 6
  • Views 229
Re: Royal Mail shipping

What services have you set prices for?

Jump to post
  • Fri Jul 23, 2021 11:35 pm
  • Replies 6
  • Views 229

Search found 2018 matches