Closed GoogleCodeExporter closed 8 years ago
I think I have fixed this... new code will be available in a few days. please
reopen if it is not fixed in a few days.
Original comment by nfranc...@gmail.com
on 18 Aug 2013 at 9:44
I think I have fixed this... new code will be available in a few days. please
reopen if it is not fixed in a few days.
Changed in shoppingcart:
$newOrder->CurrencyUsedID = $oldOrder->CurrencyUsedID;
TO:
//important to set it this way...
$newOrder->setCurrency($oldOrder->CurrencyUsedID);
Original comment by nfranc...@gmail.com
on 18 Aug 2013 at 9:45
Now produces the following error:
[Notice] Trying to get property of non-object
GET
/shoppingcart/copyorder/878/?SecurityID=fef77d069d255d8a296cbae5927b25582e38cacb
Line 1164 in C:\wamp\www\ecommerce\code\model\Order.php
Source
1155 * Stores the preferred currency of the order.
1156 * IMPORTANTLY we store the exchange rate for future reference...
1157 * @param EcommerceCurrency $currency
1158 */
1159 public function UpdateCurrency($currency) {
1160 if($this->IsSubmitted()) {
1161 user_error("Can not set the exchange rate after the order has been
submitted", E_USER_NOTICE);
1162 }
1163 else {
1164 $this->CurrencyUsedID = $currency->ID;
1165 $this->ExchangeRate = $currency->ExchangeRate();
1166 $this->write();
1167 }
1168 }
1169
1170 /**
Trace
Order->UpdateCurrency(3)
Order.php:1174
Order->SetCurrency(3)
ShoppingCart.php:558
ShoppingCart->copyOrder(Order)
ShoppingCart.php:1363
ShoppingCart_Controller->copyorder(SS_HTTPRequest)
RequestHandler.php:288
RequestHandler->handleAction(SS_HTTPRequest,copyorder)
Controller.php:194
Controller->handleAction(SS_HTTPRequest,copyorder)
RequestHandler.php:200
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
Director.php:325
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:143
Director::direct(/shoppingcart/copyorder/878/,DataModel)
main.php:189
Original comment by supp...@sendasoft.com
on 20 Aug 2013 at 9:35
I hope this is now fixed.
Original comment by nfranc...@gmail.com
on 21 Aug 2013 at 3:31
Original issue reported on code.google.com by
supp...@sendasoft.com
on 14 Aug 2013 at 4:47Attachments: