error cause of id_product for product_id

This commit is contained in:
Marion Muszynski 2016-11-25 18:50:38 +01:00
parent ddad6db847
commit cfdab3cc09

View File

@ -308,23 +308,23 @@
<tr class="title"> <tr class="title">
<td> <td>
<h5> <h5>
<a href="{$link->getPageLink('get-file.php', true)}?key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}{if isset($is_guest) && $is_guest}&id_order={$order->id}&secure_key={$order->secure_key}{/if}" title="{l s='download this product'}"> {*<a href="{$link->getPageLink('get-file.php', true)}?key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}{if isset($is_guest) && $is_guest}&id_order={$order->id}&secure_key={$order->secure_key}{/if}" title="{l s='download this product'}">*}
{$product.product_name|escape:'htmlall':'UTF-9'} {$product.product_name|escape:'htmlall':'UTF-9'}
</a> {*</a>*}
</h5> </h5>
</td> </td>
</tr> </tr>
<tr class="attribute"> <tr class="attribute">
<td> <td>
{if isset($product.attributes) && $product.attributes} {if isset($product.attributes) && $product.attributes}
<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a> <a href="{$link->getProductLink($product.product_id, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>
{/if} {/if}
</td> </td>
</tr> </tr>
<tr class="price"> <tr class="price">
<td> <td>
<div class="cart_unit"> <div class="cart_unit">
<span class="price" id="product_price_{$product.id_product}_{$product.id_product_attribute}"> <span class="price" id="product_price_{$product.product_id}_{$product.product_attribute_id}">
{if $group_use_tax} {if $group_use_tax}
{convertPriceWithCurrency price=$product.total_wt currency=$currency convert=0} {convertPriceWithCurrency price=$product.total_wt currency=$currency convert=0}
{else} {else}
@ -340,11 +340,11 @@
<label>{l s='Quantity'}</label> <label>{l s='Quantity'}</label>
<div class="cart_quantity"{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} style="text-align: center;"{/if}> <div class="cart_quantity"{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} style="text-align: center;"{/if}>
{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}
<span id="cart_quantity_custom_{$product.id_product}_{$product.id_product_attribute}" >{$product.customizationQuantityTotal}</span> <span id="cart_quantity_custom_{$product.product_id}_{$product.product_attribute_id}" >{$product.customizationQuantityTotal}</span>
{/if} {/if}
{if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0}
<input type="hidden" value="{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_hidden" /> <input type="hidden" value="{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}" name="quantity_{$product.product_id}_{$product.product_attribute_id}_hidden" />
<input size="2" maxlength="3" type="text" class="cart_quantity_input" value="{$productQuantity|intval}" name="quantity_{$product.id_product}_{$product.id_product_attribute}" /> <input size="2" maxlength="3" type="text" class="cart_quantity_input" value="{$productQuantity|intval}" name="quantity_{$product.product_id}_{$product.product_attribute_id}" />
{/if} {/if}
</div> </div>
</div> </div>