Page 1 of 1
Conditional Template change help
Posted: Sat Feb 27, 2010 9:06 pm
by ameisez
Hi,
I want to remove the cart box under Product info and increase the text size of the product info in some category.
How can I do that?
Thanks.
Here's the screen to show what I wanted to do.
screen_remove_box.jpg (22.96 KiB) Viewed 986 times
Re: Conditional Template change help
Posted: Sun Feb 28, 2010 3:10 am
by bebaspromo
Hi,
to remove it, open your product.tpl in
catalog/view/theme/YOURTHEME/template/product/ folder
delete :
Code: Select all
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px;"><?php echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="1" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a></div>
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
increasing the text size, simple way is put <span> tag, e.g text "Price:"
find :
<b><?php echo $text_price; ?></b>
put
<span style="font-size: 16px;">
<b><?php echo $text_price; ?></b></span>
maybe someone have better idea?
Re: Conditional Template change help
Posted: Tue Mar 02, 2010 12:43 am
by thanaa
maybe someone have better idea?
The removal sounds fine, i'd suggest you use css to increase the font sizes instead of inline styling though.