Adding a Vocabulary and terms using Drupal 7

In www.example.com/admin/structure/taxonomy choose Add Vocabulary. Name- avoid any problematic characters like ampersands or apostrophes as they may not display properly in all instances, (though in the authors experience this is a cosmetic issue only). Description- Optional, the description is for administrators and editors, not a help guide for users. Your new vocabulary is at www.example.com/admin/structure/taxonomy Default display of vocabularies is alphabetical. You can drag them into a different order. Add terms to a vocabulary Name- the term itself as will appear in the site.
查看更多 →

Virtuemart search 404 page with sh404 sef

Change mod_virtuemart_search.php from <form action="<?php $sess->purl( $mm_action_url."index.php?page=shop.browse" ) ?>" method="post"> <p><input name="keyword" type="text" size="12" title="<?php echo $VM_LANG->('PHPSHOP_SEARCH_TITLE') ?>" class="inputbox" id="keyword" /> <input class="button" type="submit" name="Search" value="<?php echo $VM_LANG->('PHPSHOP_SEARCH_TITLE') ?>" /></p> </form> to <form action="<?php echo $mm_action_url."index.php" ?>" method="get"> <input id="shop_search_field" title="<?php echo $VM_LANG->('PHPSHOP_SEARCH_TITLE') ?>" class="inputbox" type="text" size="12" name="keyword" /> <input class="button" type="submit" name="Search" value="<?php echo $VM_LANG->('PHPSHOP_SEARCH_TITLE') ?>" /> <input type="hidden" name="Itemid" value="<?php echo intval(@$_REQUEST['Itemid']) ?>" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="page" value="shop.
查看更多 →

Virtuemart Change Order number

To change the order number generation do as follows: Go to administrator/components/com_virtuemart/classes/ps_checkout.php Find the following function - get_order_number() and change <?php … function get_order_number() { global $auth; /* Generated a unique order number */ $str = session_id(); $str .= (string)time(); $date = date('d.m.Y'); $db =& JFactory::getDBO(); $query = " SELECT order_id FROM #__vm_orders "; $db->setQuery($query); $column= $db->loadResultArray(); $anzahl = count($column) + 1; $order_number = "Nike ".$anzahl." - ".$date ; return substr($order_number, 0, 32); }
查看更多 →

VirtueMart Remove CVV2 from Customer E-Mail Receipt

查看更多 →

Linux下crontab的配置文件位置

查看更多 →