Get the book

Go Back   Zen Cart Support > Configuring the Zen Cart Admin > Basic Configuration

Reply
 
Thread Tools Display Modes
Old 3rd November 2009, 02:25 PM   #11
stanbridge
New Zenner
 
Join Date: Feb 2009
Posts: 18
Default Re: Turn prices in 'new__products_box' off?

Can someone show me exactly where in new_products.php these edits should be made?

I have made many attempts (ZC v1.3.8a) but everytime it just makes the entire Whats New panel disappear.

I just want the image (hyperlinked to point to the product) without the product name and price under it.

Cheers all!

Stanbridge
stanbridge is offline   Reply With Quote
Old 3rd November 2009, 04:13 PM   #12
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
Default Re: Turn prices in 'new__products_box' off?

Did you try to just comment out these two lines:
Code:
//    $content .= '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a>';
//    $content .= '<div>' . $whats_new_price . '</div>';
The double forward slashes // will mask out those two pieces and leave just the image ...

NOTE: be sure to use your templates and override directories ... I like to copy both files over:
/includes/modules/sideboxes/whats_new.php
includes/templates/template_default/sideboxes/tpl_whats_new.php

to the templates and override directories:
/includes/modules/sideboxes/your_template_dir/whats_new.php
includes/templates/your_template_dir/sideboxes/tpl_whats_new.php

then make the changes ...
__________________
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

Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a]
Officially PayPal-Certified! Just click here
Ajeh is offline   Reply With Quote
Old 3rd November 2009, 11:00 PM   #13
stanbridge
New Zenner
 
Join Date: Feb 2009
Posts: 18
Default Re: Turn prices in 'new__products_box' off?

Ah, perhaps I didn't reply to the initial thread content properly.

THat bit of code rids me of the description+price from the sidebox.

I was actually looking for a way to remove this info from the centerbox that appears along the bottom (by default) that shows "New Products for [Month]".

Any ideas there? Thanks for your quick help thus far!

Cheers mate,

Stanbridge
stanbridge is offline   Reply With Quote
Old 3rd November 2009, 11:26 PM   #14
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
Default Re: Turn prices in 'new__products_box' off?

Then you need to customize the New Products module and do something similar ...

Find the original code:
Code:
    $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 />') . '<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);
And change to something like:
Code:
    $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>'));
__________________
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

Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a]
Officially PayPal-Certified! Just click here
Ajeh is offline   Reply With Quote
Old 4th November 2009, 04:34 AM   #15
stanbridge
New Zenner
 
Join Date: Feb 2009
Posts: 18
Default Re: Turn prices in 'new__products_box' off?

Hi Ajeh,

I can't believe it! I tried the exact same thing earlier today, however, didn't add the last closing bracket!!!

I was trying to end it with

Code:
'</a>');
Thanks very much for that! One of those silly errors that was driving me crazy.


Cheers,

Stanbridge
stanbridge is offline   Reply With Quote
Old 4th November 2009, 06:24 AM   #16
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
Default Re: Turn prices in 'new__products_box' off?

Those little things will get you every time ...
__________________
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

Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a]
Officially PayPal-Certified! Just click here
Ajeh is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create groups and hide prices? Apoc Customers and Orders 4 18th February 2008 09:20 PM
Turn off prices on index via Admin. sonicparke Features Wish List 0 18th October 2006 12:25 AM


All times are GMT +1. The time now is 12:00 AM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads