Forums / General Questions / Needing some help.

Needing some help.

Results 1 to 15 of 15
18 Nov 2009, 15:29
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Needing some help.

I have been searching for this and have no luck. I was wondering if its possible to add manufacturer onto the What's New Module. Like this:

Product Image
Manufacturer
Product Name
Price

Can anyone help me in this area?

Thanks a bunch.
18 Nov 2009, 20:36
#2
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

I have an image and I want something close to this

http://www.morrisgiftshop.biz/images/sample.jpg

I am using the red "New!" as a manufacturer but is it possible put the manufacturer in the Whats New Module?
20 Nov 2009, 15:54
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

You could use this function to look up the manufacturers_name by the products_id ...
/*
 * Return a product's manufacturer's name, from ID
 * TABLES: products, manufacturers
 */
  function zen_get_products_manufacturers_name($product_id) {


Just look for how the products_id is referenced in that module ...
20 Nov 2009, 15:56
#4
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

I don't quite understand where you are getting this.
20 Nov 2009, 17:55
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

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);
20 Nov 2009, 17:57
#6
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

Is this for Whats New! Module?
20 Nov 2009, 18:44
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

Yes, look in the module new_products.php and that should get copied to your templates and overrides directory for your customization ... then around line 71 you will see the code that builds the display ...
20 Nov 2009, 18:52
#8
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

Where do I put that code to put under the image?
20 Nov 2009, 19:26
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

Look at the new code and compare to old code ... take the peice of New Code and stick it in the old code where you want to see that display ... :smile:
20 Nov 2009, 19:56
#10
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

Thank you. I apreciate it that is what I want.
09 May 2011, 19:11
#11
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

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);


Linda (Ajeh),

Will you help me with this code again the code has got the manufacturers between the product name and price. I actually want it between the image and the product name. Can you able to help me in that area?

Thanks
09 May 2011, 20:35
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

Moving the code in red to where you want it would do it ... :unsure:

See your other thread and see if that is what you are looking for ...
10 May 2011, 02:16
#13
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

I have tried moving the code I am unble to get it.
10 May 2011, 02:18
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Needing some help.

Then look at your other post and see if that is what you are looking for ...
10 May 2011, 02:41
#15
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Posts:
1,674
Plugin Contributions:
0

Re: Needing some help.

I have got the code working,,,, but its still showing between the product name and the price.... But I want it between the product image and the product name. I need help with this code.