// delete btn preview if the shop have not virtual_uri in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10577 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
45fbdd8635
commit
5660c09d62
1 file changed
+2
-1
@@ -1912,7 +1912,8 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
|
|
||||||
public function getPreviewUrl(Product $product)
|
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;
|
return false;
|
||||||
|
|
||||||
$preview_url = $this->context->link->getProductLink(
|
$preview_url = $this->context->link->getProductLink(
|
||||||
|
|||||||
Reference in new issue
Block a user