url2img is a minimalist jQuery plugin used to take a screenshot from an user provided URL by using Google Pagespeed Insights API.
How to use it:
1. Include jQuery JS library and the jQuery url2image.js script in your document.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="url… Read More
This extension add new link and a page to that link and enable/disable links in my account left Nav section.
页面: https://www.magentocommerce.com/magento-connect/my-account-add-link.html
Magento Connect 2.0 : http://connect20.magentocommerce.com/community/ng_customer
下载: ng_customer-1.0.2—-customer-account-page
本文: M… Read More
Load a Product by ID
<?php
// get product model by product id, assuming you have known product id, $productId
$_product = Mage::getModel('catalog/product')->load($productId)
Load a Product by SKU
<?php
$sku = 'my-product-sku';
$product = Mage::getModel('catalog/product')->load($sku, 'sku');
if ($product->getId()) {
echo $pr… Read More
Have a container <div> with a class, and use the > selector. Lets say your container div’s class is “myclass”:
.myclass ul li {
...this will affect both levels of li.
}
.myclass > ul > li {
...this will only affect the first level.
}
.myclass > ul > li > ul > li {
<?php
// get category model by category id, assume you have known category id, $categoryId
$_category = Mage::getModel('catalog/category')->load($categoryId);
// category name
$categoryName = $_category->getName();
// category description
$categoryDescription = $_category->getDescription();
// category url
$categoryUrl =… Read More