[-] BO : fixed bug #PSCFV-2878 - Displaying wrong link in the SEO tab of a product using multistore

This commit is contained in:
vAugagneur
2012-07-09 09:11:13 +00:00
parent 804e2e51ac
commit d06a042ae1
2 changed files with 3 additions and 2 deletions
@@ -87,7 +87,7 @@
onmousedown="updateFriendlyURLByName();">{l s='Generate'}</a>&nbsp;
{l s='Friendly URL from product name.'}<br /><br />
{l s='Product link will look like this:'}
{if $ps_ssl_enabled}https://{else}http://{/if}{$smarty.server.SERVER_NAME}{$smarty.const.__PS_BASE_URI__}{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html</p>
{$curent_shop_url|escape:'htmlall':'UTF-8'}lang/{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html</p>
</td>
</tr>
</table>
@@ -2715,7 +2715,8 @@ class AdminProductsControllerCore extends AdminController
'product' => $product,
'languages' => $this->_languages,
'default_language' => (int)Configuration::get('PS_LANG_DEFAULT'),
'ps_ssl_enabled' => Configuration::get('PS_SSL_ENABLED')
'ps_ssl_enabled' => Configuration::get('PS_SSL_ENABLED'),
'curent_shop_url' => $this->context->shop->getBaseURL()
));
$this->tpl_form_vars['custom_form'] = $data->fetch();