Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / anyone know the php code for the 'add to cart' button

anyone know the php code for the 'add to cart' button

Locked

Views: 1,673

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Nov 2007, 2:50 PM
#1
what44 avatar

what44

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

anyone know the php code for the 'add to cart' button

so i can add it in on another page.

thanks

2 Nov 2007, 3:46 PM
#2
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: anyone know the php code for the 'add to cart' button

This perhaps:

<?php
echo $display_button;
?>

..but wait for someone else to confirm.

2 Nov 2007, 4:00 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: anyone know the php code for the 'add to cart' button

The button display needs to occur inside a <form> or it will be just a pretty graphic that does nothing useful. Look at a file that currently uses the add to cart for an example of how to do that, like tpl_product_info_display.php.