<?php
global $modx;
$count = $modx->db->getValue( $modx->db->select( 'MAX(id)', 'evo_commerce_orders') );
return $count;
<?php
// if (ci()->carts->getCart('wishlist')->has($modx->documentIdentifier)) {
if (ci()->carts->getCart('wishlist')->has($id)) {
return 'active';
}
[[pricePercent? &num=`{*price*]` &num2=`{*priceold*]`]]
<?php
if ($num1=='') { $num1=100; }
if ($num2=='') { $num2=100; }
$out=100-(($num1/$num2)*100);
echo floor($out);