I want to move the Add to Cart box (or other section) to another place on my product page.


1. You have a page you want to change the structure of.
2. Open the page in your browser.
3. Choose View Source from your browser menu.
4. Scroll down to the section you're bothered about moving. In the case of the add-to-cart button, you'll see this:

5. You need to locate the section that starts with and ends with these tags:
<!--bof Add to Cart Box -->

<div id="cartAdd">
Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="1" /><input type="image" src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " />
</div>


<!--eof Add to Cart Box-->

Note the <!-- bof Add to Cart Box --> ('bof' is an abbreviation for "beginning of file") and corresponding end tag: <!-- eof Add to Cart Box-->



6. Simply relocate that section up or down in the file to the place where you want it to appear:
Go find those same tags in the template file (if you search using the Developers Toolkit, you'll find that it's tpl_product_info_display.php) and move that entire section up or down in the file as you desire, noting to NOT put anything between any other existing <bof>...<eof> markers.

ie: instead of this:
<bof product description>
<eof product description>
<bof add to cart>
<eof add to cart>
....
maybe you want something like this:
<bof add to cart>
<eof add to cart>
<bof product description>
<eof product description>

Do similarly with other sections as desired.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I find out what version of Zen Cart or PHP or MySQL I'm using?

To find out what version of Zen Cart or PHP or MySQL you are currently using, you can simply go...

Getting a BLANK PAGE? Here's the answer ...

If you're getting a blank page when trying to browse to a certain page on your store, or after...

What's New in the Upcoming v2.0 release?

Database Abstraction Layer and Sql CacheThe abstraction layer has been re-factored to include a...

Image Preparation - How-to

I've seen several posts where people obviously aren't quite sure about the best way to set up...

Some tips to modify stylesheet

1. Download Web Developer extension for FireFox here2. Install & restart FireFox. You should...