You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification
QuoteCustomer 1:
> Jan 14: I am trying to place an order through the online store and I just get the spinning wheel when I try to add to cart. I've tried two different web browsers and laptops.
> Feb 7: I can't place the order online. I still get the spinning wheel.
> Feb 10: I just attempted to try and add items to the cart and it still will not allow me to do so
Customer 2:
> Jan 29: I'm trying to purchase an individual license, but I just get a spinner forever after clicking "Add to Cart." I tried on a different browser, and had some coworkers try too
> Feb 10: Actually still doing it for me. Normally on Chrome, I tried it in Firefox too
function getOrderCountByEmail($email) {
$db = JFactory::getDbo();
$email = strtolower($email);
$query = $db->getQuery(true)
->select('COUNT(o.virtuemart_order_id)')
->from($db->quoteName('#__virtuemart_orders', 'o'))
->join('INNER', $db->quoteName('#__virtuemart_order_userinfos', 'u') . ' ON o.virtuemart_order_id = u.virtuemart_order_id')
->where('LOWER(' . $db->quoteName('u.email') . ') = ' . $db->quote($email));
$db->setQuery($query);
return (int) $db->loadResult();
}
Behind the table headerecho $this->sort('order_email', 'COM_VIRTUEMART_EMAIL') ?></th>
We add another header column<th><?php echo vmText::_('COM_VIRTUEMART_ORDERS'); ?></th>
After colum<?php echo $order->order_email;?></td>
Add column<td><?php echo getOrderCountByEmail($order->order_email);?></td>
<script>
jQuery(document).ready(function($) {
var fieldA = $('select[name="Document"]');
var fieldB = $('input[name="VAT"]');
function toggleRequired() {
if (fieldA.val() === 'invoice') {
fieldB.prop('required', true);
} else {
fieldB.prop('required', false);
}
}
fieldA.change(toggleRequired);
toggleRequired();
});
</script>
Page created in 0.099 seconds with 13 queries.