Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'HELP PLZ' My buttons have disappeared


Guest

Recommended Posts

Hi mates,

 

I need help with the product_listing.php page, it is based on the AllProducts_V_4.3 Contribution.

 

I was adding in new code for Quantity in Basket: ' . $cart->count_contents(); number count of products in the cart.

 

However the new code changed something and I lost the add to cart button & buy now button.

 

Here is the live site http://www.azatiracing.com/online-store/in.../cPath/21_24_69

 

Under the QTY in Cart text is where the buttons reside.

 

The code is still there but no buttons show up on the product_listing page.

 

I probably have one small error in my code, I can't seem to find it >_< I hate to ask for help, but I'm stumped... Plz any help or ideas to try would be welcomed & appreciated! :thumbsup:

 

CODE BELOW.

 

echo' <td align="left" width="3%" class="smallText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"></td><td align="left" valign="top" >' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br><br><br><br><hr width="100%"></td><td width="100%" valign="top" align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a><br><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Part#: <strong>' . $listing['products_model'] .'</strong><br>Retail Price: <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><br>Your Price: <strong>

<span class="productSpecialPrice">' . $currencies->display_price($listing['listing_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</strong></span><br><br><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Quantity in Basket: ' . $cart->count_contents();';<br><br><table width="100%" height="20" border="0"><TD height="20"><div align="left">

<a href="' . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</div><TD width="50%" valign="middle"><div align="left"><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) . '</div></TABLE><p><hr width="100%"><p>' . "\n";

 

 

Azati

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...