// delete btn preview if the shop have not virtual_uri in AdminProductsController

This commit is contained in:
lLefevre
2011-11-23 17:37:16 +00:00
parent cf09f25be6
commit ae3349af45
@@ -1912,7 +1912,8 @@ class AdminProductsControllerCore extends AdminController
public function getPreviewUrl(Product $product)
{
if (!(bool)$this->context->shop->virtual_uri)
$shop_url = new ShopUrl($this->context->shop->id);
if (!$shop_url->id && !empty($this->context->cookie->shopContext))
return false;
$preview_url = $this->context->link->getProductLink(