Post by straightlight » Thu Oct 12, 2017 4:24 am

The following steps are for Opencart v3.0.2.0 release. If your site is running in production, put your site under maintenance.

1 - Take a screenshot of your admin free checkout payment module configurations.
2 - Uninstall the free checkout payment module.
3 - In admin/controller/extension/payment/free_checkout.php file,

find:

Code: Select all

if (isset($this->request->post['free_checkout_order_status_id'])) {
			$data['free_checkout_order_status_id'] = $this->request->post['free_checkout_order_status_id'];
		} else {
			$data['free_checkout_order_status_id'] = $this->config->get('free_checkout_order_status_id');
		}
replace with:

Code: Select all

if (isset($this->request->post['payment_free_checkout_order_status_id'])) {
			$data['payment_free_checkout_order_status_id'] = $this->request->post['payment_free_checkout_order_status_id'];
		} else {
			$data['payment_free_checkout_order_status_id'] = $this->config->get('payment_free_checkout_order_status_id');
		}
In admin/view/template/extension/payment/free_checkout.twig file,

find:

Code: Select all

<select name="free_checkout_order_status_id" id="input-order-status" class="form-control">
                {% for order_status in order_statuses %}
                {% if order_status.order_status_id == free_checkout_order_status_id %}
                <option value="{{ order_status.order_status_id }}" selected="selected">{{ order_status.name }}</option>
                {% else %}
                <option value="{{ order_status.order_status_id }}">{{ order_status.name }}</option>
                {% endif %}
                {% endfor %}
replace with:

Code: Select all

<select name="payment_free_checkout_order_status_id" id="input-order-status" class="form-control">
                {% for order_status in order_statuses %}
                {% if order_status.order_status_id == payment_free_checkout_order_status_id %}
                <option value="{{ order_status.order_status_id }}" selected="selected">{{ order_status.name }}</option>
                {% else %}
                <option value="{{ order_status.order_status_id }}">{{ order_status.name }}</option>
                {% endif %}
                {% endfor %}
4 - Reinstall the free checkout payment module.
5 - Reconfigure the free checkout payment module.
6 - Test a transaction during checkout.
7 - When successful, disable the site maintenance (if running in production).

This should overall resolve the status issues along with other variables.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by omangiftom » Fri Oct 13, 2017 5:12 pm

I have followed the instructions exactly, but whenever i go to the "Order Status" sittings it was set to Canceled, even i edit it to any other status, it will go back to Canceled again...!!

New member

Posts

Joined
Tue Oct 03, 2017 8:13 pm

Post by omangiftom » Sat Oct 14, 2017 6:16 am

Dear,

Anymore ideas to solve this problem?!

New member

Posts

Joined
Tue Oct 03, 2017 8:13 pm

Post by straightlight » Sat Oct 14, 2017 6:24 am

Which OC version are you using? Have you cleared the cache, saas cache and the modification cache?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by omangiftom » Sat Oct 14, 2017 5:49 pm

I'm using version 3.0.2.0 and i cleared all the cache.

Also, whenever i change the Order status in the "Free Checkout" extension to any status, it will go back to "Canceled" ..

That's making me crazy

New member

Posts

Joined
Tue Oct 03, 2017 8:13 pm

Post by straightlight » Sat Oct 14, 2017 6:53 pm

Are you using any extensions such as journal2 theme?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by boyjah » Fri Oct 27, 2017 6:51 pm

I am having the same problem. OpenCart 3.0.2.0, using standard OpenCart theme. Changing status of Free Checkout and saving it always reverts to Cancelled.

Newbie

Posts

Joined
Tue May 02, 2017 12:55 pm

Post by straightlight » Fri Oct 27, 2017 7:51 pm

Have you followed the instructions above?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Busta1066 » Mon Nov 13, 2017 5:55 pm

So i have the same issue, i have tried the above fix, but to no avail. I am using 3.0.2 and have the journal 2 theme installed. When i try to change the status of the free check out to complete it just goes back to cancel every time... driving me nuts to get this one issue fixed. Any help in resolving this would be amazing

Thanks :)

Newbie
Online

Posts

Joined
Fri Feb 03, 2017 11:29 pm
Who is online

Users browsing this forum: carpin and 6 guests