Zen Cart Logo
Forums / Basic Configuration / Turn prices in 'new__products_box' off?

Turn prices in 'new__products_box' off?

Locked

Views: 2,636

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
2 Dec 2006, 7:04 PM
#1
jensderknipser avatar

jensderknipser

New Zenner

Join Date:
Mar 2006
Location:
munich
Posts:
34
Plugin Contributions:
0

Turn prices in 'new__products_box' off?

Hi,

How/where can I adjust the settings for not showing the produc_price in the 'whats new box'?

In the regular product-listing , all my products are shown without prices, which is correct for me. even in the 'new_products_box on the starting-page the prices are still shown. I have searched at modules/sideboxes/whats_new.php as well in the tpl-.whats_new.php, but unfortunately didn't find any approach. Can somebody help me with this?

Thanks in advance
jens

2 Dec 2006, 11:18 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

There are code settings for this ...

How did you make your site not show prices? Did you set the Customer Details so that a customer must login for prices?

If so, are you using a template that does not follow those rules?

3 Dec 2006, 9:39 PM
#3
jensderknipser avatar

jensderknipser

New Zenner

Join Date:
Mar 2006
Location:
munich
Posts:
34
Plugin Contributions:
0

Re: Turn prices in 'new__products_box' off?

Hi Linda,
thanks for your reply.

I have configuered my site in this way, that only in the product_listing.ph the prices are not shown (by setting in admin->Product Listing->Display Product Price/Add to Cart to '0'). So the prices are shown in the product_info_display.php but not in the "catalogue" before.

So, I was thinking, that this setting would also influence the appearance (better disappearance) in all other boxes too, i.e. the 'what's New-Box'.

But....

3 Dec 2006, 10:16 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

All of the Listings have settings to enable or disable various features ...

In the New Listing turn off the:

Display Product Price
Do you want to display the Product Price

0= off
1st digit Left or Right
2nd and 3rd digit Sort Order
4th digit number of breaks after

4 Dec 2006, 1:09 PM
#5
jensderknipser avatar

jensderknipser

New Zenner

Join Date:
Mar 2006
Location:
munich
Posts:
34
Plugin Contributions:
0

Re: Turn prices in 'new__products_box' off?

Oooops? - I knew, it had to be a tiny little thing in admin - I just haven't found it....
So I changed the settings there, but

Oooops??? no change...

I can't remeber of having changed any code within a 'whats_new'-template, but maybe you can give me an advice, where (or in wich template) the price-appearance is regulated???

Thanks again, linda,

jens

4 Dec 2006, 1:58 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

If you are trying to change the sidebox or centerbox then you would have to edit those files and comment out or remove the price in your override ...

Do you have an URL of where you are trying to remove this?

4 Dec 2006, 5:41 PM
#7
jensderknipser avatar

jensderknipser

New Zenner

Join Date:
Mar 2006
Location:
munich
Posts:
34
Plugin Contributions:
0

Re: Turn prices in 'new__products_box' off?

Oh - good idea! Please look here:

http://www.picts-online.de/index.php

(currently only in german...)

At the bottom of the starting-page there is "my" problem. If you compare it to the producht-listings (i.e. cklick 'creative') you will see the picts without prices...

Btw.: Due to german rights of e-commerce I do not want to show the prices in the new-product-box, because if I would do so, another long sentence would have to be added, and this would destroy the layout.....

Thanks for helping so intense,

jens

4 Dec 2006, 5:50 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

That is the New Products Centerbox ...

You would need to copy the file:
/includes/modules/new_products.php

to your templates and overrides directory:
/includes/modules/your_template_dir/new_products.php

And customize the $products_price so that it does not display ...

4 Dec 2006, 6:22 PM
#9
jensderknipser avatar

jensderknipser

New Zenner

Join Date:
Mar 2006
Location:
munich
Posts:
34
Plugin Contributions:
0

Re: Turn prices in 'new__products_box' off?

Linda, Heroe of zen :-)))

Thanks for helping - problem solved!
As I was always messin around with the 'whats_new'-files I was definately on the wrong direction. Thank you for bringing me back on the track :-)))))

jens

4 Dec 2006, 7:16 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

Thanks for the update and glad you have this sorted out now ... :smile:

3 Nov 2009, 1:25 PM
#11
stanbridge avatar

stanbridge

New Zenner

Join Date:
Feb 2009
Posts:
25
Plugin Contributions:
0

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

3 Nov 2009, 3:13 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

Did you try to just comment out these two lines:

[B]//[/B]    $content .= '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a>';
[B]//[/B]    $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 ...

3 Nov 2009, 10:00 PM
#13
stanbridge avatar

stanbridge

New Zenner

Join Date:
Feb 2009
Posts:
25
Plugin Contributions:
0

Re: Turn prices in 'new__products_box' off?

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

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

3 Nov 2009, 10:26 PM
#14
ajeh avatar

ajeh

Oba-san

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

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:

    $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:

    $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>'));
4 Nov 2009, 3:34 AM
#15
stanbridge avatar

stanbridge

New Zenner

Join Date:
Feb 2009
Posts:
25
Plugin Contributions:
0

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

'</a>');

Thanks very much for that! One of those silly errors that was driving me crazy.

Cheers,

Stanbridge

4 Nov 2009, 5:24 AM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Turn prices in 'new__products_box' off?

Those little things will get you every time ... :lamo: