Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I do this in php please?


pctek

Recommended Posts

Posted

Although I know how to do this in html I can't seem to get this right in php

 

I'm trying to remove the "catalog/product_info.php?products_id" links on both the product image and its text in "shopping_cart.php?action=update_product" (the "What's In My Cart?" page)

 

shopping_cart.php

Line 112 (approx)

'	<td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' .											   tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
'	<td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] .						'</b></a>';

 

produces this on an html page:

 

class="productListing-data" align="center"><a href="http://www.mysite.co.uk/catalog/product_info.php?products_id=261{1}27"><img src="images/z101.gif" border="0"alt="Z101 Open Face Guard" title=" Z101 Open Face Guard " width="140" height="192"></a>

 

and all I need is:

 

class="productListing-data" align="center"><img src="images/z101.gif" border="0"alt="Z101 Open Face Guard" title=" Z101 Open Face Guard " width="140" height="192">

 

 

If from my Line 112 in shopping_cart.php is the best place to edit out these links can someone show me an example of the above php with the href removed please?

 

:)

Posted

'<td class="productListing-data" align="center">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td>'

Archived

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

×
×
  • Create New...