Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Featured Product Price (Side Box)

Featured Product Price (Side Box)

Locked

Views: 1,302

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Jun 2008, 2:36 AM
#1
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Featured Product Price (Side Box)

I have been trying to find a way of removing the price from the featured products and came across a post that suggested to remove this part of the code . $products_price); from the includes/modules/my_template/featured_products.php However it seems to make no difference to the display of the featured product "price" I then realised that this is for the centre box, is there a similar way of removing the "price" from the side box featured product. Any help would be greatly appreciated.

Many Thanks
Renz

30 Jun 2008, 3:04 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Featured Product Price (Side Box)

You're close. It's actually in "includes/templates/YOUR_TEMPLATE/sideboxes/tpl_featured.php"

Open it up, find this line:

$content .= '<div>' . $featured_box_price . '</div>';

And comment it out to make it look like this:

//$content .= '<div>' . $featured_box_price . '</div>';

Hope this helps.

30 Jun 2008, 3:20 AM
#3
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: Featured Product Price (Side Box)

Good On you..Thanks...I have a slightly different version...
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;
$content .= '</div>';
?>
So I am thinking perhaps I'll delete . $featured_box_price;
$content .= '</div>'; or will //. $featured_box_price;
$content .= '</div>'; work for me...Thanks

30 Jun 2008, 3:26 AM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Featured Product Price (Side Box)

I think I would try to just comment that line out, as you might want to un-comment it some day.

Comment the whole line:

$random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;

So it looks like:

//$random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;

Hope this helps.

30 Jun 2008, 3:42 AM
#5
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: Featured Product Price (Side Box)

Uhmmm I thought we had it cracked then but the damn price is still there :frusty:
https://www.coloushield.com/store (top right) Zen Cart is Vs 1.3.0.2, I tried commenting and deleting...
Nada Nofink....

30 Jun 2008, 4:05 AM
#6
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: Featured Product Price (Side Box)

Ok I done it....kind of....I had to comment out just the last bit, thoug I am left with a small problem the image and description are no longer centred..Uhmm weird...any ideas please.
Thanks (below is what I commented out)
$content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . //$featured_box_price;
$content .= '</div>';
?>

30 Jun 2008, 4:54 AM
#7
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: Featured Product Price (Side Box)

Eureka.......I finally managed to get it all to work for me and stay Centre.......So I am left with side box featured products (with image & description centred) & the price is removed. the simplest way after trying a few different things with different results was this....
Find "includes/templates/YOUR_TEMPLATE/sideboxes/tpl_featured.php"
Change
<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;
$content .= '</div>';
?>
To
<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_;
$content .= '</div>';
?>
Done Hope it helps someone (you have basically removed the word price)

30 Jun 2008, 5:01 AM
#8
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Featured Product Price (Side Box)

Glad to hear you got it fixed. Thanks for posting the solution for this,
although, not many people are still running that old of a version,
I don't think. You really should consider an upgrade.