Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pulling Product ID for Shopping Cart Infobox


joelp88

Recommended Posts

Hey all, hoping this is a quickly answered question!

 

Essentially, I'm customizing the infobox that displays the mini cart. My objective is to grab the default large image for each respective product. I'm able to pull the main image using scripts found in OSC, however in order to pull the Large Image I'm finding it to be difficult. I'm not the strongest PHP developer and am more of a front-end designer but I find myself in a position where I need to customer this script.

 

I have attempted to use the scripts from the product_info page, however in regards to the infobox, each line is a different product whereas on the product_info page it bases everything on the HTTP var for the product ID.

 

I am able to pull something like "30{2}16" using $products[$i]['id'], however I need just the ID (the 30), and nothing else. In Short: How can I get the Product ID for each separate line/product in the infobox? I can then use that and tep_image to pull the large image from the products_images database.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...