Ok, I got it working now.... One more question I know this is in the Stylesheet how can I make the manufaturer "New!" from black font to a red font?
Ok, I got it working now.... One more question I know this is in the Stylesheet how can I make the manufaturer "New!" from black font to a red font?
Maybe once you have it working on your site someone else could help you with the designing if you are unable ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Linda,,, I have it working now.
Thanks Guys. Thanks Ajeh. That code works well. I know this post is old... but any idea how to add the link to the manufacturer??? I used your code:
$manufacturers_name= zen_get_products_manufacturers_name($new_products->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'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 />') . $manufacturers_name . '<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 />' . $products_price);
Did you try to look at how the link is made for the Manufacturer's Info sidebox in the:
tpl_manufacturer_info.php
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
There are no href files in the sideboxes, and I'm really rusty with my html but I think I found something in the modules/product_listing.php
$lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
not sure where to put it... or if the $lc_text is defined in the new_products.php page, or how to define it or what this line means.. but I think it is does hyperlink the manufacturer name.. any input? Thank you for any help.
I'm gonna keep messing around and maybe by trial and error I'll stumble upon something. Will let you and the zencart world know if I figure this one out.
Been working on this for a few hours now.. with no success. But I am starting to decipher what all this code means. So now my question is:
Do you know the cPath to a manufacturer by the manufacturers_id??
For instance: The following code causes the product_name to link to the corresponding product_id page.
CODE:
<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 />' . $products_price);
GOES TO SOMETHING LIKE http://site.com/index.php?mainpage=product_id=1
So now.. I'm trying to manipulate that code to go to the page based on the manufacturer id (instead of product_id).
WANT TO GO TO SOMETHING LIKE : http://site.com/index.php?index&manufacturers_id=1
The closest I can come up with is:
<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $manufacturers_name . '</a>
it shows the manufacturer and is linked, but the link goes to some blank page. I'm wondering if I need the cPath and what that cPath might look like?
Do I need the something like <a href="' . zen_href_link(zen_get_info_page($somethinghere[?]), cPath = A bunch of stuff here?? >' . $manufacturers_name . '</a>
??
Any and all help makes you my savior... thanks