Full migration of front\factory\ — entire directory removed (all 20 classes migrated). ProductRepository +20 frontend methods, PromotionRepository +5 applyType methods, TransportRepository +4 cached methods, PaymentMethodRepository +cached frontend methods. Fix: broken transports_list() in ajax.php replaced with forPaymentMethod(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
325 B
PHP
14 lines
325 B
PHP
<?php
|
|
namespace front\Views;
|
|
|
|
class ShopPaymentMethod
|
|
{
|
|
public static function basketPaymentMethods( $payment_methods, $payment_id )
|
|
{
|
|
$tpl = new \Shared\Tpl\Tpl;
|
|
$tpl->payment_methods = $payment_methods;
|
|
$tpl->payment_id = $payment_id;
|
|
return $tpl->render( 'shop-basket/basket-payments-methods' );
|
|
}
|
|
}
|