Esempio n. 1
0
</a>
	</div>
</div>	
<div class="total_info" style="margin-top:-50px;margin-bottom:10px;float:left">
	<span class="grey-span"><b><?php 
echo JText::_('ksm_reports_orders_count_orders');
?>
</b></span> - <?php 
echo $this->total;
?>
	<br>
	<span class="grey-span"><b><?php 
echo JText::_('ksm_reports_orders_total_price');
?>
</b></span> - <?php 
echo KSMPrice::showPriceWithoutTransform($this->total_cost);
?>
	<br>
</div>
<table class="cat" width="100%" cellspacing="0">	
	<thead>
		<tr>
			<th class="order_number"><span class="sort_field" rel="id">№</span></th>
			<th class="order_name stretch" align="left"><span class="sort_field" rel="name"><?php 
echo JText::_('ksm_reports_order_user_name');
?>
</span></th>
			<th class="order_cost"><span class="sort_field" rel="cost"><?php 
echo JText::_('ksm_reports_order_cost');
?>
</span></th>
		<div class="img">
			<img src="<?php 
echo $this->item->img;
?>
">
		</div>
		<div class="descr">
			<a class="product_title"><?php 
echo $this->item->title;
?>
</a>
		</div>
	</td>
	<td class="price">
		<span><?php 
echo KSMPrice::showPriceWithoutTransform($this->item->price, $this->item->price_type);
?>
</span>
	</td>
	<td class="storage">
		<span><?php 
echo $this->item->in_stock;
?>
</span>
	</td>
	<td class="storage">
		<span><?php 
echo $this->item->favorites;
?>
</span>
	</td>
Esempio n. 3
0
    function get_order_shippings()
    {
        $db = JFactory::getDBO();
        $region_id = JRequest::getVar('region_id', 0);
        $selected = JRequest::getVar('selected', 0);
        $query = "select s.*,(select name from #__ksenmart_shipping_types where id=s.type) as type_name from #__ksenmart_shippings as s where s.regions like '%|{$region_id}|%'";
        $db->setQuery($query);
        $shippings = $db->loadObjectList();
        if (count($shippings) > 0) {
            foreach ($shippings as $ship) {
                $cost = 0;
                $shipping_id = $ship->id;
                $distance = 0;
                include JPATH_ROOT . '/administrator/components/com_ksenmart/helpers/shipping/' . $ship->type_name . '.php';
                ?>
			<div class="shipping">
				<input type="radio" name="shipping_type" regions="<?php 
                echo $ship->regions;
                ?>
" value="<?php 
                echo $ship->id;
                ?>
" <?php 
                echo $ship->id == $selected ? 'checked' : '';
                ?>
/>
				<span class="grey-span"><?php 
                echo JText::_($ship->title);
                echo $cost != 0 ? ' — ' . KSMPrice::showPriceWithoutTransform($cost) : '';
                ?>
</span>
				<span class="shipping-descr">(доставка не позднее <?php 
                echo KSMShipping::getShippingDate($ship->id);
                ?>
)</span>
			</div>			
			<?php 
            }
        } else {
            ?>
		<div class="no_shippings">
			<span class="grey-span">Нет способов доставки для выбранного региона</span>
		</div>
		<?php 
        }
        exit;
    }
Esempio n. 4
0
</td>
		<td class="b_left b_top rightAlign nobr"><?php 
    echo KSMPrice::showPriceWithoutTransform($item->price * $item->count * (100 - $this->params->get('printforms_nds')) / 100);
    ?>
</td>
		<td class="b_left b_top rightAlign">0,00</td>
		<td class="b_left b_top rightAlign"><?php 
    echo $this->params->get('printforms_nds');
    ?>
%</td>
		<td class="b_left b_top rightAlign"><?php 
    echo KSMPrice::showPriceWithoutTransform($item->price * $item->count * $this->params->get('printforms_nds') / 100);
    ?>
</td>
		<td class="b_left b_top rightAlign nobr"><?php 
    echo KSMPrice::showPriceWithoutTransform($item->price * $item->count);
    ?>
</td>
		<td class="b_left b_top inline_edit">&nbsp;</td>
		<td class="b_left b_top inline_edit">&nbsp;</td>
		<td class="b_top b_left b_right inline_edit">&nbsp;</td>
	</tr>
	<?php 
    $total_count += $item->count;
    ?>
	<?php 
    $k++;
    ?>
	<?php 
}
?>
Esempio n. 5
0
		<td class="b_left b_bottom rightAlign"><?php 
echo $total_count;
?>
</td>
		<td class="b_left b_bottom normalFont">X</td>
		<td class="b_left b_bottom rightAlign nobr"><?php 
echo KSMPrice::showPriceWithoutTransform($this->order->cost * (100 - $this->params->get('printforms_nds')) / 100);
?>
</td>
		<td class="b_left b_bottom normalFont">X</td>
		<td class="b_left b_bottom rightAlign"><?php 
echo KSMPrice::showPriceWithoutTransform($this->order->cost * $this->params->get('printforms_nds') / 100);
?>
</td>
		<td class="b_left b_bottom b_right rightAlign nobr"><?php 
echo KSMPrice::showPriceWithoutTransform($this->order->cost);
?>
</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding=0 cellspacing=0
	class="mainTable">
	<tr>
		<td class=separatorCell>&nbsp;</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding=0 cellspacing=0
	class="mainTable">
	<tr>
Esempio n. 6
0
		<div class="lists">
			<div class="row-fluid">	
				<ul>
					<?php 
if (count($currencies) > 0) {
    ?>
					<?php 
    foreach ($currencies as $currency) {
        ?>
					<li>
						<label>
							<?php 
        echo KSMPrice::showPriceWithoutTransform(1);
        ?>
 = <?php 
        echo KSMPrice::showPriceWithoutTransform('<input type="text" name="items[' . $currency->id . '][rate]" class="inputbox" value="' . $currency->rate . '">', $currency->id);
        ?>
						</label>
						<input type="hidden" name="items[<?php 
        echo $currency->id;
        ?>
][id]" value="<?php 
        echo $currency->id;
        ?>
">
					</li>
					<?php 
    }
    ?>
					<?php 
} else {
Esempio n. 7
0
    echo JText::_('ksm_catalog_add_to_set');
    ?>
</a>
				<?php 
}
?>
			</p>
		</div>
	</td>
	<td class="price changeble">
		<span><?php 
echo KSMPrice::showPriceWithoutTransform($this->item->price, $this->item->price_type);
?>
</span>
		<p><?php 
echo KSMPrice::showPriceWithoutTransform('<input type="text" name="items[' . $this->item->id . '][price]" class="inputbox" value="' . $this->item->price . '">', $this->item->price_type);
?>
</p>
	</td>
	<td class="storage changeble">
		<span><?php 
echo $this->item->in_stock;
?>
</span>
		<p><input type="text" class="inputbox" name="items[<?php 
echo $this->item->id;
?>
][in_stock]" value="<?php 
echo $this->item->in_stock;
?>
"></p>