Zen Cart Logo
Forums / Customization from the Admin / Help adding update button within the new product page

Help adding update button within the new product page

Locked

Views: 961

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
7 Sep 2009, 7:44 AM
#1
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Help adding update button within the new product page

If it is possible I would like to add an update button within the add a new product page so I do not have to preview it every time before adding or editing a product.

I tried using the developers toolkit to sniff out some code but I could not quite nail it down.

I tried adding this to collect_info.php on lines 234 and 575 but I know something is not right with it.

<td class="main" align="center"><?php echo zen_draw_hidden_field('products_date_added', (zen_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) .  '  <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_update.gif', IMAGE_UPDATE) .      '  <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>

Would someone please point me in the right direction