Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart doesnt Add Item to Cart!!!


jayeskreezy

Recommended Posts

Ok so for some reason whenever I select add to cart, nothing gets added to the cart and it just says my cart is empty. I realized that for some reason my "Buy It Now" button (aka add to cart) doesnt link to anything. I dont know exactly where to look in php or even what file to edit, but I think I need to change something in the productinfo.php page

 

 

I think it has to do with this:

 

<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?>    </td>

<td width="74" class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

 

 

because the review button right next to it works perfectly, but the add to cart for some reason doesnt seem linked

 

...i'm using a template and well it isnt the most professionally designed template...

Link to comment
Share on other sites

Ok so for some reason whenever I select add to cart, nothing gets added to the cart and it just says my cart is empty. I realized that for some reason my "Buy It Now" button (aka add to cart) doesnt link to anything. I dont know exactly where to look in php or even what file to edit, but I think I need to change something in the productinfo.php page

I think it has to do with this:

because the review button right next to it works perfectly, but the add to cart for some reason doesnt seem linked

 

...i'm using a template and well it isnt the most professionally designed template...

 

The code itself is correct.

Likely has something to do with sessions or cookies.

 

go over you configure.php file :

http://www.oscommerce.com/forums/index.php?showtopic=193738

 

and your sesssion :

http://www.oscommerce.info/kb/168

 

david

Link to comment
Share on other sites

The code itself is correct.

Likely has something to do with sessions or cookies.

 

go over you configure.php file :

http://www.oscommerce.com/forums/index.php?showtopic=193738

 

and your sesssion :

http://www.oscommerce.info/kb/168

 

david

 

i checked the link for the sessions and i have everything that they suggest and i'm not exactly sure what to change in the configure file even though I read that whole link...pls help if u can...this is bugging me to no end

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...