sehgalanurag Posted October 23, 2013 Share Posted October 23, 2013 Hello Everyone, I am using the PS version 1.5.5. When we offer discount on the Home featured products, it just shows the new discounted price by default. I want to modify it and I need to show the original price(with a cut over it) as well as the discounted price on home featured products same as that on products page. I found a related topic here, http://www.prestashop.com/forums/topic/135636-adding-discount-price-to-home-featured-products/. Although it is mentioned in this topic on what is to be modified in the homefeatured.tpl file but no detailed mention on what is to be done in the css file. It would be great if someone could help me with this, I do not know any technical languages, created a store with the help of this community only . It might be very simple but I still need help. Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 it's described what to do in: http://www.prestashop.com/forums/topic/135636-adding-discount-price-to-home-featured-products/?do=findComment&comment=657847 css styles depends on you and your needs please specify what you exactly expect. have you followed steps there? you added code mentioned in post #4 ? Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 24, 2013 Author Share Posted October 24, 2013 Hi, Yes I did exactly as mentioned in post #4, I added that code both ways, above and below the given code, with force compile on, but there is no change whatsoever. Here is the link to my website, www.saadihatti.com. First two products have special prices assigned but only discounted one is visible even after adding that code in homefeatured.tpl. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 ok, so what file you changed? /modules/homefeatured/homefeatured.tpl ? Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 24, 2013 Author Share Posted October 24, 2013 Exactly, I am attaching a screenshot of the modification that was done, from line 46 to 49 I added that code. Did it in notepad++ and uploaded the file at that very location. Attaching a text file too along. homefeatured.txt Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 ok so make sure that this file doesnt exists in theme directory: themes/YOUR_THEME/modules/homefeatured/homefeatured.tpl if it exists there - you need to change this file Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 ok so make sure that this file doesnt exists in theme directory: themes/YOUR_THEME/modules/homefeatured/homefeatured.tpl if it exists there - you need to change this file Hi, homefeatured.tpl does exist in this folder too mentioned by you, I changed it here also but still no change is reflecting. I used your tutorial(http://mypresta.eu/en/art/developer/prestashop-quantity-field-featured-products-module.html) to add quantity field on home featured products, but still no change. Should I delete this file or the whole homefeatured module folder from theme directory? Any changes in the homefeatured.tpl are not reflecting. I modified this file just to have add to cart button using this(http://www.prestashop.com/forums/topic/179203-solved-add-to-cart-button-not-working-in-featured-products/page-2?do=findComment&comment=1037567). If I had seen your tutorial earlier, I would have just commented out the last lines in .css file to get the 'add to cart' button. but after this modification, any further change are not reflecting. Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 so if you changed .tpl files - and changes doesnt appear - it looks like problems with cache. are you able to share url to your website? Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 www.saadihatti.com Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 You mean sharing url of website through social networking? I am unable to use 'Share on Facebook" properly, image is not displayed Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 hello this is what i see there: increase height param in: #featured-products_block_center li { margin-right: 10px; padding: 10px 0; width: 126px; height: 275px; } to: height: 310px; effect: Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 Hello, I am not sure why I was not able to see that, but now I do and after increasing the height it is perfect and I am able to see the price, original and discounted, and quantity field is also there. Thanks you so much. Can I add a 'cut' over the original price? What do I need to modify for that? Also after adding the quantity field, to enable that 'add to cart' animation effect, you asked to modify a line, var $element = $(callerElement).parent().parent().find('a.product_image img,a.product_img_link img'); Where can I locate this line? I just need to add one more 'parent()' in it? Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 this is a part of ajax-cart.js file located in /modules/blockcart/ directory Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 this is a part of ajax-cart.js file located in /modules/blockcart/ directory Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 problem solved? also with animation? Link to comment Share on other sites More sharing options...
sehgalanurag Posted October 25, 2013 Author Share Posted October 25, 2013 problem solved? also with animation? Yes Its just the cut mark over the Original price that is pending.. animation working, quantity field OK, and both original and discounted price is displayed. Link to comment Share on other sites More sharing options...
walkout Posted February 5, 2014 Share Posted February 5, 2014 Hmm not sure if i got it right....i could see the discounted price appearing at top , but not sure what to do about the ajax price update with discount ...dont think thats changing for combination products. Any Suggestions? Link to comment Share on other sites More sharing options...
vekia Posted February 6, 2014 Share Posted February 6, 2014 but not sure what to do about the ajax price update with discount ...dont think thats changing for combination products. it's homefeatured module, there is no combinations etc. 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