New Zenner
- Join Date:
- Dec 2006
- Posts:
- 4
- Plugin Contributions:
- 0
Showing category image as featured product image
The site I am working on is at http://s142103556.websitehome.co.uk/.
As you can see it is being used to sell mobile phones. Due to the fact that each phone has a large number of deals, which each cost different ammounts I have decided to make each phone into a sub-category.
I would like to show some of these phones on the front page, I have been trying to edit the Featured Products, listing to make this possible.
The main problem is that currently the product image (just the network logo) is being shown rather than the phone image.
I have tried to do this by replacing:
zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'],
```with
```php
zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'],
```but that only worked on pages where the image had already appeared.
Could someone please give me the db query so that $categories is defined correctly.
Thanks,
Lydia