Tips Blog

Welcome to our technical tips blog – solutions and answers for numerous Joomla, Wordpress, Magento, Linux, MySQL and other problems.
 

Magento – display product attributes in category list page

Magento – display product attributes in category list page Say you’ve added ‘brand’ as an attribute and added it to the Default attribute set (make sure the attribute is visible in the frontend). Then add this: From http://www.magentocommerce.com/boards/viewthread/19215/ <?phpecho $this->htmlEscape($_product->getData(‘brand’));  

read more

Magento admin page xxx.com/index.php/admin gives 404 error.

Magento admin page xxx.com/index.php/admin gives 404 error. SET FOREIGN_KEY_CHECKS=0; UPDATE `core_store` SET store_id = 0 WHERE code=’admin’; UPDATE `core_store_group` SET group_id = 0 WHERE name=’Default’; UPDATE `core_website` SET website_id = 0 WHERE code=’admin’; UPDATE `customer_group` SET customer_group_id = 0 WHERE

read more

Joomla countModules function example

Joomla countModules function <?php if ($this->countModules( ‘user1’ )) : ?> <div id=”image_division”><jdoc:include type=”modules” name=”slider_image” style=”xhtml” /> </div> <?php endif; ?>  

Gmail rejecting or blocking emails via SMTP : The sender does not meet basic ipv6 sending guidelines of authentication and rdns resolution of sending ip. Please review https://support.google.com/mail/answer/81126for more information.

Found this on my Poundhost server when trying to send emails to Gmail – “The sender does not meet basic ipv6 sending guidelines of authentication and rdns resolution of sending ip. Please review https://support.google.com/mail/answer/81126for more information.” Strangely, turned out to

read more

Add Joomla Update to Component menu

To fix the problem where the Joomla Update component doesn’t appear in the Components menu in Jooma, just run this SQL : INSERT INTO `#__menu` (`menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`,

read more

Display or render Joomla 2.5 module using PHP

Useful in Virtuemart or elsewhere: /* may be necessary to include: jimport( ‘joomla.application.module.helper’ ); */ $mainframe =& JFactory::getApplication(‘site’); $modules = JModuleHelper::getModules(‘left’);$document   = JFactory::getDocument();$renderer   = $document->loadRenderer(‘module’);$attribs = array(‘style’ => ‘xhtml’);$contents = ”;foreach( $modules As $mod ){    $contents .= $renderer->render($mod, $attribs);}echo $contents;

Excel formula to grab a postcode from an address

Had some addresses of the type below and want to grab the postcode from them, so created the following Excel formula : Unit L39, Lower Mall, Arndale Shopping Centre, Manchester M4 3AQ =RIGHT(C877;11-FIND(” “;RIGHT(C877;11))) Returns: M4 3AQ