walidon Posted July 16, 2014 Share Posted July 16, 2014 (edited) Hi all, I want to show the price of products in homepage! but the theme I am using "Boutique" has the posibility to show the name and price of product only when you hover over the picture here is the link www.chabaane.de what I want is that the names and prices are shown directly...any ideas please? thanks Edited July 16, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
Ittu Posted July 16, 2014 Share Posted July 16, 2014 Hi, Open your cshometab1 module in your boutiques theme. And edit cshometab1.tpl file. Find "<div class="cs_newarrival_p product-1">" and put this code <h3><a href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h3> <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if $priceDisplay && $product.reduction} {if $product.specific_prices} <span class="price-discount"> {convertPrice price=$product.price_without_reduction} </span> {/if} {/if} <span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} </div> under <a href="{$product.link}" title="" class="product_image outside"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'p_slider_home')}" alt="{$product.name|escape:html:'UTF-8'}" /> </a> Your issue will be resolved Link to comment Share on other sites More sharing options...
Ittu Posted July 16, 2014 Share Posted July 16, 2014 for more help please add me on skype : ittu.serk Link to comment Share on other sites More sharing options...
walidon Posted July 16, 2014 Author Share Posted July 16, 2014 (edited) thank you very much, that worked but... now there is the issue that the second row is not showing correctly and that the prices are hidden! i resized but it is still the same? can you give a solution for why only one row is showing the prices? Edited July 16, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
walidon Posted July 16, 2014 Author Share Posted July 16, 2014 I found the problem:) you have to find <div class="cs_newarrival_p product-2"> too and apply the same procedure. as long as you have rows, apply that to them... Link to comment Share on other sites More sharing options...
walidon Posted August 25, 2014 Author Share Posted August 25, 2014 (edited) Hi I need your help again! www.chabaane.de now if i want to apply discount, only the price show not like showing the old price barred and then the new price? it shows only the new price (if the discount is 50%, then it shows only half the price) so customers don't know that there is a price! this is of course only in the home page with the code that you provided and i applied it! or can you tell me how to do to make things better! P.S: I added the -50% but that is not so clear! i need the old price (barred) then the new reduced one like in the other examples in the site! plus is it possible to add the image of the -50% like in the other articles as well? thank you... Edited August 26, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 27, 2014 Share Posted August 27, 2014 You have to edit the template and add something like {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} Link to comment Share on other sites More sharing options...
walidon Posted August 27, 2014 Author Share Posted August 27, 2014 which template? here is the website www.chabaane.de you can see that everywhere it is ok but the hometab! so I think that it is something to do with that! can I attach to you the hometab tpl file as well as the css? Link to comment Share on other sites More sharing options...
NemoPS Posted August 29, 2014 Share Posted August 29, 2014 Actually I can see the -50% now, you solved it? Link to comment Share on other sites More sharing options...
walidon Posted August 29, 2014 Author Share Posted August 29, 2014 yes the -50% is there but it is confusing as whether the price is the one with the reduction or not! what i want is the old price with a line on it (like crossed) and then the new reduced price, then we don't need the -50%? to see what i mean click on the quickview on any article on homepage and you will find that! thank you in advance:) Link to comment Share on other sites More sharing options...
NemoPS Posted August 30, 2014 Share Posted August 30, 2014 Does your template use an override for blocknewproducts_home ? Because the default one is supposed to use the normal product list Link to comment Share on other sites More sharing options...
walidon Posted August 30, 2014 Author Share Posted August 30, 2014 and how or where can I find that? here is the tpl file of the hometab http://www.chaafi.com/up/do.php?filename=140938939838161.rar Link to comment Share on other sites More sharing options...
NemoPS Posted September 1, 2014 Share Posted September 1, 2014 just check if, in your theme's folder /modules/blocknewproducts, you have a tpl file named blocknewproducts_home Link to comment Share on other sites More sharing options...
walidon Posted September 1, 2014 Author Share Posted September 1, 2014 (edited) Ah:) sorry for my misunderstanding:)! in the theme folder there is the folder blocknewproducts but there there is only the folder translation. but in modules (in the root of the site) there is only blocknewproducts.tpl my template is boutique and i can create as man hometab as i like, but the new tab is by default there:) i haven't tried to create another tab yet;) update: i added a new tab but it is the samething! it is the hometab module of the them which controls the thing! so it is there! Edited September 1, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts