Post by jzm » Mon Jan 14, 2008 11:40 am

Is there a .css file that I can change to enable me to have the product font a certain text and font as set by default as I don't want to have to change it to that for each product

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am

Post by david.gilbert » Mon Jan 14, 2008 9:04 pm

catalog/template/[template name]/css/product.css

-dave

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by jzm » Tue Jan 15, 2008 4:41 am

david.gilbert wrote: catalog/template/[template name]/css/product.css

-dave
Where In The CSS File Do I place it?

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;
}

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am

Post by david.gilbert » Tue Jan 15, 2008 12:22 pm

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

Code: Select all

#price {               
	color: #FF9999
	font-size: 10px;
	text-align: center;
	font-family:Arial, Helvetica, sans-serif;

}
then change the product.tpl to

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>

-Dave

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by jzm » Tue Jan 15, 2008 12:45 pm

Hello,

I Have done that but when I copy and paste the "product" text ect it is still showing the copied style when saved and not the of the css file. 

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am

Post by bruce » Tue Jan 15, 2008 1:13 pm

in the posted code, change

Code: Select all

<div class="right"><span class="price"><?php echo $price; ?></span></div>
to

Code: Select all

<div class="right"><span name="price"><?php echo $price; ?></span></div>

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by jzm » Tue Jan 15, 2008 1:17 pm

bruce wrote: in the posted code, change

Code: Select all

<div class="right"><span class="price"><?php echo $price; ?></span></div>
to

Code: Select all

<div class="right"><span name="price"><?php echo $price; ?></span></div>
it looks the same?

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am

Post by david.gilbert » Tue Jan 15, 2008 2:14 pm

I just noticed the error I made. I guess I should try and get some sleep lol.

Try changing




to





-Dave

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by bruce » Tue Jan 15, 2008 7:10 pm

heh heh... you and me both

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by jzm » Wed Jan 16, 2008 1:39 am

I have done that but its still doing the same

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am

Post by david.gilbert » Wed Jan 16, 2008 9:59 am

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

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia

Post by jzm » Wed Jan 16, 2008 10:14 am

david.gilbert wrote: 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
PM Done

jzm
New member

Posts

Joined
Mon Jan 14, 2008 11:38 am
Who is online

Users browsing this forum: No registered users and 3 guests