Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide Price


miconib

Recommended Posts

Posted

I am trying to setup a distribution site with OS Commerce. Is there any way that i can hide the price for customers who are not logged in threw there email address and password. Also has anyone see a add-in or module for tier pricing ?

 

thanks In advance

Posted
I am trying to setup a distribution site with OS Commerce. Is there any way that i can hide the price for customers who are not logged in threw there email address and password. Also has anyone see a add-in or module for tier pricing ?

 

thanks In advance

 

What you could do is go to the file where the price is being shown on the page and put in an if statement. Like this:

if(tep_session_is_registered('customer_id')){
 echo --price--;
}

 

That should be all that you need

  • 3 months later...
  • 4 months later...
Posted

hide the prices of selected items for non logged in customers.

 

for example a product can only be for members and it will hide it until they become a member to see the price ONLY IF THE PRODUCT is selected to be hidden.

 

I really appritiate if you could help me on this.

 

I will return the favour

 

Many Many Thanks

Posted
hide the prices of selected items for non logged in customers.

 

for example a product can only be for members and it will hide it until they become a member to see the price ONLY IF THE PRODUCT is selected to be hidden.

Make your members not retail (customer group id not zero). Then use the Hide Price if $0 contribution to hide the price and buy now button, but not the complete product for retail customers.

  • 6 months later...
Posted

I have installed the display product in column contribution, the hide $0 price does not function right after that

 

Anybody could help on hide $0 price in the display product in column.

 

Here is the code for display the price in the display product in column.

if ($listing_values['specials_new_products_price']) {
		  $lc_text .= ' <s>' .  $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';
		} else {
		  $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' ';
		}

 

Here is hide price $0 code

case 'PRODUCT_LIST_PRICE':
		$lc_align = 'right';
		if (tep_not_null($listing['specials_new_products_price'])) {
		  $lc_text = ' <s>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';
		} else {
		  $lc_text = ' ' . (($listing['products_price'] > 0) ? $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) : '') . ' ';
		}
		break;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...