Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove Price and Title from Centerbox

Remove Price and Title from Centerbox

Locked

Views: 1,084

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Aug 2008, 11:54 PM
#1
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Remove Price and Title from Centerbox

If this has been posted and answered elsewhere please forgive the duplicate, but after ages of searching I cannot find an answer that helps :blink:

http://www.havendesignz.com/store/

I want only the product image (linked) to display in the Featured and New Products centerbox and on the Also Purchased modules on the product pages. From what I have read I need to edit also_purchased_products.php, featured_products.php, and new_products.php in includes.modules and copy them to my custom folder, but this is where I get lost LOL

Every time I edit it what I think needs to be edited out it buggers up the page, so can someone please give me exact instructions (think blonde LOL) on what I need to remove/comment out to make this happen? Please? lol

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

25 Aug 2008, 10:41 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove Price and Title from Centerbox

You don't want the name, price, or description displayed?

Unless I'm mis-understaning, you can turn off all the stuff you don't want in Admin - Configuration - New Listing, Featured Listing, etc., blonde or not.

25 Aug 2008, 11:05 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Remove Price and Title from Centerbox

stevensh's response will take that data of the relevant listing pages, but not off the listing boxes to which you refer. To do that currently requires changes to the Zen Cart module code.

So, for example, you would over-ride the includes/modules/new_products.php and in your over-ride file replace this rather long line ...

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

with ...

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

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Aug 2008, 11:21 AM
#4
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Remove Price and Title from Centerbox

kuroi:

stevensh's response will take that data of the relevant listing pages, but not off the listing boxes to which you refer. To do that currently requires changes to the Zen Cart module code.

So, for example, you would over-ride the includes/modules/new_products.php and in your over-ride file replace this rather long line ...

'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);
> ```php
    '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>');

Thank you! That will also work for the other two files as well? Soon as I am finshed uploading a rather large amount of zips LOL I will put this to work :clap:

And stevesh thank you for your reply also, while not quite what I wanted (just images only in the centerbox) I still appreciate you taking the time :)

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

25 Aug 2008, 11:25 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Remove Price and Title from Centerbox

The change is almost identical for the others. You just need to tweak the constants towards the end of the line and check that I got my syntax right (which you will know if the page loads properly after you make the change - if not, post back here).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Aug 2008, 11:32 AM
#6
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Remove Price and Title from Centerbox

I couldn't wait LOL and paused the upload....once I figured out the small changes to be made in the other two files, this worked perfectly for what I wanted....thanx again! :D

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe