Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Center Column Heading - Report a price and About Us

Center Column Heading - Report a price and About Us

Locked

Views: 5,516

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
16 Dec 2008, 11:36 PM
#1
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Center Column Heading - Report a price and About Us

Hi All,

I just noticed on these two pages the headings are rather large. Does anyone know where i can change this? I tried the stylesheet but it diddnt work

Also the contact form is not aligned in FF but is in IE7.

Attached a pic

Thanks

17 Dec 2008, 6:00 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Center Column Heading - Report a price and About Us

Pic is nice....Post a link to this page for better results

17 Dec 2008, 12:31 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Center Column Heading - Report a price and About Us

Those are defined in the associated files with the "H1" tag
Use the dev tool kit to find the file by entering the text that is too large and redefine as "H2" or "H3"

https://www.zen-cart.com/tutorials/index.php?article=39

17 Dec 2008, 1:21 PM
#5
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

kobra:

Those are defined in the associated files with the "H1" tag
Use the dev tool kit to find the file by entering the text that is too large and redefine as "H2" or "H3"

https://www.zen-cart.com/tutorials/index.php?article=39

Ok i have found the file the text is located in for report a price includes/languages/english/report_a_price.php what would i need to do to refer it has H2 or H3?

17 Dec 2008, 1:34 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Center Column Heading - Report a price and About Us

What is it defined as now?

17 Dec 2008, 1:37 PM
#7
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

kobra:

What is it defined as now?

Well the file i found the title to be in through dev kit has it as...

define('HEADING_TITLE', 'Report a Price About ');

17 Dec 2008, 11:23 PM
#8
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

Well the file i found the title to be in through dev kit has it as...

define('HEADING_TITLE', 'Report a Price About ');

gee38l,

Had the same problem. Here is how you correct the the problem.

Look at this file includes/templates/templates_default/templates/tpl_report_a_price_default.php about halfway down look for line 78 look for this

<legend><?php echo STORE_TITLE; ?></legend>

right underneath that place this

<br class="clearBoth" />

and you should line up correctly.

17 Dec 2008, 11:35 PM
#9
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

gee38l,

Had the same problem. Here is how you correct the the problem.

Look at this file includes/templates/templates_default/templates/tpl_report_a_price_default.php about halfway down look for line 78 look for this

<legend><?php echo STORE_TITLE; ?></legend> ``` > > right underneath that place this > ``` <br class="clearBoth" /> ``` > > and you should line up correctly.

Excellent worked perfectlly Thanks!

You wouldnt happen to know how to get the heading size smaller or add a button to the products instead of a sidebox to report a price?

17 Dec 2008, 11:56 PM
#10
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

Excellent worked perfectlly Thanks!

You wouldnt happen to know how to get the heading size smaller or add a button to the products instead of a sidebox to report a price?
What i did was added a picture to the product page.

If you look here: http://dealz-r-us.com/index.php?main_page=product_info&cPath=2_24&products_id=55

You will see the image underneath the product picture that says 100% price match. Is that what your looking to do? It goes right to the report a price page when you click it.

18 Dec 2008, 12:00 AM
#11
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

What i did was added a picture to the product page.

If you look here: http://dealz-r-us.com/index.php?main_page=product_info&cPath=2_24&products_id=55

You will see the image underneath the product picture that says 100% price match. Is that what your looking to do? It goes right to the report a price page when you click it.

Thats exactly what im looking to do ..... Could you please show me how to get this done?

IM still learning php and css

18 Dec 2008, 12:14 AM
#12
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

Thats exactly what im looking to do ..... Could you please show me how to get this done?

IM still learning php and css

First create the image that you want. Than add the image to your folder includes/templates/your_template/buttons/english

Second open up your file includes/templates/your_template/templates/tpl_product_info_display.php and add this code where you want it. Like in mine i added right after this block of code.

<!--bof Main Product Image -->
  <?php
  if (zen_not_null($products_image)) {
  ?>
  <?php
/**
 * display the main product image
 */
  require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
  <?php
  }
?>
  <!--eof Main Product Image-->
```but you can put it wherever you like it to go.

