From c1eff3a3ea2805a957d7723153b85dfd57b4ff40 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Mon, 4 Nov 2019 22:02:50 +0100 Subject: [PATCH] * bugfix: The object of tx_ttproducts_basket has no basketExtra member variable. Use tx_ttproducts_control_basket::getBasketExtra() instead. --- ChangeLog | 2 ++ .../class.tx_ttproducts_activity_finalize.php | 6 ++-- control/class.tx_ttproducts_control.php | 31 +++++++++++-------- control/class.tx_ttproducts_main.php | 17 +++++----- eid/class.tx_ttproducts_db.php | 10 +++--- lib/class.tx_ttproducts_billdelivery.php | 4 +-- lib/class.tx_ttproducts_csv.php | 10 +++--- lib/class.tx_ttproducts_paymentshipping.php | 21 ++++++------- model/class.tx_ttproducts_account.php | 7 +++-- model/class.tx_ttproducts_basket.php | 4 +-- model/class.tx_ttproducts_card.php | 3 +- model/class.tx_ttproducts_order.php | 14 +++++---- view/class.tx_ttproducts_basket_view.php | 6 +--- view/class.tx_ttproducts_list_view.php | 2 +- 14 files changed, 71 insertions(+), 66 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73a4b571d..03df8e06c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ +2019-11-04 Franz Holzinger + * bugfix: The object of tx_ttproducts_basket has no basketExtra member variable. Use tx_ttproducts_control_basket::getBasketExtra() instead. 2019-10-28 Franz Holzinger * bugfix: Use the class tx_ttproducts_db to initialize the recs form data. diff --git a/control/class.tx_ttproducts_activity_finalize.php b/control/class.tx_ttproducts_activity_finalize.php index c5dcb83f1..dc99f438f 100755 --- a/control/class.tx_ttproducts_activity_finalize.php +++ b/control/class.tx_ttproducts_activity_finalize.php @@ -99,6 +99,7 @@ public function doProcessing ( &$mainMarkerArray, $functablename, $orderUid, + $basketExtra, &$errorMessage ) { if ($this->conf['errorLog']) { @@ -259,6 +260,7 @@ public function doProcessing ( $billdeliveryObj->generateBill( $templateCode, $mainMarkerArray, + $basketExtra, $type, $this->conf[$type . '.'] ); @@ -266,7 +268,7 @@ public function doProcessing ( } } - $orderObj->setData($orderUid, $orderConfirmationHTML, 1); + $orderObj->setData($orderUid, $orderConfirmationHTML, 1, $basketExtra); $creditpointsObj = GeneralUtility::makeInstance('tx_ttproducts_field_creditpoints'); $creditpointsObj->pay(); @@ -312,7 +314,7 @@ public function doProcessing ( ); $csvfilepath = PATH_site.$this->conf['CSVdestination']; $csvorderuid = $basketObj->order['orderUid']; - $csv->create($functablename, $infoViewObj, $csvorderuid, $csvfilepath, $errorMessage); + $csv->create($functablename, $infoViewObj, $csvorderuid, $basketExtra, $csvfilepath, $errorMessage); if (!$this->conf['CSVnotInEmail']) { $addcsv = $csvfilepath; } diff --git a/control/class.tx_ttproducts_control.php b/control/class.tx_ttproducts_control.php index 33bba1147..097d913b7 100755 --- a/control/class.tx_ttproducts_control.php +++ b/control/class.tx_ttproducts_control.php @@ -54,7 +54,7 @@ class tx_ttproducts_control implements \TYPO3\CMS\Core\SingletonInterface { public $useArticles; - public function init ($pibaseClass, $conf, $config, $funcTablename, $useArticles) { + public function init ($pibaseClass, $conf, $config, $funcTablename, $useArticles, $basketExtra) { $this->pibaseClass = $pibaseClass; $this->pibase = GeneralUtility::makeInstance('' . $pibaseClass); $this->cObj = $this->pibase->cObj; @@ -69,11 +69,11 @@ public function init ($pibaseClass, $conf, $config, $funcTablename, $useArticles $this->urlObj = GeneralUtility::makeInstance('tx_ttproducts_url_view'); // a copy of it // This handleURL is called instead of the THANKS-url in order to let handleScript process the information if payment by credit card or so. $this->urlArray = array(); - if ($this->basket->basketExtra['payment.']['handleURL']) { - $this->urlArray['form_url_thanks'] = $this->basket->basketExtra['payment.']['handleURL']; + if ($basketExtra['payment.']['handleURL']) { + $this->urlArray['form_url_thanks'] = $basketExtra['payment.']['handleURL']; } - if ($this->basket->basketExtra['payment.']['handleTarget']) { // Alternative target - $this->urlArray['form_url_target'] = $this->basket->basketExtra['payment.']['handleTarget']; + if ($basketExtra['payment.']['handleTarget']) { // Alternative target + $this->urlArray['form_url_target'] = $basketExtra['payment.']['handleTarget']; } $this->urlObj->setUrlArray($this->urlArray); } // init @@ -565,7 +565,11 @@ public function getContent ( $calculatedArray, true, $basket_tmpl, - $mainMarkerArray + $mainMarkerArray, + '', + array(), + array(), + $basketExtra ); $content .= $paymentHTML; } @@ -573,7 +577,7 @@ public function getContent ( if ($orderUid && $paymentHTML != '') { $orderObj = $tablesObj->get('sys_products_orders'); - $orderObj->setData($orderUid, $paymentHTML, 0); + $orderObj->setData($orderUid, $paymentHTML, 0, $basketExtra); } } else { // If not all required info-fields are filled in, this is shown instead: $infoArray['billing']['error'] = 1; @@ -787,7 +791,7 @@ public function processActivities ( tx_transactor_api::init($this->pibase, $this->cObj, $this->conf); $referenceId = tx_transactor_api::getReferenceUid( $handleLib, - $this->basket->basketExtra['payment.']['handleLib.'], + $basketExtra['payment.']['handleLib.'], TT_PRODUCTS_EXT, $orderUid ); @@ -811,8 +815,8 @@ class_exists($callingClassName) && ) { $parameters = array( $referenceId, - $this->basket->basketExtra['payment.']['handleLib'], - $this->basket->basketExtra['payment.']['handleLib.'], + $basketExtra['payment.']['handleLib'], + $basketExtra['payment.']['handleLib.'], TT_PRODUCTS_EXT, $calculatedArray, $this->conf['paymentActivity'], @@ -833,8 +837,8 @@ class_exists($callingClassName) && } else { $paymentErrorMsg = tx_transactor_api::checkRequired( $referenceId, - $this->basket->basketExtra['payment.']['handleLib'], - $this->basket->basketExtra['payment.']['handleLib.'], + $basketExtra['payment.']['handleLib'], + $basketExtra['payment.']['handleLib.'], TT_PRODUCTS_EXT, $calculatedArray, $this->conf['paymentActivity'], @@ -1003,7 +1007,7 @@ class_exists($callingClassName) && $checkAllowed = $infoViewObj->checkAllowed($basketExtra); if ($checkRequired == '' && $checkAllowed == '') { tx_div2007_alpha5::load_noLinkExtCobj_fh002($this->pibase); // TODO - $handleScript = $GLOBALS['TSFE']->tmpl->getFileName($this->basket->basketExtra['payment.']['handleScript']); + $handleScript = $GLOBALS['TSFE']->tmpl->getFileName($basketExtra['payment.']['handleScript']); $orderUid = $this->getOrderUid(); $orderNumber = $this->getOrdernumber($orderUid); @@ -1044,6 +1048,7 @@ class_exists($callingClassName) && $mainMarkerArray, $this->funcTablename, $orderUid, + $basketExtra, $errorMessage ); diff --git a/control/class.tx_ttproducts_main.php b/control/class.tx_ttproducts_main.php index 55b63af79..9836fb2f3 100755 --- a/control/class.tx_ttproducts_main.php +++ b/control/class.tx_ttproducts_main.php @@ -348,9 +348,6 @@ public function init (&$content, &$conf, &$config, $pibaseClass, &$errorCode, $b $this->ajax ); - // basket view - $this->control = GeneralUtility::makeInstance('tx_ttproducts_control'); - $subpartmarkerObj = GeneralUtility::makeInstance('tx_ttproducts_subpartmarker'); $subpartmarkerObj->init($this->cObj); @@ -442,7 +439,7 @@ public function &run ($pibaseClass, &$errorCode, $content = '', $bRunAjax = fals $recs = tx_ttproducts_control_basket::getRecs(); $voucher->doProcessing($recs); - $basketObj->calculate(); // get the calculated arrays + $basketObj->calculate($basketExtra); // get the calculated arrays $basketObj->calculateSums(); $basketObj->addVoucherSums(); @@ -457,20 +454,20 @@ public function &run ($pibaseClass, &$errorCode, $content = '', $bRunAjax = fals $functablename = 'tt_products'; tx_ttproducts_control_memo::process($functablename, $pibaseObj->piVars, $this->conf); - - $this->control->init( + $controlObj = GeneralUtility::makeInstance(tx_ttproducts_control::class); + $controlObj->init( $pibaseClass, $conf, $cnf->getConfig(), $basketObj->getFuncTablename(), - $this->conf['useArticles'] + $this->conf['useArticles'], + $basketExtra ); $calculatedArray = $basketObj->getCalculatedSums(); - - $content .= $this->control->doProcessing( + $content .= $controlObj->doProcessing( $this->codeArray, $calculatedArray, - $basketObj->basketExtra, + $basketExtra, $errorCode, $errorMessage ); diff --git a/eid/class.tx_ttproducts_db.php b/eid/class.tx_ttproducts_db.php index 19b798a01..5119516bf 100755 --- a/eid/class.tx_ttproducts_db.php +++ b/eid/class.tx_ttproducts_db.php @@ -58,11 +58,10 @@ public function init (&$conf, &$config, &$ajax, &$pObj) { if (isset($ajax) && is_object($ajax)) { $this->ajax = &$ajax; - $ajax->taxajax->registerFunction(array(TT_PRODUCTS_EXT.'_fetchRow',$this,'fetchRow')); - $ajax->taxajax->registerFunction(array(TT_PRODUCTS_EXT.'_commands',$this,'commands')); + $ajax->taxajax->registerFunction(array(TT_PRODUCTS_EXT . '_fetchRow',$this,'fetchRow')); + $ajax->taxajax->registerFunction(array(TT_PRODUCTS_EXT . '_commands',$this,'commands')); $ajax->taxajax->registerFunction(array(TT_PRODUCTS_EXT . '_showArticle', $this, 'showArticle')); - } if ( @@ -127,6 +126,7 @@ public function &fetchRow ($data) { $cnf = GeneralUtility::makeInstance('tx_ttproducts_config'); $tablesObj = GeneralUtility::makeInstance('tx_ttproducts_tables'); $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); + $basketExtra = tx_ttproducts_control_basket::getBasketExtra(); // price $priceObj = GeneralUtility::makeInstance('tx_ttproducts_field_price'); @@ -197,7 +197,7 @@ public function &fetchRow ($data) { $priceTaxArray = array(); $priceTaxArray = $priceObj->getPriceTaxArray( - $this->conf['discountPriceMode'], $basketObj->basketExtra, 'price', tx_ttproducts_control_basket::getRoundFormat(), tx_ttproducts_control_basket::getRoundFormat('discount'), $tmpRow, $totalDiscountField, $priceTaxArray); + $this->conf['discountPriceMode'], $basketExtra, 'price', tx_ttproducts_control_basket::getRoundFormat(), tx_ttproducts_control_basket::getRoundFormat('discount'), $tmpRow, $totalDiscountField, $priceTaxArray); $csConvObj = $GLOBALS['TSFE']->csConvObj; $field = 'price'; @@ -301,7 +301,7 @@ protected function &generateResponse ($view, &$rowArray, &$variantArray) { $tmpArray, $theCode, '', - $basketObj->basketExtra, + $basketExtra, $tmp=false, true, '', diff --git a/lib/class.tx_ttproducts_billdelivery.php b/lib/class.tx_ttproducts_billdelivery.php index 41abdf18c..200c560c8 100755 --- a/lib/class.tx_ttproducts_billdelivery.php +++ b/lib/class.tx_ttproducts_billdelivery.php @@ -101,7 +101,7 @@ public function writeFile ($filename, $content) { } - public function generateBill ($templateCode, $mainMarkerArray, $type, $generationConf) { + public function generateBill ($templateCode, $mainMarkerArray, $basketExtra, $type, $generationConf) { $basketView = GeneralUtility::makeInstance('tx_ttproducts_basket_view'); $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); @@ -126,7 +126,7 @@ public function generateBill ($templateCode, $mainMarkerArray, $type, $generatio $basketObj->getItemArray(), $basketObj->getCalculatedArray(), $basketObj->order, - $basketObj->basketExtra, + $basketExtra, $basketObj->recs, $type, $generationConf, diff --git a/lib/class.tx_ttproducts_csv.php b/lib/class.tx_ttproducts_csv.php index 63c420909..d36c70e6d 100755 --- a/lib/class.tx_ttproducts_csv.php +++ b/lib/class.tx_ttproducts_csv.php @@ -64,7 +64,7 @@ function init ($pibase, &$itemArray, &$calculatedArray, $accountUid) { } // init - function create ($functablename, &$address, $csvorderuid, &$csvfilepath, &$errorMessage) { + public function create ($functablename, &$address, $csvorderuid, $basketExtra, &$csvfilepath, &$errorMessage) { $basket = GeneralUtility::makeInstance('tx_ttproducts_basket'); $priceViewObj = GeneralUtility::makeInstance('tx_ttproducts_field_price_view'); $tablesObj = GeneralUtility::makeInstance('tx_ttproducts_tables'); @@ -73,10 +73,10 @@ function create ($functablename, &$address, $csvorderuid, &$csvfilepath, &$error $itemTable = $tablesObj->get($functablename, false); $csvfilepath = trim($csvfilepath); - if ($csvfilepath{strlen($csvfilepath)-1} != '/') { + if ($csvfilepath{strlen($csvfilepath) - 1} != '/') { $csvfilepath .= '/'; } - $csvfilepath .= $orderObj->getNumber($csvorderuid).'.csv'; + $csvfilepath .= $orderObj->getNumber($csvorderuid) . '.csv'; $csvfile = fopen($csvfilepath, 'w'); if ($csvfile !== false) { // Generate invoice and delivery address @@ -96,7 +96,7 @@ function create ($functablename, &$address, $csvorderuid, &$csvfilepath, &$error } // Generate shipping/payment information and delivery note - $csvlineshipping = '"' . $basket->basketExtra['shipping.']['title'] . '";"' . + $csvlineshipping = '"' . $basketExtra['shipping.']['title'] . '";"' . $priceViewObj->priceFormat($this->calculatedArray['priceTax']['shipping']) . '";"' . $priceViewObj->priceFormat($this->calculatedArray['priceNoTax']['shipping']) . '"'; @@ -109,7 +109,7 @@ function create ($functablename, &$address, $csvorderuid, &$csvfilepath, &$error } } - $csvlinepayment = '"' . $basket->basketExtra['payment.']['title'] . '";"' . + $csvlinepayment = '"' . $basketExtra['payment.']['title'] . '";"' . $priceViewObj->priceFormat($this->calculatedArray['priceTax']['payment']) . '";"' . $priceViewObj->priceFormat($this->calculatedArray['priceNoTax']['payment']) . '"'; diff --git a/lib/class.tx_ttproducts_paymentshipping.php b/lib/class.tx_ttproducts_paymentshipping.php index ab41c7a6d..70716cab4 100755 --- a/lib/class.tx_ttproducts_paymentshipping.php +++ b/lib/class.tx_ttproducts_paymentshipping.php @@ -45,11 +45,11 @@ class tx_ttproducts_paymentshipping implements \TYPO3\CMS\Core\SingletonInterface { - var $cObj; - var $conf; - var $config; - var $basketView; - var $priceObj; // price functions + public $cObj; + public $conf; + public $config; + public $basketView; + public $priceObj; // price functions protected $typeArray = array('handling','shipping','payment'); protected $voucher; @@ -162,8 +162,9 @@ public function getSubpartArrays ( $handleLib = $basketExtra['payment.']['handleLib']; - if (strpos($handleLib,'transactor') !== false && ExtensionManagementUtility::isLoaded($handleLib)) { - + if ( + strpos($handleLib,'transactor') !== false && ExtensionManagementUtility::isLoaded($handleLib) + ) { $languageObj = GeneralUtility::makeInstance(\JambageCom\TtProducts\Api\Localization::class); // Payment Transactor tx_transactor_api::init($languageObj, $this->cObj, $this->conf); @@ -294,7 +295,6 @@ protected function getTypeMarkerArray ($theCode, &$markerArray, $pskey, $subkey, if ($subkey != '') { if (isset($basketExtra[$pskey . '.'][$subkey . '.']['image.'])) { -// $imageCode = $this->cObj->IMAGE($basketExtra[$pskey . '.'][$subkey . '.']['image.']); $imageCode = $imageObj->getImageCode( $basketExtra[$pskey . '.'][$subkey . '.']['image.'], @@ -304,7 +304,6 @@ protected function getTypeMarkerArray ($theCode, &$markerArray, $pskey, $subkey, $markerArray['###' . $markerkey . '_TITLE###'] = $basketExtra[$pskey . '.'][$subkey . '.']['title']; } else { if (isset($basketExtra[$pskey . '.']['image.'])) { -// $imageCode = $this->cObj->IMAGE($basketExtra[$pskey . '.']['image.']); $imageCode = $imageObj->getImageCode( $basketExtra[$pskey . '.']['image.'], @@ -390,11 +389,11 @@ public function getModelMarkerArray ($theCode, $title, $value, $imageCode, $acti } - /** * Generates a radio or selector box for payment shipping */ public function generateRadioSelect ($theCode, $pskey, $subkey, $calculatedArray, $basketUrl, &$basketExtra) { + /* The conf-array for the payment/shipping/handling configuration has numeric keys for the elements But there are also these properties: @@ -618,6 +617,7 @@ public function generateRadioSelect ($theCode, $pskey, $subkey, $calculatedArray return $out; } // generateRadioSelect + public function getConfiguredPrice ( $pskey, $subkey, @@ -1213,7 +1213,6 @@ public function useAccount ($basketExtra) { } - public function getHandleLib ($request, $basketExtra) { // getGatewayRequestExt $rc = false; diff --git a/model/class.tx_ttproducts_account.php b/model/class.tx_ttproducts_account.php index 8f5bf049a..9f63e43b8 100755 --- a/model/class.tx_ttproducts_account.php +++ b/model/class.tx_ttproducts_account.php @@ -55,9 +55,10 @@ class tx_ttproducts_account extends tx_ttproducts_table_base { public function init ($cObj, $functablename) { $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); $formerBasket = $basketObj->recs; - $bIsAllowed = $basketObj->basketExtra['payment.']['accounts']; - if (isset($basketObj->basketExtra['payment.']['useAsterisk'])) { - $this->useAsterisk = $basketObj->basketExtra['payment.']['useAsterisk']; + $basketExtra = tx_ttproducts_control_basket::getBasketExtra(); + $bIsAllowed = $basketExtra['payment.']['accounts']; + if (isset($basketExtra['payment.']['useAsterisk'])) { + $this->useAsterisk = $basketExtra['payment.']['useAsterisk']; } parent::init($cObj, 'sys_products_accounts'); diff --git a/model/class.tx_ttproducts_basket.php b/model/class.tx_ttproducts_basket.php index 7255af0c0..4346cf65b 100755 --- a/model/class.tx_ttproducts_basket.php +++ b/model/class.tx_ttproducts_basket.php @@ -943,14 +943,14 @@ public function create ($basketExtra, $useArticles, $funcTablename) { } - public function calculate () { + public function calculate ($basketExtra) { $cnfObj = GeneralUtility::makeInstance('tx_ttproducts_config'); $useArticles = $cnfObj->getUseArticles(); $calculObj = GeneralUtility::makeInstance('tx_ttproducts_basket_calculate'); $calculObj->calculate( $this->basketExt, - $this->basketExtra, + $basketExtra, $this->getFuncTablename(), $useArticles, $this->maxTax, diff --git a/model/class.tx_ttproducts_card.php b/model/class.tx_ttproducts_card.php index c34d77f69..00afda08a 100755 --- a/model/class.tx_ttproducts_card.php +++ b/model/class.tx_ttproducts_card.php @@ -52,7 +52,8 @@ public function init ($cObj, $functablename) { $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); $formerBasket = $basketObj->recs; - $allowedUids = $basketObj->basketExtra['payment.']['creditcards']; + $basketExtra = tx_ttproducts_control_basket::getBasketExtra(); + $allowedUids = $basketExtra['payment.']['creditcards']; parent::init($cObj, $functablename); diff --git a/model/class.tx_ttproducts_order.php b/model/class.tx_ttproducts_order.php index 6d2516bae..41c65ec8a 100755 --- a/model/class.tx_ttproducts_order.php +++ b/model/class.tx_ttproducts_order.php @@ -218,7 +218,8 @@ public function putRecord ( $amount, &$orderConfirmationHTML, &$address, - $status=0 + $status, + $basketExtra ) { $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); $calculObj = GeneralUtility::makeInstance('tx_ttproducts_basket_calculate'); @@ -332,7 +333,7 @@ public function putRecord ( $fieldsArray['vat_id'] = $billingInfo['tt_products_vat']; $paymentshippingObj = GeneralUtility::makeInstance('tx_ttproducts_paymentshipping'); - $taxPercentage = $paymentshippingObj->getReplaceTaxPercentage($basketObj->basketExtra); + $taxPercentage = $paymentshippingObj->getReplaceTaxPercentage($basketExtra); if (doubleval($taxPercentage) == 0) { $fieldsArray['tax_mode'] = 1; } @@ -542,7 +543,7 @@ public function getItemArray ($row, &$calculatedArray, &$infoArray) { * @param integer $orderID: uid of dummy record * @return void */ - function setData ($orderUid, &$orderHTML, $status) { + public function setData ($orderUid, &$orderHTML, $status, $basketExtra) { $basketObj = GeneralUtility::makeInstance('tx_ttproducts_basket'); $tablesObj = GeneralUtility::makeInstance('tx_ttproducts_tables'); @@ -572,12 +573,13 @@ function setData ($orderUid, &$orderHTML, $status) { $cardUid, $accountUid, $this->conf['email_notify_default'], // Email notification is set here. Default email address is delivery email contact - $basketObj->basketExtra['payment'][0] . ': ' . $basketObj->basketExtra['payment.']['title'], - $basketObj->basketExtra['shipping'][0] . ': ' . $basketObj->basketExtra['shipping.']['title'], + $basketExtra['payment'][0] . ': ' . $basketExtra['payment.']['title'], + $basketExtra['shipping'][0] . ': ' . $basketExtra['shipping.']['title'], $calculatedArray['priceTax']['total'], $orderHTML, $address, - $status + $status, + $basketExtra ); $this->createMM($orderUid, $basketObj->itemArray); diff --git a/view/class.tx_ttproducts_basket_view.php b/view/class.tx_ttproducts_basket_view.php index 42471ab55..344275728 100755 --- a/view/class.tx_ttproducts_basket_view.php +++ b/view/class.tx_ttproducts_basket_view.php @@ -164,7 +164,6 @@ public function getView ( $orderArray = array(), $basketExtra = array() ) { - /* Very central function in the library. By default it extracts the subpart, ###BASKET_TEMPLATE###, from the $templateCode (if given, else the default $this->templateCode) @@ -187,9 +186,6 @@ public function getView ( if (!count($orderArray)) { $orderArray = $basketObj->order; } - if (!count($basketExtra)) { - $basketExtra = $basketObj->basketExtra; - } $cnf = GeneralUtility::makeInstance('tx_ttproducts_config'); $billdeliveryObj = GeneralUtility::makeInstance('tx_ttproducts_billdelivery'); @@ -705,7 +701,7 @@ public function getView ( ENT_NOQUOTES, 'UTF-8' ); - $wrappedSubpartArray['###LINK_BASKET###'] = array('',''); + $wrappedSubpartArray['###LINK_BASKET###'] = array('', ''); $paymentshippingObj->getMarkerArray($theCode, $markerArray, $pid, $bUseBackPid, $calculatedArray, $basketExtra); // for receipt from DIBS script diff --git a/view/class.tx_ttproducts_list_view.php b/view/class.tx_ttproducts_list_view.php index cd9cf257e..5372384a0 100755 --- a/view/class.tx_ttproducts_list_view.php +++ b/view/class.tx_ttproducts_list_view.php @@ -1487,7 +1487,7 @@ class_exists('t3lib_utility_Math') ? $tmp=array(), $headerViewTagArray[$headerFieldIndex], $theCode, - $basketObj->basketExtra, + tx_ttproducts_control_basket::getBasketExtra(), true, '', 0,