Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WHATS_NEW box and BUY_NOW button


jejpi

Recommended Posts

Posted

Hi,

 

I have a problem with integrating buy_now button to whats_new infobox. When I click on this button, in takes me to the shopping cart, but all I can see is "empty cart" note. :angry:

 

I think that a problem is somewhere in this code:

 

Part of my whats_new.php code:

 

$info_box_contents[] = array('align' => 'center',
                                'text' => '<table border="0" cellspacing="2" cellpadding="0" ><tr><td height><center><div style="width:120px; height:120px; background-color:#FFF;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], 120, 120) . '</a></td></tr><tr><td><a class="linkname" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a></td></tr>
							 <tr></tr>
							 <tr>
							 	<td>'.$description['products_description'].'</td>
							 </tr>

							 <tr>
							 	<td height="45" align="center">'. $whats_new_price.'</td>
							 </tr>
							 <tr>
							 	<td align="center">'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('products_id',$random_product['products_id']).'<a href="'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '" >'.tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS).'</a> '. tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART).'</form></td></tr></table>');

   new infoBox($info_box_contents);

 

 

Thanks. :rolleyes:

Archived

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

×
×
  • Create New...