Here is the code you need:

<b><?php echo '<a href="' . zen_href_link(FILENAME_REPORT_A_PRICE, 'products_id=' . $_GET['products_id']) . '">'; ?><img src="includes/templates/your_template/buttons/english/picture name.jpg" alt="Price Match" /></b>

18 Dec 2008, 12:46 AM
#13
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

First create the image that you want. Than add the image to your folder includes/templates/your_template/buttons/english

Second open up your file includes/templates/your_template/templates/tpl_product_info_display.php and add this code where you want it. Like in mine i added right after this block of code.

<!--bof Main Product Image --> <?php if (zen_not_null($products_image)) { ?> <?php /** * display the main product image */ require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?> <?php } ?> <!--eof Main Product Image-->
> 
> Here is the code you need:
> ```
<b><?php echo '<a href="' . zen_href_link(FILENAME_REPORT_A_PRICE, 'products_id=' . $_GET['products_id']) . '">'; ?><img src="includes/templates/your_template/buttons/english/picture name.jpg" alt="Price Match" /></b>
``` don't forget to modify the code in red to reflect where the image is. and that should be it.

Thanks for that i think i have it working.
Just one thing how can i position the price match image inline with the pricing on the left of it?

Actually i would like it below the tell a friend button?
18 Dec 2008, 1:04 AM
#14
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

Thanks for that i think i have it working.
Just one thing how can i position the price match image inline with the pricing on the left of it?

Actually i would like it below the tell a friend button?

Find this code ```

<!--bof Tell a Friend button --> <?php if ($flag_show_product_info_tell_a_friend == 1) { ?> <div id="productTellFriendLink"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div> <?php } ?> <!--eof Tell a Friend button --> ``` and add the code from above inside the div tag right before the closing div tag (</div>) see if that works.
18 Dec 2008, 1:11 AM
#15
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

Find this code ```

<!--bof Tell a Friend button --> <?php if ($flag_show_product_info_tell_a_friend == 1) { ?> <div id="productTellFriendLink"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div> <?php } ?> <!--eof Tell a Friend button --> ``` > and add the code from above inside the div tag right before the closing div tag (</div>) see if that works.

Ok i got it to align below the tell a friend button but i didnt like it so i moved it to next to the add to cart and tell a friend button on the left. Can you please check to see if it was done correctly and looks fine?

18 Dec 2008, 1:22 AM
#16
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

I have jsut tested in ie, firefox and safari all seem to look fine.

The last thing that i still cant do is changing the side of the report a price heading, atm its huge and i dont know where to change the size.

18 Dec 2008, 1:28 AM
#17
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

I have jsut tested in ie, firefox and safari all seem to look fine.

The last thing that i still cant do is changing the side of the report a price heading, atm its huge and i dont know where to change the size.
it looks good:clap: give me a second on the other question!!

18 Dec 2008, 1:40 AM
#18
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

gee38l:

I have jsut tested in ie, firefox and safari all seem to look fine.

The last thing that i still cant do is changing the side of the report a price heading, atm its huge and i dont know where to change the size.
in your stylesheet on line 3 you need to change the font there. is what is see so far, but the problem is when you change the font it also changes the font for your navigation. so you have to play with the font size there to get it looking right im going to see what you need to add to the style sheet so only that font changers. so hold on.

18 Dec 2008, 1:46 AM
#19
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

in your stylesheet on line 3 you need to change the font there. is what is see so far, but the problem is when you change the font it also changes the font for your navigation. so you have to play with the font size there to get it looking right im going to see what you need to add to the style sheet so only that font changers. so hold on.

Try adding this to the end of your style sheet and see if this works

h1 {
    font-size: 10px;}
18 Dec 2008, 1:56 AM
#20
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Center Column Heading - Report a price and About Us

dscott1966:

it looks good:clap: give me a second on the other question!!

Thanks :D