1.3.8a I have uploaded my manufactures logos but i would like them to show when someone uses the manufacture sidebox and selects the manufacture, for the image and name to show on the top. Tried other post couldn't get it to work. thanks
1.3.8a I have uploaded my manufactures logos but i would like them to show when someone uses the manufacture sidebox and selects the manufacture, for the image and name to show on the top. Tried other post couldn't get it to work. thanks
Does this post help:
http://www.zen-cart.com/forum/showthread.php?t=84148
No I have them all uploaded.
Where I want them to be listed is when a customer click on the "Manufacture" Side box and select the manufacture then it gives all the products under that manufacture up on the right of the page or next to the "Name that it already shows now". Click here to see
I do not use the SEO add-on that you are using, but you should be able to add a function to get the manufacturers_image such as:
From that, when there is a manufacturers_id you could then display the image where you need it ...Code:function zen_get_manufacturers_image($manufacturers_id) { global $db; $manufacturers_query = "select m.manufacturers_image from " . TABLE_MANUFACTURERS . " m where m.manufacturers_id = '" . $manufacturers_id . "'"; $manufacturers =$db->Execute($manufacturers_query); return $manufacturers->fields['manufacturers_image']; }
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: v1.5.5]
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!
Thanks Ajeg where would I add this code in the product_display_defult.php?
I added it to the:
/includes/functions/extra_functions
creating a file like:
my_extra_functions.php
That is a self loading directory and loads after the functions_general.php file ...
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: v1.5.5]
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!
I get: function zen_get_manufacturers_image($manufacturers_id) { global $db; $manufacturers_query = "select m.manufacturers_image from " . TABLE_MANUFACTURERS . " m where m.manufacturers_id = '" . $manufacturers_id . "'"; $manufacturers =$db->Execute($manufacturers_query); return $manufacturers->fields['manufacturers_image']; }
Whole page enlarged, and error message on top ^^
You would need to write the file, such as:
/includes/functions/extra_functions/my_extra_functions.php
with the opening and closing php brackets, for example:
Code:<?php // my extra functions // get manufacturers_image function zen_get_manufacturers_image($manufacturers_id) { global $db; $manufacturers_query = "select m.manufacturers_image from " . TABLE_MANUFACTURERS . " m where m.manufacturers_id = '" . $manufacturers_id . "'"; $manufacturers =$db->Execute($manufacturers_query); return $manufacturers->fields['manufacturers_image']; } ?>
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: v1.5.5]
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!
I inserted that code, nothing changed no manufacture image is showing up: take a look here
All that code will do is get the "name" of the image file when passed a valid manufactuers_id ...
You will need to add additional code to where you want this displayed ...
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: v1.5.5]
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!
Bookmarks