Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart strange behaviour


bernardolira

Recommended Posts

Hi all.

 

I'm new to OSC and I am trying to implement it for a wine store (www.vivelvino.cl/catalog)

 

This weird behavior happens at the "product_info.php" page. The "Add to Cart" button causes the "advanced_search.php" page, instead of adding the product to the cart. Certain products are added but others aren't. Is this a "stock" problem?

 

The product_info.php code for the form is

 

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>
...
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
...
</form>

 

I don't think there is any additional form building code.

 

Any help will be greatly appreciated!

 

Thanks in advance

Bernardo

Link to comment
Share on other sites

Hi all.

 

I'm new to OSC and I am trying to implement it for a wine store (www.vivelvino.cl/catalog)

 

This weird behavior happens at the "product_info.php" page. The "Add to Cart" button causes the "advanced_search.php" page, instead of adding the product to the cart. Certain products are added but others aren't. Is this a "stock" problem?

 

The product_info.php code for the form is

 

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>
...
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
...
</form>

 

I don't think there is any additional form building code.

 

Any help will be greatly appreciated!

 

Thanks in advance

Bernardo

Your <form> tags are scrwed up 'cuz you have the one for the quick find commented out:

 

<!--            </li>
         </ul>
       </div>
     </form> -->

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...