Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating product pages outside of admin


jonesevan007

Recommended Posts

Posted

Hey,

 

I wanted to know if it was possible to use the same variables and arrays that a product sends via cart_quantity to product_info (to be added into the cart) and create my own html/php page. I bring this up because if a product has 20+ drop down boxes for different options I'd like to have more control in grouping drop down boxes and adding images throughout the table (not just at the head).

 

I went the lazy way and created a product page from admin and 'viewed source' and copied the html into a new page to mess around with its layout more easily. Then I came to find out that when I went to submit the form <form name="cart_quantity" action=".../product_info.php?products_id=28&action=add_product" method="post"> it just added a default product with default options. I'm sure it has something to do with the fact that my form was submitted to product_info as 'product 28' and not as an independent product with different variables.

 

I know this probably isn't making much sense but all I would like the cart to do is add a product (with valid oscommerce product id[]s and options) into the cart without having a separate oscommerce-generated page for that product.

 

Thanks for your replies

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...