// Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(true); // Select all articles for users who have a username which starts with ‘a’. // Order it by the created date.…
// Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(true); // Select all articles for users who have a username which starts with ‘a’. // Order it by the created date.…
To show only page content from joomla article or component you need to add following to the url &task=display&tmpl=component
To create modal popup for user login for example Go to menu and Add new Select on Menu Item Type -> External URL Link http://www.yourdomain.com/index.php?option=com_users&view=login&Itemid=99999&tmpl=component Link CSS Style modal bmenu “ rel=“{handler: ‘iframe’, size: {x: 780, y: 500}, onClose:function(){$(‘sbox-content’).empty();}} You…
go to /components/com_virtuemart/controllers/cart.php and add this fuction public function deleteall() { $mainframe = JFactory::getApplication(); $cart = VirtueMartCart::getCart(); $cart->emptyCart(); $mainframe->redirect(JRoute::_(‘index.php?option=com_virtuemart&view=cart’)); } Go to your cart template and add <a title=“<?php echo JText::_(‘COM_VIRTUEMART_CART_DELETE’) ?>“ align=“middle“ href=“<?php echo JRoute::_(‘index.php?option=com_virtuemart&view=cart&task=deleteall’) ?>“><i></i></a>
$text = JHTML::_(‘content.prepare’, $text );