Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
More or less like this:
<?php
$miniShop2 = $modx->getService('miniShop2');
$miniShop2->initialize($modx->context->key);
$cart = $miniShop2->cart->get(); // товары корзины
$order = $miniShop2->order->get(); // заказ
$status = $miniShop2->cart->status(); // статус корзины
$cost = $miniShop2->order->getCost();
$order['cost'] = $miniShop2->formatPrice($cost['data']['cost']);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question