Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy Now Button does nothing


surjer

Recommended Posts

I recently built an OScommerce solution for a client. I installed a few contributions and the site is up and running just fine. Well, another client saw the solution and really liked the idea so decided he wanted to go the same route. This time I decided to purchase a template from a site that had the store really customized from the get go. I thought GREAT that will save me alot of time because I wont have to start from scratch again.

 

NEways - I purchased the template and I am realizing that its not completely functional. For instance the "Cart Contents" was strictly static text that did NOT update when adding products to your cart. I fixed this by adding a little bit of php code to crab those variables and display the number of items.

 

The major issue I am having at the moment is that under the products you see "more info" and "Buy Now". The more info button works but it appears the Buy Now button is just an image. Does anyone know where the code goes to create the actual code behind that button?

 

I am assuming you will need to edit a products.php or something? Please help as I really need to get this store running...

 

Thanks sooooo much for any advice. You guys have really came through for me in the past and I am sure you will again!!!!

Link to comment
Share on other sites

Ohhh YEAH baby~! Im gettin good! haha

 

I tracked down the problem to the New_Products.php file. The problem was this line:

 

<td style="padding-top:10px;"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td>

 

Was missing the hyperlink portion of the statement!

 

OMG Im happy, Cant beleive i tracked that down!

 

THanks guys,

Mmoderate n00b!

Link to comment
Share on other sites

well not as good as I thought lol..

 

Its adding Null Pruducts to the cart. The cart contents goes up by one but when you look at the SHopping Cart there is a NULL products in it. It doesnt say EMPTY but there is nothing in it... GRRR!!!

Link to comment
Share on other sites

Ohhh YEAH baby~! Im gettin good! haha

 

I tracked down the problem to the New_Products.php file. The problem was this line:

 

<td style="padding-top:10px;"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td>

 

Was missing the hyperlink portion of the statement!

 

OMG Im happy, Cant beleive i tracked that down!

 

THanks guys,

Mmoderate n00b!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...