Forums / General Questions / Remove price from main page?

Remove price from main page?

Locked

Views: 2,991

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
27 Jun 2008, 9:35 AM
#1
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Remove price from main page?

Hi guys,
Is there anyway to remove the pric from beneath the products on the main hompage, so that to find out the price of the product/attributes the customer has to click to get the product page.

Any ideas?

Cheers

27 Jun 2008, 9:52 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

There can be a few different listing on the home page

Post a link to your site

Zen-Venom Get Bitten

27 Jun 2008, 10:07 AM
#3
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

http://firstrowtickets.co.uk/shop/

would llike the price removed from underneath the product names if possible

27 Jun 2008, 5:24 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

Currently you have

Featured
Specials
and the "Whats New" module displayed ( this is titled "new")

Featured main page:
includes/modules/featured_products.php
find this part of the code

IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);

edit to look like this

IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name']);

Specials:
includes/modules/specials_index.php

Cut/remove the highlighted code

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price);

Place your edited copies in a folder you create for your template and this is currently
includes/modules/cherry_zen/

Different for the whats new on main page maybe another will post it or I will get back to it later

Zen-Venom Get Bitten

29 Jun 2008, 2:47 AM
#5
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

Thank you my friend. Worked a treat, even found out how to do the new products ones. One more question - how can i get rid of the prices in the sideboxes too. Seems stupid to have removed them from the main page but them still show on the side boxes.

29 Jun 2008, 3:25 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

how can i get rid of the prices in the sideboxes too.
Gotta know which side boxes you are displaying

Post a link

Zen-Venom Get Bitten

29 Jun 2008, 11:22 AM
#7
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

Specials and Whats new they are. Thanks

29 Jun 2008, 8:39 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

New side box
in a copy of tpl_whats_new.php for your template
find and rem out

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

Specials
in a copy of tpl_specials.php for your template
find and rem out

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

Zen-Venom Get Bitten

29 Jun 2008, 11:54 PM
#9
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

Brilliant, cheers.

4 Aug 2008, 9:44 AM
#10
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

Need to resurrect this thread. Do you know if its possible to add the model and manufacturer beneath the product image? where the price once was? Is this possible?

4 Aug 2008, 5:05 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

need a link to the page where you want this

Zen-Venom Get Bitten

4 Aug 2008, 11:11 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

Thanks for the link but I actually wanted a link directly to the page where you want this

Zen-Venom Get Bitten

4 Aug 2008, 11:47 PM
#14
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

The main page (homepage), the featured products under the header and logo. At the moment under the images it shows product name, I've removed the price from under the names. Just want to konw is there a way of adding the model and manufacturer under the names where the price once was. I will using these functions for the dates and venues of the tickets im selling.

5 Aug 2008, 12:13 AM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

I would add a div to contain this to tpl_featured_products_default.php and pick up the mdl & mfg code from tpl_product_info_display.php and copy it into this new div

Zen-Venom Get Bitten

5 Aug 2008, 12:40 AM
#16
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Remove price from main page?

Is it me or do the top banner and the iphone image (right sidebox) wobble?

5 Aug 2008, 4:14 AM
#17
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

Is it me or do the top banner and the iphone image (right sidebox) wobble?
I think these are animated gif's

Zen-Venom Get Bitten

5 Aug 2008, 9:56 AM
#18
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

kobra:

I would add a div to contain this to tpl_featured_products_default.php and pick up the mdl & mfg code from tpl_product_info_display.php and copy it into this new div

Not entierly sure what im looking for when you say pick up the the mdl & mfg code from tpl_product_info_display.php.

5 Aug 2008, 10:05 AM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove price from main page?

Not entierly sure what im looking for when you say pick up the the mdl & mfg code from tpl_product_info_display.php.
In that file find:

<!--bof Product details list  -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
  }
?>
<!--eof Product details list -->

Use at least from <li> to </li> for each and most likely the rest in the event there is no entry for one or the other

Zen-Venom Get Bitten

5 Aug 2008, 8:01 PM
#20
shakur96 avatar

shakur96

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: Remove price from main page?

I've tried pasting these in and it doesnt work. Would it not work editing the featured_products.php