I tried hard coding a form into my website but I was greeted with a 404 error. A google search led me to the knowledge that I wasn't passing a security token and I needed to use zen_draw_form()
I am using zen_draw_form to create an add to cart button for a custom "pack" of items on our site. Searching for zen_draw_form syntax has taken a while. I finally found to look in html_output.php for the syntax and did.
I have tried:
What am I doing wrong? What do I need to do? I need the products id to be variable as well. so it needs to be something like...Code:zen_draw_form(); //hoping for at least a default button? - nothing zen_draw_form('cart_quantity', 'index.php?main_page=product_info&cPath=24&products_id=876&action=add_product', 'post'); //nothing again. zen_draw_form('cart_quantity', 'index.php?main_page=product_info&cPath=24&products_id=876&action=add_product', 'post', 'products_id="876"'); //nothing again! zen_draw_form('warranty', zen_href_link(FILENAME_WARRANTY, '', 'NONSSL'), 'post'); //from zen cart essentials. Displays nothing.
But of course, that doesn't work either.Code:$products_id = 1 ; zen_draw_form('cart_quantity', 'index.php?main_page=product_info&cPath=24&products_id=' . $products_id . '&action=add_product', 'post');
=[


Reply With Quote

