Post by Emanuel.C » Mon Jul 08, 2024 5:45 pm

Hi,
I want to create a product with a price of 0 that can be ordered from the normal website.
after I complete the order, the order is not created in the admin, and the customer does not receive a notification that the order has been completed.

I noticed that I can't in the "payment methods" module -> Free delivery is not saved when I want to change "Order Status"

Everything else is set correctly, I checked.
I am using Opencart 3.0.3.2.
Thank you
Any help is welcome

New member

Posts

Joined
Mon Mar 25, 2019 5:26 pm

Post by ADD Creative » Mon Jul 08, 2024 6:24 pm

Do you mean Free Checkout? If so there was a fix for the issues of it not saving.
https://github.com/opencart/opencart/pu ... c48d7cf6b3

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Gail207Martinez » Mon Jul 08, 2024 8:01 pm

Hello!
To allow zero-priced products to be ordered and processed correctly in OpenCart 3.0.3.2, ensure the "Free Checkout" payment method is enabled and its "Order Status" set to "Complete." Check permissions under System -> Users -> User Groups to ensure changes can be saved. Verify email settings under System -> Settings -> Mail. If issues persist, enable debugging and review logs. You may need to adjust catalog/controller/checkout/confirm.php to handle orders with a total of 0 correctly. Here's a snippet for that:

php
Copy code
if ($this->cart->getTotal() == 0) {
$order_data['payment_method'] = 'Free Checkout';
$order_data['payment_code'] = 'free_checkout';
}
Test again to confirm the order creation and email notification work properly.


Best Regards,
mary kay in touch
Last edited by Gail207Martinez on Tue Jul 09, 2024 1:05 pm, edited 1 time in total.


Posts

Joined
Fri Jul 05, 2024 5:14 pm

Post by paulfeakins » Mon Jul 08, 2024 9:22 pm

Emanuel.C wrote:
Mon Jul 08, 2024 5:45 pm
I want to create a product with a price of 0 that can be ordered from the normal website.
after I complete the order, the order is not created in the admin, and the customer does not receive a notification that the order has been completed.
And it definitely works if the product price is not 0?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Emanuel.C » Tue Jul 09, 2024 3:56 pm

ADD Creative wrote:
Mon Jul 08, 2024 6:24 pm
Do you mean Free Checkout? If so there was a fix for the issues of it not saving.
https://github.com/opencart/opencart/pu ... c48d7cf6b3
yes, after I complete the order. It is not displayed in the admin for orders, but the customer does not receive a notification, nor is it displayed in the customer account. it's as if he didn't order the place.

New member

Posts

Joined
Mon Mar 25, 2019 5:26 pm

Post by Emanuel.C » Tue Jul 09, 2024 3:58 pm

Gail207Martinez wrote:
Mon Jul 08, 2024 8:01 pm
Hello!
To allow zero-priced products to be ordered and processed correctly in OpenCart 3.0.3.2, ensure the "Free Checkout" payment method is enabled and its "Order Status" set to "Complete." Check permissions under System -> Users -> User Groups to ensure changes can be saved. Verify email settings under System -> Settings -> Mail. If issues persist, enable debugging and review logs. You may need to adjust catalog/controller/checkout/confirm.php to handle orders with a total of 0 correctly. Here's a snippet for that:

php
Copy code
if ($this->cart->getTotal() == 0) {
$order_data['payment_method'] = 'Free Checkout';
$order_data['payment_code'] = 'free_checkout';
}
Test again to confirm the order creation and email notification work properly.


Best Regards,
mary kay in touch
I checked and everything seems to be fine.
Only one problem I found Order Status is Canceled. after I change the status and set it to complete and save, it does not save

New member

Posts

Joined
Mon Mar 25, 2019 5:26 pm

Post by Emanuel.C » Tue Jul 09, 2024 5:29 pm

ADD Creative wrote:
Mon Jul 08, 2024 6:24 pm
Do you mean Free Checkout? If so there was a fix for the issues of it not saving.
https://github.com/opencart/opencart/pu ... c48d7cf6b3
hi,
I tried to make these changes but it still doesn't work. :(

New member

Posts

Joined
Mon Mar 25, 2019 5:26 pm

Post by ADD Creative » Tue Jul 09, 2024 7:23 pm

Do you see the orders in the admin if you filter by missing orders?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Tue Jul 09, 2024 7:59 pm

Have you tried Cash On Delivery?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 13 guests