`
kirenenko04
  • 浏览: 146351 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
  1.in product view phtml, use fancy box to add a click for rating star (fancy ajax)   <?php echo $this->getReviewsSummaryHtml($_product, 'star_ajax', true)?>   2. rewrite getReviewsSummaryHtml for choose ajax star phtml in config.xml:     <global> <blocks> <m ...
$file_url = 'http://www.myremoteserver.com/file.exe'; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url); ...
Here is how you can get the prices of the simple products. The example is for a single configurable product but you can integrate it in your loop.There may be a problem with performance because there are a lot of foreach loops but at least you have a place to start. You can optimize later. //the co ...
This one kept me up all night, and would like to offer these code snippets to save someone else the trouble of automatically approving ratings and reviews. Using this page as a guide: http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_overload_a_ ...
spConfig.setInitialState = function(dropdown_id) { //select dropdown var dropdown = $(dropdown_id); //remove empty option from dropdown so it is not selectable after initial selection dropdown[0].remove(); //change selections ...
/** * get multiselect attribute values on the product */ public function get_mulselect_attr_values($_attribute_code, $productId) { $storeId = Mage::app()->getStore()->getStoreId(); $car_options_csv = Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, ...
public function explode_sku($sku) { $sku_arr = str_split($sku); foreach ($sku_arr as $key=>$val) { if (is_numeric($val)) { return $key; } } return false; }  
$('.selectorClass').hover( function(){ $(this).stop().fadeTo('slow',0.4); }, function(){ $(this).stop().fadeTo('slow',1); });  
1. add js and css to your layout config file <reference name="head"> <action method="addCss"><stylesheet>css/fancybox/jquery.fancybox-1.3.4.css</stylesheet></action> <action method="addCss"><stylesheet>css/share/jq ...
1. rewrite core compare action <?xml version="1.0"?> <config> <modules> <Bysoft_Mycatalog> <version>0.1.0</version> </Bysoft_Mycatalog> </modules> <global> <helpers> <mycatalog> ...
Hi, I'm using this plugin on a project and have found that it is not compatible with jquery 1.10.2 as it uses an older way of looking for ie6 etc. I have found a patch for this, spoken about here and you can download it from here I hope it helps.    
Native CAPTCHA settings First of all find Customer Configuration and open CAPTCHA settings How to add new form to CAPTCHA settings? Create new module and add this lines to config.xml: <?xml version="1.0"?> <config> ... <global> <events> <co ...
1. here is the model define: <global> <models> <openerpconnector> <class>Openlabs_OpenERPConnector_Model</class> </openerpconnector>   2. here is the resource api define:     plese look at <model> node ...
One of the nice surprises at Magento Imagine 2014 was the simultaneous release of Magento EE 1.14 andMagento CE 1.9. The most obvious feature of both is a new responsive web design theme, but behind the scenes there was some invisible systems work done to finally bring a simpler infinite theme fallb ...
Download JS Extension from here:  http://jscolor.com/   Sometimes you may want to add color picker in the admin configuration page of your Magento module or extension. You may think this as a big task but believe me this is as simple as anything. Few lines of XML code will do it for you. Here are ...
Global site tag (gtag.js) - Google Analytics