Answer the question
In order to leave comments, you need to log in
Sending an order form via mail?
<a class="callme_order_btn" data-product="<?php echo $item->product_name; ?>
<?php echo $item->product_sku; ?>
<?php echo K2StorePrices::number($subtotal) .'Заказ через предварительную сумму оплаты услуг '. ' URL: '.JURI::base().$item->alias; ?>"
<a href="/home/stati/46-bibendum-wisi-neque-erat-gravida-massa"title="Заказ в 1 клик"alt="Заказ в 1 клик"><img src="images/zakaz.png"
onmouseover="this.src='images/zakaz2.png';"
onmouseout="this.src='images/zakaz.png';" /><a href="#" title="Удалить элемент" onclick="k2storeCartRemove(this, 1089, 381, 2)"> <div class="k2storeCartRemove"> </div> </a></p>
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery_2_1_1('.callme_order_btn').jbOneClick();
});
</script>
<tbody>
<?php $i=0; $k=0; $subtotal = 0;?>
<?php foreach ($items as $item) : ?>
<?php
$image_path = K2StoreItem::getK2Image($item->product_id, $this->params);
?>
<tr class="row<?php echo $k; ?>">
<?php if($this->params->get('show_thumb_cart')) : ?>
<td style="text-align: center;">
<?php if(!empty($image_path)) : ?>
<img src="<?php echo $image_path; ?>" class="itemImg<?php echo $this->params->get('cartimage_size','small') ?>" />
<?php endif;?>
</td>
<?php endif; ?>
<td style="width: 50px; text-align: center;">
<strong><?php echo $item->product_name; ?></strong>
<br/>
<?php if (!empty($item->attributes_names)) : ?>
<?php echo $item->attributes_names; ?>
<br/>
<?php endif; ?>
<?php if (!empty($item->product_sku)) : ?>
<b><?php echo JText::_( "K2STORE_SKU" ); ?>:</b>
<?php echo $item->product_sku; ?>
<br/>
<?php endif; ?>
<?php echo JText::_( "K2STORE_ITEM_PRICE" ); ?>: <?php echo K2StorePrices::number($item->product_price); ?>
</td>
<td style="width: 50px; text-align: center;">
<?php echo $item->product_qty; ?>
</td>
<td style="text-align: right;">
<?php $subtotal = $subtotal + $item->subtotal; ?>
<?php echo K2StorePrices::number($item->subtotal); ?>
</td>
<td><a title="<?php echo JText::_( 'K2STORE_CART_REMOVE_ITEM' ); ?>" onclick="k2storeCartRemove(this, <?php echo $item->cart_id; ?>, <?php echo $item->product_id; ?>, 1)"> <div class="k2storeCartRemove"> </div> </a> </td>
</tr>
<?php ++$i; $k = (1 - $k); ?>
<?php endforeach; ?>
</tbody>
break;
default:
sendmail("Заказ с сайта", render(
'<div><b>Имя:</b> '.stripinput($_POST['name']).'</div>'.
'<div><b>Телефон:</b> '.stripinput($_POST['tel']).'</div>'.
'<div><b>Сумма заказа:</b> '.stripinput($_POST['product']).'</div>'
),$EMAIL,$FROM,$REPLY);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question