Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / ADD TO CART BUTTON , from bottom add it to the top

ADD TO CART BUTTON , from bottom add it to the top

Locked

Views: 1,253

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Aug 2008, 9:27 AM
#1
bobi avatar

bobi

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

ADD TO CART BUTTON , from bottom add it to the top

hello to all

as title says , im trying to add my ADD TO CART BUTTON to the top of the product description.

Now it is at the bottom and is very anoing that you have to scroll down a hole text
to find the ADD TO CART BUTTON ,

Is it possible to add this to the top of every product , so it will be very easy for the costumer to shop what he needs without scrolling down so much.

the best solution will have been to have it both at TOP and BOTTOM
this way costumer have the choise to press ADD TO CART BUTTON without reading the description, or he can read the description but still find the
ADD TO CART BUTTON at the bottom

can some one help with this please
i am using defoult template of the Zen Cart

cheers

bobi

4 Aug 2008, 2:35 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: ADD TO CART BUTTON , from bottom add it to the top

You can make changes to the Product Info Display by shifting the <!--BOF... --> <!---EOF... --> sections around.

You need to ftp a copy of this file to your local computer:

includes/templates/template_default/templates/tpl_product_info_display.php

... and open it for editing using a good plain text editor.

Then, find the bit of code that starts:-

<!--bof Add to Cart Box -->
(some code here)
<!--eof Add to Cart Box -->

Higlight that section of code, then CUT (ctrl+x) it to your clipboard.

Scroll up the file till you find:

<!--bof Main Product Image -->
(some code here)
<!--eof Main Product Image -->

... and PASTE (ctrl+v) the other code underneath it, so you get:

<!--bof Main Product Image -->
(some code here)
<!--eof Main Product Image -->

<!--bof Add to Cart Box -->
(some code here)
<!--eof Add to Cart Box -->

SAVE the file as tpl_product_info_display.php on your local machine, then FTP it to:

includes/templates/YOUR-CUSTOM-TEMPLATE/templates/tpl_product_info_display.php

(where YOUR-CUSTOM-TEMPLATE is the name of the template you are using in your ZC installation - in a default install, it's classic).

It is NOT a good idea to have this section duplicated on two parts of the page, if you are providing the user with the option to change the cart quantity at this stage, as only ONE value can apply. What may happen is that the user keys in a value at the TOP, then scrolls down and applies a second value in the bottom one. ZC, will probably recognise the value entered only at the TOP - thus confusing the customer.

6 Aug 2008, 7:50 PM
#3
bobi avatar

bobi

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

Re: ADD TO CART BUTTON , from bottom add it to the top

yes thank you

i acctualy found out preety quick about it , and now i have managed to make the cnages to mu site

can have a look if some needs
https://www.x-sat.no

not a thechy with php here, but trying to find my way round things
untill my mate that does this work for me is back from Thailand

cheers

bobi