![]() |
How to not show price for featured products on home page
Hi. I do not want to show the price for featured products on the home page. How do I do this?
Thanks |
The the featured products template is actually the products template. Are you using a multi-column layout for both the products and featured products?
|
yes I am. It is a 3 column format. I thought it was a separate file but could find anything. Is it possible? If not no problem as its not that bad.
Thanks |
Maybe (I'm still learning this, so my logic may be fuzzy):
1. duplicate your products.tpl template, i.e. "products-main.tpl" 2. in /customer/main/featured.tpl, change: {include file="customer/main/products.tpl" products=$f_products featured="Y"} to {include file="customer/main/products-main.tpl" products=$f_products featured="Y"} 3. Edit products-main.tpl to not display prices Could this work? Will this get in the way of anything? I am only a week into this journey, so there are many things (most things?) that I don't fully understand - but I am getting the hang of template editing and the 4D chess game that we're playing.... OR -- is this only a 4.0.x thing -- I just realized that you are using 4.1 -- hmm... sorry. |
Yes, that is what I would suggest :) Should be similar for 4.1
|
Re: How to not show price for featured products on home page
I got this to work: created products_featured.tpl so the featured product show different info than regular.
BUT, under General Settings, Appearance Options and "Display products list in multiple columns (1-3) (leave empty to use standard format):" I have it empty for standard format, which gives me one column of featured products. If I change this to 2 and keep "Display only featured products list in multicolumn format:" checked, I get two column of featured products (cool!), but I loose the changes I made in products_featured.tpl (uncool!). Apparently, selecting multiple columns somehow changes which featured.tpl it references? |
Re: How to not show price for featured products on home page
I'm getting close. I figured out that when choosing multi-column, x-cart uses products_t.tpl instead of products.tpl. So, how do you customize the look of products in the Featured Products when you have multi-columns? Does x-cart not use featured.tpl when using multi-column layout?
Below is my featured.tpl Quote:
|
Re: How to not show price for featured products on home page
Without completely knowing what else products_t.tpl controls, couldn't you just {*comment out*} this:
skin1/customer/main/products_t.tpl Code:
{*{if $products[product].taxed_price ne 0} |
Re: How to not show price for featured products on home page
That did it, thanks again ranger! (can I call you ranger?)
|
Re: How to not show price for featured products on home page
I would just keep an eye out to make sure you're not "loosing" the price somewhere else.
Quote:
|
Re: How to not show price for featured products on home page
commenting it out like you did removes the prices from the category pages as well.
|
Re: How to not show price for featured products on home page
|
All times are GMT -8. The time now is 10:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.