Skip to content

Commit

Permalink
Use specified store on product preview page.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeykalenyuk committed Sep 25, 2014
1 parent 50fc949 commit d8d50e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ public function preDispatch()
public function previewAction()
{
// Get initial data from request
$storeId = (int) $this->getRequest()->getParam('store_id', Mage::app()->getDefaultStoreView()->getId());
$categoryId = (int) $this->getRequest()->getParam('category', false);
$productId = (int) $this->getRequest()->getParam('id');
$specifyOptions = $this->getRequest()->getParam('options');

// Set current store
Mage::app()->setCurrentStore($storeId);

// Prepare helper and params
$viewHelper = Mage::helper('tadic_avp/catalog_product_view');

Expand Down

0 comments on commit d8d50e2

Please sign in to comment.