Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Attribute box is too low on the page

Attribute box is too low on the page

Locked

Views: 1,376

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Sep 2006, 3:10 AM
#1
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Attribute box is too low on the page

http://www.palam.org/bookstore/index.php?main_page=document_product_info&cPath=1&products_id=3

The attribute box is too low on the page and I do not see where I can change that.

Do I have to go into the code on the document_product template and edit that or is there somewhere in the control panel that will take care of it.

Thanks,

Carol

11 Sep 2006, 7:59 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Attribute box is too low on the page

Try removing or commenting out the "clearBoth" in the tpl_modules_attributes.php that is here (in red)

<div class="wrapperAttribsOptions">
<h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
<div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
<br class="clearBoth" />
</div>

If you want it closer to the model # line or decide to remove the model # via the admin this same item in the tpl_product_info_display.php will bring it up some more.

<!--bof Product details list  -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
  }
?>
<!--eof Product details list -->

As should always be, do this to a copy that is then placed in your "palam" template override folder.

12 Sep 2006, 1:52 PM
#3
pyrobri avatar

pyrobri

New Zenner

Join Date:
Feb 2006
Location:
UK
Posts:
41
Plugin Contributions:
0

Re: Attribute box is too low on the page

you can move anything to anywhere within the template.
Make a copy of the tpl_product_info_display.php and put it in your template override directory.
In that file you could then move the div for the attributes up in the page. Justy grab the following code:

<!--bof Attributes Module --> <?php if ($pr_attr->fields['total'] > 0) { ?> <?php /** * display the product atributes */ require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?> <?php } ?> <!--eof Attributes Module -->

and move it elsewhere. e.g. right after <!--eof Product Description -->
If you put it there it will be the very next thing displayed after the item description but before the add to cart box.

30 Sep 2006, 5:31 PM
#4
wiregrass2 avatar

wiregrass2

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Re: Attribute box is too low on the page

Where can I find these files in the latest Zen release?
shop/???/????/????

30 Sep 2006, 5:52 PM
#5
kobra avatar

kobra

Black Belt

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

Re: Attribute box is too low on the page

shop/includes/templates/template_default/???php

Make a copy and place in your template folders. Use the override system..