Skip to content

Instantly share code, notes, and snippets.

@shakhmehedi
shakhmehedi / magento-1_get_configurable_product_ids_skus_from_simple_product.php
Created August 16, 2016 12:43
Magento 1: Get Configurable Product ids/skus from simple product
/**
* Return parent product id(s) array.
*
* @param Mage_Catalog_Model_Product $product
* @return array|bool|null
*/
public function getParentIds(Mage_Catalog_Model_Product $product)
{
$id = $product->getId();
$type = $product->getTypeId();
@shakhmehedi
shakhmehedi / 0_reuse_code.js
Created April 6, 2016 07:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console