I have this custom button code on my featured products module inspired from this post:
http://www.zen-cart.com/forum/showthread.php?t=105757
I only have the featured products module visible on my front page (index) to keep things simple.Code:$lc_button2= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($featured_products->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $featured_products->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($featured_products->fields['products_id'])) . '" maxlength="6" size="1" /><br />' . zen_draw_hidden_field('products_id', $featured_products->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';
I'm simply trying to determine how to redirect the user back to the home page instead of to the product info page (this is what the code does now).
By altering this code:
zen_href_link(zen_get_info_page($featured_products->fields['products_id']),
I've gotten these results:
zen_href_link(FILENAME_DEFINE_MAIN_PAGE, - page not found
zen_href_link(FILENAME_DEFAULT, - goes to category page
zen_href_link(FILENAME_FEATURED, - page not found
zen_href_link(FILENAME_FEATURED_PRODUCTS, - takes them to featured products page
zen_href_link(FILENAME_PRODUCTS_ALL, - takes them to the all products page
But I can't find a code in filenames.php that will just send the user back to the home page (index.php). Any ideas on what I can put in here to get this effect? Do I need to define a new link/page in filenames.php?
Any suggestions greatly appreciated.



