sscarves Posted December 7, 2009 Share Posted December 7, 2009 Currently, my invoice is displaying all product attributes - and I have at least 10 attributes for both colour and fabric!When the item is in the shopping cart, it displays all the attributes as well.Is there any way to change both the shopping cart and invoice to show only the options picked by a customer? Link to comment Share on other sites More sharing options...
paulnorri Posted December 7, 2009 Share Posted December 7, 2009 I have the same problem, also the drop down list of colours doesn't appear on the first screen it only comes up when you click on details. Link to comment Share on other sites More sharing options...
paulnorri Posted December 7, 2009 Share Posted December 7, 2009 It seems this is the common fix,Goto /themes/prestashop/product.tplopen the file and goto line 35 out of 451You should see the code as below :var displayPrice = {$priceDisplay};change this tovar displayPrice = 1 ; // {$priceDisplay};However I am not using the prestashop theme I’m using etcleanblue and that line of code isn’t there, if anyone can help I can pm the code in product.tpl for this theme Link to comment Share on other sites More sharing options...
paulnorri Posted December 7, 2009 Share Posted December 7, 2009 OK I figured mine out it had to do with setting the default one correctly, if you are nort careful and add all products at once instead of one at a time and set the default for that one choice it will list them all.I still can't understand why the drop down menu is not showing on the first screen see herehttp://www.magickshop.co.uk/20-candles-generalYou will see that you have to click details to get to the choices, if the customer clicks on "add to cart" on this first screen they will always be getting the default colour, am I missing something here, is there a setting that I have over looked. Link to comment Share on other sites More sharing options...
paulnorri Posted December 8, 2009 Share Posted December 8, 2009 Is anyone helping here please? Link to comment Share on other sites More sharing options...
radders Posted December 8, 2009 Share Posted December 8, 2009 Yes you have to remove the 'Add to Cart' option from the tpl file for the product list. Link to comment Share on other sites More sharing options...
paulnorri Posted December 8, 2009 Share Posted December 8, 2009 Ok I'm not using the prestashop template, but have found this code <!-- add to cart form--> <form id="buy_block" action="{$base_dir}cart.php" method="post">Is this the code I need to take out. Just to be clear I want the attributes to show right off .. will this do it please. Link to comment Share on other sites More sharing options...
radders Posted December 8, 2009 Share Posted December 8, 2009 The aim of doing this is to remove the facility for them to add to cart from that page. It doesn't enable the options on the listing page. They only show on the detail page. Would be cool though if you could modify the code on the listing page to include the options too! Link to comment Share on other sites More sharing options...
paulnorri Posted December 8, 2009 Share Posted December 8, 2009 Ok forget that it was the wrong file, here is the code from product-list.tpl could you please tell me what needs to come out [{if isset($products)} <!-- Products list --> {foreach from=$products item=product name=products} {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags:'UTF-8'|truncate:360} {if $product.on_sale}{l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product.reduction_from))}{l s='Price lowered!'} {/if}{convertPrice price=$product.price}{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}{l s='Add to cart'} {else}{l s='Add to cart'} {/if}{l s='View'} {/foreach} <!-- /Products list -->{/if}/quote] Link to comment Share on other sites More sharing options...
paulnorri Posted December 8, 2009 Share Posted December 8, 2009 Oh ok that might help though it would be better than it is at the moment the only other way around it then is to add some text at the end of the product listing to say something like "please click details to see colour choices" its a pain though having to add it on every product that has attributes. Is that the right code I have there Link to comment Share on other sites More sharing options...
paulnorri Posted December 8, 2009 Share Posted December 8, 2009 Ok sorted it and also removed it in featured products, thanks for your help Link to comment Share on other sites More sharing options...
2thepoint Posted February 8, 2010 Share Posted February 8, 2010 It seems this is the common fix,Goto /themes/prestashop/product.tplopen the file and goto line 35 out of 451You should see the code as below :var displayPrice = {$priceDisplay};change this tovar displayPrice = 1 ; // {$priceDisplay};However I am not using the prestashop theme I’m using etcleanblue and that line of code isn’t there, if anyone can help I can pm the code in product.tpl for this theme And how to fix this problem in prestashop 1.2.5 cause i cant find var displayPrice.kind regards 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