GoogleAnalytics4/Modules/Application/Model/Basket.php

24 lignes
521 B
PHP
Brut Vue normale Historique

<?php
namespace D3\GoogleAnalytics4\Modules\Application\Model;
use OxidEsales\Eshop\Application\Model\Payment;
class Basket extends Basket_parent
{
/**
* @return string
*/
2024-11-25 18:48:39 +01:00
public function getPaymentOnPaymentId(): string
{
2024-11-25 18:48:39 +01:00
if ($this->getPaymentId()) {
$oPayment = oxNew(Payment::class);
2024-11-25 18:48:39 +01:00
if ($oPayment->load($this->getPaymentId())) {
return $oPayment->getFieldData('oxdesc');
}
}
return "couldn't load payment!";
}
2024-11-25 18:48:39 +01:00
}