|
|
#11 |
|
New Zenner
Join Date: Feb 2009
Posts: 18
|
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 |
|
|
|
|
|
#12 |
|
Oba-san
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
|
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>'; 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 |
|
|
|
|
|
#13 |
|
New Zenner
Join Date: Feb 2009
Posts: 18
|
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 |
|
|
|
|
|
#14 |
|
Oba-san
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
|
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);
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 |
|
|
|
|
|
#15 |
|
New Zenner
Join Date: Feb 2009
Posts: 18
|
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>'); Cheers, Stanbridge |
|
|
|
|
|
#16 |
|
Oba-san
Join Date: Sep 2003
Location: Ohio
Posts: 50,238
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |