b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / app / code / SendCloud / SendCloud / Block / Checkout /
Filename/home/dev2.destoffenstraat.com/app/code/SendCloud/SendCloud/Block/Checkout/Overview.php
Size1.51 kb
Permissionrwxrwxrwx
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified11-Feb-2023 11:04
Last accessed23-Aug-2025 14:02
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

namespace SendCloud\SendCloud\Block\Checkout;

use Magento\Framework\Pricing\PriceCurrencyInterface;
use Magento\Framework\Serialize\Serializer\Json;
use Magento\Quote\Model\Quote\Address;

class Overview extends \Magento\Multishipping\Block\Checkout\Overview
{
/**
* @var Json
*/
private $serializer;

public function __construct(
Json $serializer,
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping,
\Magento\Tax\Helper\Data $taxHelper,
PriceCurrencyInterface $priceCurrency,
\Magento\Quote\Model\Quote\TotalsCollector $totalsCollector,
\Magento\Quote\Model\Quote\TotalsReader $totalsReader,
array $data = []
) {
parent::__construct(
$context,
$multishipping,
$taxHelper,
$priceCurrency,
$totalsCollector,
$totalsReader,
$data
);
$this->serializer = $serializer;
}

/**
* Get shipping address rate
*
* @param Address $address
* @return bool
*/
public function getShippingAddressSendcloudData($address)
{
$quote = $this->getQuote();
$multishippingData = $this->serializer->unserialize($quote->getData('sendcloud_multishipping_data'));
if ($multishippingData && array_key_exists($address->getId(), $multishippingData)) {
return $multishippingData[$address->getId()];
}
}
}