Category: WP / Joomla! / Magento / Shopify / Drupal / Moodle / Zimbra

Magento: 产品页面获取 attribute set name How do I get attribute set name?

Whenever you have a product object, you can access its attribute set like this: $attributeSetModel = Mage::getModel("eav/entity_attribute_set"); $attributeSetModel->load($product->getAttributeSetId()); $attributeSetName = $attributeSetModel->getAttributeSetName(); $attributeSetId = $attributeSetModel->getAttri… Read More

Magento: fatal error maximum execution time of 30 seconds exceeded

Error : Maximum execution time of 30 seconds exceeded in Magento. Solution: You need to increase your maximum execution time for php scripts on your server. You can edit your php.ini file to increase this value max_execution_time = 600   or You can try adding the following line at the start of your file on which you are facing error. For

magento: configurable 显示所有属性及获取 Json Config how to get Json Config by product id

1. 显示所有属性 $config_product = Mage::getModel('catalog/product')->load($_product->getId()); $productAttributeOptions = $config_product->getTypeInstance(true)->getConfigurableAttributesAsArray($config_product); 源于:http://stackoverflow.com/a/17045189/602382   2. 获取 Json Config $mageFilename = 'app/Mage.… Read More

Moodle: 登记学生,检测学生是否存在在课程 Check if user is enrolled or enroll a user in course

1. 检测学生是否存在课程中 Check if user is enrolled in specific Moodle course require_once('../config.php'); global $USER; // 获取当前课程信息 $course_id = $_GET['id']; $course = $DB->get_record('course', array('id' => $course_id), '*', MUST_EXIST); //echo '<pre>'; print_r($course); echo '</pre>'; // 获取该课程所有学员 $context = get_context_in… Read More

magento SEO

关于Magento如何如何我就不做评论了,一句话,谁用谁知道,搜索了下,百度和谷歌中文里还真没有一篇系统的关于magento seo的内容,花了一个上午的时间,稍微整理了一下,算是给新人一个指引吧。主要从三个方面来说magento的优化,一是提升magento运行速度, 其次是magento的站内优化,三是magento的站外优化。   我们知道尽管很多人都清楚magento功能强大,但是运行起来相对较慢,这让很多外贸建站的朋友望而却步,今天我们就来分享一些提升magento速度的小技巧:   一、系统加速 1、给系统减负 去掉Incoming Message,进入后台,  System—C… Read More

Magento : 直接下载扩展插件到本地 Extension

Download Magento Extension 使用下面的链接下载插件。然后上传也可以。 http://freegento.com/ddl-magento-extension.php 输入key之后,网页直接给出下载链接。点击直接下载即可。   另外还有一个比较好的: http://www.tangkoko.com/direct-download-magento-extension/   一般 情况下最好还是使用magento connect直接安装插件。 手动下载   Format of the URL: http://connect20.magentocommerce.com/communi… Read More

21个WordPress店铺必备免费工具

WordPress是一款免费的内容管理系统,可以用来搭建店铺,有很多免费的插件和主题可以使用。 如果你想找一个费用低廉且使用灵活的方案来试水,WordPress 绝对是正确的选择。这里给大家介绍21款必备的免费工具:   入门指南: WordPress.org WordPress最初是一个博客系统,现在已经成为一个完善的内容管理系统,我们可以到wordpress.org上免费下载最新版本的WordPress程序。 WordPress Lessons 这里有一些WordPress免费课程,内容从新手到进阶,让你了解网站设计、主题开发和网站开发。 WordPress.com 你也可以直接在WordPress.… Read More

Magento 获取当前货币和货币符How to get current currency in Magento

We know Magento support multiple currency. I have found the solution to check current currency in the Magento site frontend   To get Current Currency <?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?> If you looking for current currency symbol use : <?php echo Mage::app()->getLocale()-&g… Read More