This is a discussion on Must register to view prices. within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I would like to hide prices unless users have accounts. I am currently using a clean install with "Easy call ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I would like to hide prices unless users have accounts. I am currently using a clean install with "Easy call for price 1.0 "http://www.oscdox.com/index.php?name...tit&lid=43 I found a link from an old posting (http://www.oscdox.com/PNphpBB2-viewt...ight-hide.html) The mod looked like a simple one, but upon opening the oscmax files, it was way beyond my understanding. Any and all help would be much appreciated. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| At the very end of catalog/includes/classes/currencies.php: FIND THIS CODE: Code: function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
}
Code: function display_price($products_price, $products_tax, $quantity = 1) {
if (!tep_session_is_registered('customer_id')) {
return "Login For Price";
} else {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
}
}
|
|
#3
| ||||
| ||||
| Simple Call For Price and Description Font Settings: \catalog\includes\classes\currencies.php: Line 77: function display_price($products_price, $products_tax, $quantity = 1) { return "Please call<br>for Price"; } } \templates\fallback\content\products_info.tpl.php: Line 66 and 67 <td class="pageHeading" valign="top"><font face="Arial" size="4"><i> <?php echo $products_name; ?></td> <td class="pageHeading" align="right" valign="top"><font face="Arial" size="2"><i><?php echo $products_price; ?></i></font></td> Be sure if you do not want to show any price during checkout do not enter a price in the admin catalog products description or it will show up in the shopping cart. |
|
#4
| |||
| |||
| Very nice, thank you. I think this is the first time anyone has replied to one of my questions. Works great, and looks like it should be easy to plug into other areas too, like the "Buy now" button. If they dont have an account they can not purchase. Thanks again. |
|
#5
| |||
| |||
| You don't have to change the buy now button, in admin/configuration, just set the purchase without account to FALSE. customers must login before they can proceed. |
|
#6
| |||
| |||
| Hi Have been using the suggeted hacks to manage price visibility and all goo except, even with 'Purchase Without Account' set to false the user can simple sellect the 'Buy Now!' button and although the item does not show a price the Total does? Any thoughts. Tried the hide from group mothod but got errors on checkout and I don't want to hide the products just the prices for none account users as all my accounts are on a wholesale basis. Cheers Guys great work |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| register globals mod | vshaykev | osCMax v2 Installation issues | 20 | 10-02-2007 10:03 AM |
| Sessions,Register Globals OFF, PHP 5 My SQL 5 | davorian | osCommerce 2.2 Installation Help | 2 | 04-28-2006 05:10 AM |
| Bug when register before checkout | Alex2911 | osCMax v1.7 Discussion | 2 | 10-11-2003 05:44 PM |
| Register Globals | 4bgjnsn | osCMax v1.7 Discussion | 2 | 09-25-2003 01:20 PM |
| PayPal IPN and No Register moduless | martyrmantra | osCommerce 2.2 Modification Help | 0 | 05-04-2003 03:14 AM |