I have a few unique products that required custom attributes that I couldn't achieve with the standard admin attributes tools.
The solution I'm working on requires the add-to-cart button to point to a form processor I'm writing.
I have it finished enough to test, but it's failing every time. Here is the basic flow
Users submits add to cart button on my custom form
POST is sent to my custom form processor
the form processor works with the data
then POSTS to form to /path-to-folder/zencart/index.php?main_page=product_info&number_of_uploads=0&action=add_product& amp;products_id=#
zen-cart is rejecting the order and I can't figure out why.
The form fields I am submitting seem to be identical to what a standard product page would contain
Array
(
[cart_quantity] => 1
[products_id] => 2
[id] => Array
(
[5] => #
[txt_6] => text
[txt_7] => text
[4] => #
[2] => #
[txt_3] => #
[txt_8] => text
[9] => Array
(
[20] => 20
[22] => 22
[23] => 23
)
)
)
Submitted as multipart data
Any ideas on what I am lacking that zen-cart is expecting in that post?
Thanks!




