Forums / Templates, Stylesheets, Page Layout / move quantity discount box to top of page_info

move quantity discount box to top of page_info

Locked

Started by mektek69 on 7 Apr 2008, 7:58 PM · Views: 1,192

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Apr 2008, 7:58 PM
#1
mektek69 avatar

mektek69

New Zenner

Join Date:
Apr 2008
Posts:
2
Plugin Contributions:
0

move quantity discount box to top of page_info

Just installed zen cart and have been up all night trying to figure it out. So far pretty good except I can't seem to figure out how to get the quantity discount box up to the top of the product description in the page_info.php script. I know it has something to do with the stylesheet but I just don't see it, maybe I'm just to tired.:frusty: Searched the forum and the web for an hour or so but couldn't find anything.
Anybody give me some tips on this?

7 Apr 2008, 8:08 PM
#2
mektek69 avatar

mektek69

New Zenner

Join Date:
Apr 2008
Posts:
2
Plugin Contributions:
0

Re: move quantity discount box to top of page_info

oops meat to say pl_product_info_display.php script. BTW the first thing I did was to move

<!--bof Quantity Discounts table --> <?php if ($products_discount_type != 0) { ?> <?php /** * display the products quantity discount */ require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?> <?php } ?> <!--eof Quantity Discounts table -->

to where I wanted it in the file but nothing changed at all.

12 Apr 2008, 6:12 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: move quantity discount box to top of page_info

Copy includes/templates/template_default/templates/tpl_product_info_display.php to
includes/templates/[custom]/templates/tpl_product_info_display.php (substitute your custom override template name for [custom])

Take this code located near lines 153-164 in includes/templates/[custom]/templates/tpl_product_info_display.php

<!--bof Quantity Discounts table -->
<?php
  if ($products_discount_type != 0) { ?>
<?php
/**
 * display the products quantity discount
 */
 require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
  }
?>
<!--eof Quantity Discounts table -->

and move it up to around line 88 just below

<!--eof free ship icon  -->

and above

 <!--bof Product description -->

see product pages at https://www.aspenshopsonline.com to see how this appears.

From what you said in your post it sounds similar to what you already did. This does work. Perhaps you are not using a custom template? If not, now is the time to start. Check the Wiki for details. Otherwise, you lose all of these changes when you update ZenCart.

If you are using a custom template, did you modify this file in your custom template directory or in template_default?

Ron

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a