Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need Help on customizing the "New Products for May" Module!

Need Help on customizing the "New Products for May" Module!

Views: 2,991

Results 1 to 20 of 36
6 May 2011, 4:01 PM
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Need Help on customizing the "New Products for May" Module!

I have some new items and I made the manufactur show as "New!" is it possible that the I can show the manufactur below the image?

7 May 2011, 12:45 PM
#2
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Can anyone help me or any suggestions in this area?

8 May 2011, 10:28 PM
#3
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Anyone?

8 May 2011, 11:31 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Need a link to your site so i can view please... leave out the http://

8 May 2011, 11:33 PM
#5
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

https://www.morrisgiftshop.biz

and also a link is in the profile signature.

8 May 2011, 11:49 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Sorry I did not notice the linky.... :shocking:

Take a look at this thread: > http://www.zen-cart.com/forum/showthread.php?t=108422

9 May 2011, 4:55 AM
#7
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

I have made a example of an image but what is in red is the manufatuar. What I want is the red below the product image and above the product name.

9 May 2011, 2:05 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

I have noticed you posted on the link I provided you above...

Try it and see if it works...
Make a copy of new_products.php on the server so you can edit and upload to see the change..
Now name the file that is on the server new_products.php to new_products.old and upload your new copy to the changes to the server...
So, If not this new changes work delete the new one you uploaded and change new_product.old to new_product.php

9 May 2011, 2:21 PM
#9
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

the link that you have provided to the thread... there are to different codes which one should I try?

9 May 2011, 4:40 PM
#10
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

I have try that code of the link you provided and it will not work. Any other suggestions?

9 May 2011, 4:48 PM
#11
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Sorry, If I don't know the answer for you...
Other zenners will read this thread and maybe give sounder advice..

9 May 2011, 4:52 PM
#12
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

haredo:

Sorry, If I don't know the answer for you...
Other zenners will read this thread and maybe give sounder advice..

Thank you,,, but I have posted on the other thread to ask that one user why they put a bad coding on a thread that doesn't work.

9 May 2011, 8:30 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Need Help on customizing the "New Products for May" Module!

You can add the manufacturer's name below the image in the New Products module for the Centerbox by changing the code in the file:
/includes/modules/new_products.php

and using your templates and overrides, around line 71 use:

  	$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);
10 May 2011, 3:24 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Need Help on customizing the "New Products for May" Module!

The code posted here should put the manufacturers_name after the image ...

Have you tried this?

Could you add it to your site so it can be seen?

10 May 2011, 3:30 AM
#15
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

Yes,, to both questions.... I have made a image copy of the site after I put in the code. The word "New!" is the manufacturers.

10 May 2011, 3:40 AM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Need Help on customizing the "New Products for May" Module!

Check the code that I posted in post #13, the manufacturers_name is after the products_image and before the products_name ...

10 May 2011, 3:46 AM
#17
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

when I put the code in all I got is just the header not the whole website. Check it:

https://www.morrisgiftshop.biz

10 May 2011, 3:47 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Need Help on customizing the "New Products for May" Module!

You have put the code in incorrectly then ...

Check the directory:
/cache

to see what the debug log reads ...

10 May 2011, 3:54 AM
#19
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need Help on customizing the "New Products for May" Module!

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?

10 May 2011, 4:12 AM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Need Help on customizing the "New Products for May" Module!

Maybe once you have it working on your site someone else could help you with the designing if you are unable ...