Status on the upcoming release (highlights):
Super Orders Auto Payment Generation for PayPal Orders:
So after a LOT of trial and error, I was able to fix the PayPal auto payments code.. Still dunno why the code in the current v3.0 fileset worked on my client's store.. (and still does) But no matter got it all working. Felt I needed to explain HOW the PayPal auto payments will be generated so that it is CLEAR how this functionality will work.
A Super Orders payment record will be auto-created for PayPal paid orders if:
- There is no existing Super Orders payment record for the order
AND
- The PAYPAL payment status is "Completed"
IF BOTH conditions are true, then a Super Orders payment record will automatically be created for the order.
NO AUTO PAYMENT will be generated if:
- There is an existing Super Orders payment record for the order
OR
- The PAYPAL payment status (NOT THE ORDER STATUS) is NOT "Completed"
The benefits to this are two-fold:
- Super Orders payment records will generate for older orders now.
(All you have to do is open the target order and the Super Orders payment record will be auto created for you!!) - Super Orders will not inadvertently generate a Super Orders payment record until the PayPal payment has been completed and cleared by PayPal. (preventing orders in which the payment is NOT "Completed" from being inadvertently marked as a paid order when in fact it is not) When the PayPal payment status is updated (an automatic Zen Cart function), then the Super Orders payment record will automatically be created!
Credit Card Auto Payment Generation Tweak:
I decided to update the class file that auto generates Super Orders payments for credit card paid orders based on Blindside's post here:
http://www.zen-cart.com/forum/showpo...&postcount=207. (just the part of this code which relates to credit payments.. PayPal auto payments are handled differently)
I meant to include this in the v3.0 release, but it slipped my mind..
I liked the fact that it no longer hardcodes the credit card codes, and instead relies on the data in the Super Orders payments types table. IF a NEW credit card type is supported by Zen Cart, the only thing Super Orders users need to do is to create a corresponding Super Orders payment type (the Super Orders payment code must match the corresponding credit card as it does now for supported credit cards).. This is loads easier for all I think!!
This will help keep people -- particularly newbies -- "out of the code" just to update the module.. Having to edit module files is often where things go wrong for newbies

..
Just so it's clear -- Auto payment generation for credit cards is slightly different than the new PayPal auto payment generation.
Auto payment generation for credit cards happens at the time of checkout. While PayPal auto payments are generated when the order is accessed from the Super Orders management screen.
The reason for this difference has everything to do with the general assumption that credit card payments are collected at the time of the sale, while PayPal payments may not be confirmed until 24-28 hours after the order is completed.
===============================
Got a lot ready for the next release (these are just some highlights).. I still have a few buglets left to grapple with.. I'll post here when I have additional updates on the next release.. (Please don't ask for an ETA.. I have to fit this work in between all my other obligations.. I am working as fast as my free time allows folks.. But I am hoping you will see something REALLY soon!

)
Bookmarks