cson Posted October 22, 2013 Share Posted October 22, 2013 (edited) Suddenly my cart dont show the number of items, I can still add og subtract items, total price works ok, but the amount field is empty. See image: Can`t figure out what is wrong. Regards Carsten Edited October 23, 2013 by cson (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 22, 2013 Share Posted October 22, 2013 hello it looks like non default theme. can you show please contents of your shopping-cart-product-line.tpl file please? Link to comment Share on other sites More sharing options...
cson Posted October 22, 2013 Author Share Posted October 22, 2013 (edited) hello it looks like non default theme. can you show please contents of your shopping-cart-product-line.tpl file please? Hi Shopping-cart-product-linetpl says: <tr id="product_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}" class="{if isset($productLast) && $productLast && (!isset($ignoreProductLast) || !$ignoreProductLast)}last_item{elseif isset($productFirst) && $productFirst}first_item{/if} {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}alternate_item{/if} cart_item address_{$product.id_address_delivery|intval} {if $odd}odd{else}even{/if}"> <td class="cart_product"> <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" {if isset($smallSize)}width="{$smallSize.width}" height="{$smallSize.height}" {/if} /></a> </td> <td class="cart_description"> <h5 class="s_title_block"><a class="product_name" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5> {if isset($product.attributes) && $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if} </td> <td class="cart_ref">{if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if}</td> <td class="cart_unit"> <span class="price" id="product_price_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}"> {if !empty($product.gift)} <span class="gift-icon">{l s='Gift!'}</span> {else} {if isset($product.is_discounted) && $product.is_discounted} <span class="price-discount">{convertPrice price=$product.price_without_specific_price}</span><br /> {/if} {if !$priceDisplay} {convertPrice price=$product.price_wt} {else} {convertPrice price=$product.price} {/if} {/if} </span> </td> <td class="cart_quantity"{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} style="text-align: center;"{/if}> {if isset($cannotModify) AND $cannotModify == 1} <span style="float:left"> {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count} {else} {$product.cart_quantity-$quantityDisplayed} {/if} </span> {else} {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} <span id="cart_quantity_custom_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}" >{$product.customizationQuantityTotal}</span> {/if} {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} <div id="cart_quantity_button" class="cart_quantity_button"> <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.png" alt="{l s='Add'}" width="23" height="20" /></a> <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}_0_{$product.id_address_delivery|intval}_hidden" /> <input size="2" type="text" autocomplete="off" class="cart_quantity_input" 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}_0_{$product.id_address_delivery|intval}" /> {if $product.minimal_quantity < ($product.cart_quantity-$quantityDisplayed) OR $product.minimal_quantity <= 1} <a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&op=down&token={$token_cart}")}" title="{l s='Subtract'}"> <img src="{$img_dir}icon/quantity_down.png" alt="{l s='Subtract'}" width="23" height="20" /> </a> {else} <a class="cart_quantity_down" style="opacity: 0.5; cursor:default;" href="#" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" title="{l s='You must purchase a minimum of %d of this product.' sprintf=$product.minimal_quantity}"> <img src="{$img_dir}icon/quantity_down.png" width="23" height="20" alt="{l s='Subtract'}" /> </a> {/if} </div> {/if} {/if} {if !isset($noDeleteButton) || !$noDeleteButton} {if (!isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed) > 0 && empty($product.gift)} <a rel="nofollow" class="cart_quantity_delete" id="{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")}"><img src="{$img_dir}icon/delete-cart.gif" alt="{l s='Delete'}" class="icon" /></a> {/if} {/if} </td> <td class="cart_total"> <span class="price" id="total_product_price_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}"> {if !empty($product.gift)} <span class="gift-icon">{l s='Gift!'}</span> {else} {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)} {if !$priceDisplay}{displayPrice price=$product.total_customization_wt}{else}{displayPrice price=$product.total_customization}{/if} {else} {if !$priceDisplay}{displayPrice price=$product.total_wt}{else}{displayPrice price=$product.total}{/if} {/if} {/if} </span> </td> </tr> However I don`t remember doing changes to the file, I have a backup installed on www.themagicalwineexperience.com . No problem showing the amount there. Regards Carsten Regard Carsten Edited October 22, 2013 by cson (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 only for test purposes instead of: <input size="2" type="text" autocomplete="off" class="cart_quantity_input" 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}_0_{$product.id_address_delivery|intval}" /> can you use this: <input size="2" type="text" autocomplete="off" class="cart_quantity_input" value="{$product.cart_quantity}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" /> Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 only for test purposes instead of: <input size="2" type="text" autocomplete="off" class="cart_quantity_input" 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}_0_{$product.id_address_delivery|intval}" /> can you use this: <input size="2" type="text" autocomplete="off" class="cart_quantity_input" value="{$product.cart_quantity}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" /> Thx for the answer. Tried to apply to changes to shopping-cart-product-line.tpl file. It had no affect on showing the amount. Regards Carsten Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 you've got force compilatin turned on? Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 you've got force compilatin turned on? Not sure where to turn it on or off Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 you can do it under advanced parameters > performance tab in your back office Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 (edited) My config. is like on the image above. tried to change the settings, that did not help. Edited October 23, 2013 by cson (see edit history) Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 Solved....checked the field in firebug, it was defined much too wide in the global.css. That`s why the amount was "hidden". Thx for all the help finding a solution. Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 (edited) Found out that the problem is in the global.css (download here) See screendump The search field and the amount uses the same css class, how can I change that? Regards Carsten Edited October 23, 2013 by cson (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 nice catch you can change class name, but don't change id="" field Link to comment Share on other sites More sharing options...
cson Posted October 23, 2013 Author Share Posted October 23, 2013 Thx for the help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now