Showing posts with label bug report. Show all posts
Showing posts with label bug report. Show all posts

Tuesday, February 11, 2014

Order Management Module Bug

I'm going to start with a simple bug report as there does not seem to be anyway to send one to the Cartthrob people (or person).

In the file, edit.php, which can be found in: system/expressionengine/third_party/cartthrob_order_managaer/views
line 27 reads:
<strong>Transaction ID</strong> <?=$view['order_transaction_id']?>
and should read:
<strong>Transaction ID</strong> 
<?=$view['field_id_'.  $this->EE->cartthrob->store->config('orders_transaction_id')]?>

The original line throws out a PHP error because there is no key in $view named "order_transaction_id".

The revised line finds the transaction id in the array cell with the key "field_id_[value of the cell in the "Cartthrob_settings" table with the key "orders_transaction_id"]".