adding URL parameters
Posted by ray | Posted in cheat codes | Posted on August 4th 2009
0
product id example:
- $this->getUrl(’[any valid url]‘, array(’id’=>$_product->getId()));
then retrieve it:
- $productId = $this->getRequest()->getParam(’id’);
product id example:
then retrieve it:
‘checkout/onepage’ can be any valid URL on your site…
$_product = $this->getProduct();
$setId = $_product->getAttributeSetId();
$set = Mage::getModel(’eav/entity_attribute_set’)->load($setId);
$setName = $set->getAttributeSetName();
Mage::app()->getStore()->getBaseUrl();
$this->getUrl(’customer/account/login’);