Totally Zenned
- Join Date:
- Aug 2007
- Posts:
- 1,674
- Plugin Contributions:
- 0
Needing some help.
Product Image
Manufacturer
Product Name
Price
Can anyone help me in this area?
Thanks a bunch.
Totally Zenned
Totally Zenned
Oba-san
/*
* Return a product's manufacturer's name, from ID
* TABLES: products, manufacturers
*/
function zen_get_products_manufacturers_name($product_id) {Totally Zenned
Oba-san
'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . zen_get_products_manufacturers_name($new_products->fields['products_id']) . '<br />' . $products_price);Totally Zenned
Oba-san
Totally Zenned
Oba-san
Totally Zenned
Totally Zenned
Ajeh:
You can use the function zen_get_products_manufacturers_name to get the name of the manufacturer via the products_id ...
Something like:
'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . zen_get_products_manufacturers_name($new_products->fields['products_id']) . '<br />' . $products_price);
Oba-san
Totally Zenned
Oba-san
Totally Zenned
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.