Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate - no price, instead "Inquire"


jewelplus

Recommended Posts

Instead of showing the price for some items, I would like to show in the price field the word "Inquire". When customers click on the word "Inquire" it would open their email client with the subject already filled with the item number. Can anyone show me how to do this?

Link to comment
Share on other sites

Hello

 

Disable Prices

In catalog/includes/classes/currencies.php ... right down the bottom change:

function display_price($products_price, $products_tax, $quantity = 1) {

return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);

}

}

?>

To:

function display_price($products_price, $products_tax, $quantity = 1) {

if (tep_session_is_registered('customer_id')){

return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);

} else {

return '';

}

}

}

?>

You may wish to hide the cart also ... column_right.php

if (tep_session_is_registered('customer_id'))include(DIR_WS_BOXES .

'shopping_cart.php');

In catalog/shopping_cart.php, change:

require("includes/application_top.php");

To:

require("includes/application_top.php");

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

Page 72 of 114

Copyright © 2005 osCommerce. All rights reserved.

http://www.oscommerce.com

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

Where the code has:

} else {

return '';

}

You can put something like:

} else {

return 'Login for price';

}

 

 

I took this from the documentation, page 71 if you want to take a look

 

Regards

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...