Forums / Templates, Stylesheets, Page Layout / Making Changes to product page

Making Changes to product page

Locked

Views: 1,706

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Mar 2009, 2:29 PM
#1
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Making Changes to product page

I want to add a few <br> <br> to make my product page "breath" a bit.

Can someone tell me which file to modify and I can take it from there!!

  • above previous/next
  • after previous/next
  • after manufacturer name
  • above "this product will be in stock" text
4 Mar 2009, 2:32 PM
#2
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

Also.....

"This product will be in stock....."

I want to change the wording of this text.

Please direct me to the correct file to modify.

5 Mar 2009, 3:54 AM
#3
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

Anyone? What file do I put the extra <br><br> in???

5 Mar 2009, 8:08 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Making Changes to product page

"This product will be in stock....."
I want to change the wording of this text.
Use the developers tool kit
https://www.zen-cart.com/tutorials/index.php?article=39
https://www.zen-cart.com/tutorials/index.php?article=38
What file do I put the extra <br><br> in???
The above is html and this is not an html cart - it is php....
It is also css driven so most things can be spaced in your stylesheet.css.....
A link to your site would have generated better response

Zen-Venom Get Bitten

5 Mar 2009, 2:28 PM
#5
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

kobra:

Use the developers tool kit
https://www.zen-cart.com/tutorials/index.php?article=39
https://www.zen-cart.com/tutorials/index.php?article=38

The above is html and this is not an html cart - it is php....
It is also css driven so most things can be spaced in your stylesheet.css.....
A link to your site would have generated better response

Thank you for the reply. I used to the dev tool kit to make that one change. Still searching which file for the product page so I can add the extra spacing.

5 Mar 2009, 3:10 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Making Changes to product page

While it is possible to change the spacing by adding <br /> tags in the code, that is a rather coarse method.

You will get much finer control over the page appearance by editing your stylesheet
(/includes/templates/your_template/css/stylesheet.css), and it will be easier to adjust.

For example, find in your stylesheet.navNextPrevList { display:inline; white-space:nowrap; padding:0 1em; list-style-type:none; position:relative; }and add below it```
.navNextPrevWrapper {margin-bottom: 1.5em;}

.navNextPrevCounter {margin-bottom: 1.5em;}


Get Firefox and its Web Developer extension. This will help you to find the ids/classes to apply styling to, and let you test-edit your stylesheet and see the results instantly.
6 Mar 2009, 7:50 AM
#7
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

gjh42:

While it is possible to change the spacing by adding <br /> tags in the code, that is a rather coarse method.

You will get much finer control over the page appearance by editing your stylesheet
(/includes/templates/your_template/css/stylesheet.css), and it will be easier to adjust.

For example, find in your stylesheet.navNextPrevList { display:inline; white-space:nowrap; padding:0 1em; list-style-type:none; position:relative; }and add below it```
.navNextPrevWrapper {margin-bottom: 1.5em;}

.navNextPrevCounter {margin-bottom: 1.5em;}

> 
> Get Firefox and its Web Developer extension. This will help you to find the ids/classes to apply styling to, and let you test-edit your stylesheet and see the results instantly.

Thank you for the detailed reply!

I added that and it worked.

Now I am trying to find out where I add similar code to increase the spacing also shown in my diagram (between manufacture, write review, other text).
6 Mar 2009, 8:03 AM
#8
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

Found it:

margin-bottom:10px;

6 Mar 2009, 8:07 AM
#9
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

Just want to add some spacing after:

"this product will be in stock..."

Cant figure out that one yet...

6 Mar 2009, 8:10 AM
#10
kobra avatar

kobra

Black Belt

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

Re: Making Changes to product page

Just want to add some spacing after:

"this product will be in stock..."
Provide a link to this page

Zen-Venom Get Bitten

6 Mar 2009, 8:22 AM
#11
goninja avatar

goninja

New Zenner

Join Date:
Jan 2009
Posts:
71
Plugin Contributions:
0

Re: Making Changes to product page

kobra:

Provide a link to this page

I added the spacing in the form of <br /><br /> in tpl_product_info_display.php, seems to work ok!

<!--bof Product date added/available-->
<?php
  if ($products_date_available > date('Y-m-d H:i:s')) {
    if ($flag_show_product_info_date_available == 1) {
?>
  <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long

($products_date_available)); ?><br /><br /></p>
<?php
    }
  } else {
    if ($flag_show_product_info_date_added == 1) {
?>
      <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long

($products_date_added)); ?></p>
<?php
    } // $flag_show_product_info_date_added
  }
?>
<!--eof Product date added/available -->