catalog/template/[template name]/css/product.css
-dave
-dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
Where In The CSS File Do I place it?david.gilbert wrote: catalog/template/[template name]/css/product.css
-dave
Code: Select all
/* product */
#product .a { = Enlarge Image Text
float: right;
margin: 10px;
font-size: 10px;
text-align: center;
font-family:Arial, Helvetica, sans-serif;
cursor: pointer;
}
#product .b {
margin-bottom: 20px;
}
#account .b, #account .d {
border: 1px solid #EEEEEE;
padding: 5px;
margin-bottom: 10px;
}
#account .a, #account .c {
margin-bottom: 2px;
font-weight: bold;
color: #000000;
display: block;
}
#account a {
text-decoration: none;
}
#account a:hover {
text-decoration: underline;
}
Dave I do apologise, The price is controlled by the heading class in default.css, to make it easy, I've posted the two changes needed to make the price field settings css conntrolled.
in product.css add
then change the product.tpl to
-Dave
in product.css add
Code: Select all
#price {
color: #FF9999
font-size: 10px;
text-align: center;
font-family:Arial, Helvetica, sans-serif;
}
Code: Select all
<link rel="stylesheet" type="text/css" href="catalog/template/default/css/product.css">
<script type="text/javascript" src="catalog/javascript/ajax/jquery.js"></script>
<script type="text/javascript" src="catalog/javascript/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/javascript/thickbox/thickbox.css" />
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div class="heading">
<div class="left"><?php echo $heading_title; ?></div>
<div class="right"><span class="price"><?php echo $price; ?></span></div>
</div>
<div id="product">
<div class="a"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="thickbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a><br />
<?php echo $text_enlarge; ?></div>
<div class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
<?php echo $description; ?>
<?php if ($options) { ?>
<p><b><?php echo $text_options; ?></b></p>
<table class="b">
<?php foreach ($options as $option) { ?>
<tr>
<td><?php echo $option['name']; ?>:</td>
<td><select name="option[<?php echo $option['option_id']; ?>]">
<?php foreach ($option['value'] as $option_value) { ?>
<option value="<?php echo $option_value['product_to_option_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
<?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
<?php } ?>
</option>
<?php } ?>
</select></td>
</tr>
<?php } ?>
</table>
<?php } ?>
<?php if ($images) { ?>
<div class="heading"><?php echo $text_images; ?></div>
<?php foreach ($images as $image) { ?>
<div class="images"><a href="<?php echo $image['popup']; ?>" title="<?php echo $image['title']; ?>" class="thickbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $image['title']; ?>" alt="<?php echo $image['title']; ?>" /></a><br />
<?php echo $image['title']; ?><br />
<?php echo $text_enlarge; ?></div>
<?php } ?>
<?php } ?>
</div>
<div class="buttons">
<table>
<tr>
<td align="left"><input type="button" value="<?php echo $button_reviews; ?>" onclick="location='<?php echo $review; ?>'" /></td>
<td align="right"><input type="submit" value="<?php echo $button_add_to_cart; ?>" /></td>
</tr>
</table>
</div>
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
</form>
Professional Website Services - http://www.davidmgilbert.com/
Active Member
in the posted code, change
to
Code: Select all
<div class="right"><span class="price"><?php echo $price; ?></span></div>
Code: Select all
<div class="right"><span name="price"><?php echo $price; ?></span></div>
it looks the same?bruce wrote: in the posted code, changetoCode: Select all
<div class="right"><span class="price"><?php echo $price; ?></span></div>
Code: Select all
<div class="right"><span name="price"><?php echo $price; ?></span></div>
I just noticed the error I made. I guess I should try and get some sleep lol.
Try changing
to
-Dave
Try changing
to
-Dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
what is your websites url? If you would like to PM me with your FTP details, and the style you would like the price, I'll do it for you
-Dave
-Dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
Who is online
Users browsing this forum: No registered users and 3 guests