Jump to content

Automatically set "Processing" orders to status "Order Com


alozoya
 Share

Recommended Posts

I have been searching for a solution that would automatically set "Processing" orders to status "Order Complete" after an order has been placed.

Right now, when an order goes through, the status gets set to "Processing" by default. Then someone has to login and manually change the status to complete before the customer gets their final receipt and the PayPal payment is captured. 

I found an old post that solves this, but its for an old version of CubeCart. 

 
So the solution for the 5.2.8 is done by locating the file order.class.php in the classes folder.
Around line 250 locate the following code:
 
    $this->assignOrderDetails();
    $mailer->sendEmail($this->_order_summary['email'], $content);
    unset($content);
 
 
Then add this snippet right above it:
    $this->_digitalDelivery($order_id, $this->_order_summary['email']);
 
 
Hope it helps.
 
 
Al
 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...