[-] BO : #PSTEST-582 - Select default currency on tab tab product > supplier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12693 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -93,12 +93,14 @@
|
||||
{foreach $attributes AS $index => $attribute}
|
||||
{assign var=reference value=''}
|
||||
{assign var=price_te value=''}
|
||||
{assign var=id_currency value=''}
|
||||
{assign var=id_currency value=$id_default_currency}
|
||||
{foreach from=$associated_suppliers_collection item=asc}
|
||||
{if $asc->id_product == $attribute['id_product'] && $asc->id_product_attribute == $attribute['id_product_attribute'] && $asc->id_supplier == $supplier->id_supplier}
|
||||
{assign var=reference value=$asc->product_supplier_reference}
|
||||
{assign var=price_te value=Tools::ps_round($asc->product_supplier_price_te, 2)}
|
||||
{assign var=id_currency value=$asc->id_currency}
|
||||
{if $asc->id_currency}
|
||||
{assign var=id_currency value=$asc->id_currency}
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr {if $index is odd}class="alt_row"{/if}>
|
||||
|
||||
@@ -3587,7 +3587,8 @@ class AdminProductsControllerCore extends AdminController
|
||||
'currencies' => Currency::getCurrencies(),
|
||||
'product' => $obj,
|
||||
'link' => $this->context->link,
|
||||
'token' => $this->token
|
||||
'token' => $this->token,
|
||||
'id_default_currency' => Configuration::get('PS_CURRENCY_DEFAULT'),
|
||||
));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user