Ejemplo n.º 1
0
            $shopCart->savePurchaseData($request);
            $output = $shopCart->getCartContent($shkconf['orderFormPage'], $thisPage);
            break;
        case "empty":
            $shopCart->emptySavedData();
            $output = $shopCart->getCartContent($shkconf['orderFormPage'], $thisPage);
            break;
        case "delete":
            $shopCart->delArrayItem($request['index']);
            $output = $shopCart->getCartContent($shkconf['orderFormPage'], $thisPage);
            break;
        case "recount":
            $shopCart->recountDataArray($request['index'], $request['count'], false);
            $output = $shopCart->getCartContent($shkconf['orderFormPage'], $thisPage);
            break;
        case "refresh_cart":
            $output = $shopCart->getCartContent($shkconf['orderFormPage'], $thisPage);
            break;
        default:
            $output = '';
            break;
    }
    //added by Bumkaka
    $modx->minParserPasses = 2;
    $output = $modx->mergeSettingsContent($output);
    $output = $modx->mergeChunkContent($output);
    $output = $modx->evalSnippets($output);
    $output = $modx->rewriteUrls($output);
    //end added by Bumkaka
    echo $output;
}