bryce11 Posted July 8, 2003 Share Posted July 8, 2003 I am developing a highly customized implementation of osCommerce. My client distributes audio lectures available in several formats: CD, cassette, mp3. For each lecture, I'm using the Product Attribute feature to list the item in various formats. Rather than use the drop down list to select the attribute, however, I want to use an image that will insert the item in that particular format into the shopping cart whenever the image is clicked. I've tried to create an individual form for each available format, mimicking the tep_draw_form() function and using a tep_image_submit() function for the icons. This *almost* works, as I can see that it loads product_info.php?products_id=234234234&action=add_product (or something like that) and then redirects to shopping_cart.php... but the item is not added to the cart. The cart is still empty. Shouldn't this, in theory, work? Is the problem with the shopping_cart.php script or with the form? Can I include the name attribute of "id[6]" in the input of type=image, or would it be better to use a hidden field with the appropriate value? Thanks, Bryce Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.