bedengler Posted April 27, 2013 Share Posted April 27, 2013 (edited) Hi, we purchased a theme and installed it over 1.5.4.0 on a new shop. We adapted everything and it went everything ok so far, except some issues: try to put some articles in the cart: www.3faltapo.at/2013 First of all it should show the price and a button to delete this item in the blockcart. But you can see only the name. If you reload the entire page, the price and delete button show up, BUT there are two lines for each product, one with price and delete button and one with only the name of the product. We would like to show only the line with price & delete button. I tried adapting the blockcart.tpl of the theme, but I can't figure it out. Could you give me some advice how I could get this fixed? And the second issue: the shipping costs do not update correctly in the blockcart, so we'd like to remove them completely from the blockcart. Just disabling them isn't a solution, because they sometimes get added to the total price. They shouldn't be added to the total price until you checkout. THX! Edited April 27, 2013 by bedengler (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted April 28, 2013 Share Posted April 28, 2013 Hi Bedengler, Are you sure the Theme is 1.5.x compatible? There was a thread about this not too long ago, and there the problem was the compatibility of the theme. So: 1) check compatibility with provider 2) if not compatible, check with your theme provider if there's an update 3) if that doesn't work, check if the solution here works for you: http://www.prestashop.com/forums/topic/206874-solved-duplicate-items-in-cart-error/ Hope that helps, Pascal Link to comment Share on other sites More sharing options...
PascalVG Posted April 28, 2013 Share Posted April 28, 2013 Check if this solution fixes the shipping cost calculation as well. if not, I took out the shipping costs from our cart as well, using this code (1.6.4.2 code, but must be similar). Add the red code (insert after/wrap it around some existing code (shown in black)) <p id="cart-prices"> <span>{l s='Total products' mod='blockcart'}</span> <span id="cart_block_total" class="price ajax_cart_total">{$productTotal}</span> {if $page_name == 'order'} <div> <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> </div> {/if} {if $show_wrapping} {assign var='blockcart_cart_flag' value='Cart::ONLY_WRAPPING'|constant} <span>{l s='Wrapping' mod='blockcart'}</span> <span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost"> {if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}{/if}</span> <br/> {/if} {if $show_tax && isset($tax_cost)} <span>{l s='Tax' mod='blockcart'}</span> <span id="cart_block_tax_cost" class="price ajax_cart_tax_cost">{$tax_cost}</span> <br/> {/if} {if $page_name == 'order'} <span>{l s='Total' mod='blockcart'}</span> <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> {/if} </p> {if $use_taxes && $display_tax_label == 1 && $show_tax} Hope this helps, Pascal Link to comment Share on other sites More sharing options...
bedengler Posted April 29, 2013 Author Share Posted April 29, 2013 Hi Pascal, thanks for your advice! It solved the problem. I just followed your link http://www.prestashop.com/forums/topic/206874-solved-duplicate-items-in-cart-error/ What I did is, I didn't rename the whole folder in the theme's module directory, but I started renaming each file and checking if it helped each time I changed a filename. In the end I renamed blockcart.tpl and blockcart-json.tpl to anything (I added "...old", so "blockcart.tpl" became "blockcart.tpl.old"). Now I only have the "ajax-cart.js", the "blockcart.css" and the translation-file "de.php" in the folder. Since I did that the shipping calculation works fine, so I don't have to deactivate shipping. And the double entries-problem is also solved now! Thanks for your help! Bernie Link to comment Share on other sites More sharing options...
bedengler Posted April 29, 2013 Author Share Posted April 29, 2013 How can I mark this post as solved? Can any admin please do that and / or tell me how I can get this done? Thx, Bernie Link to comment Share on other sites More sharing options...
PascalVG Posted April 29, 2013 Share Posted April 29, 2013 Hi Bernie, Glad it's solved :-) To mark it solved, see my footer text :-) (I'll let you try it...) Pascal 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