first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* Subclass for performing query and update operations on the 'st_poczta_polska_punkt_odbioru' table.
*
*
*
* @package plugins.stPocztaPolskaPlugin.lib.model
*/
class PocztaPolskaPunktOdbioruPeer extends BasePocztaPolskaPunktOdbioruPeer
{
public static function isPobranie(Order $order)
{
$orderPayment = $order->getOrderPayment();
if ($order->isAllegroOrder())
{
return in_array($orderPayment->getAllegroPaymentType(), array('collect_on_delivery', 'cash_on_delivery'));
}
$paymentType = $orderPayment->getPaymentType();
return $paymentType->getIsCod();
}
}