hiousi Posted April 7, 2013 Share Posted April 7, 2013 Hi, Can someone explain why orders.reference was implemented in 1.5 ? searching in code, I've found the following commments that did not helped me to understand /classes/order/Order.php @var string Order reference, this reference is not unique, but unique for a payment * Get a collection of orders using reference public static function getByReference($reference) * Gennerate a unique reference for orders generated with the same cart id * This references, is usefull for check payment public static function generateReference() * Return a unique reference like : GWJTHMZUN#2 * With multishipping, order reference are the same for all orders made with the same cart * in this case this method suffix the order reference by a # and the order number public function getUniqReference() - handling mutiple payment for one order ? but order_payment table can reference order_id. - multiple orders from one cart and only one payment ? - why is so usefull for check payment ? - how to be sure that 2 orders, from 2 customers won't have same order reference when reference comes from a random generator ? thank you for your help. Link to comment Share on other sites More sharing options...
Recommended Posts