Jump to content

Archived

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

Supertex

View Product button - syntax

Recommended Posts

I'm trying to disable the "add to cart" button for certain products.  

I've added db tables, etc, but having issues getting the link right for the button that replaces "Add to Cart" (Buy Now).  Would someone mind pointing out my mistake here please?

            $prod_list_contents .= '        <td width="90" align="right">' . tep_draw_button(IMAGE_BUTTON_VIEW_PRODUCT, 'null', tep_href_link(FILENAME_PRODUCT_INFO($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '</td>';

I know it's something stupid, but it's getting the better of me.

Share this post


Link to post
Share on other sites

Got it :)

            $prod_list_contents .= '        <td width="90" align="right">' . tep_draw_button(IMAGE_BUTTON_VIEW_PRODUCT, 'null', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('products_id')) . 'products_id=' . $listing[$x]['products_id'])) . '</td>';

Listed in case someone else is looking for this.

Share this post


Link to post
Share on other sites

×