Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×