osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Must register to view prices.

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-23-2006, 05:09 AM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
islander
Default Must register to view prices.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-27-2006, 09:45 PM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default RE: Must register to view prices.

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);
    }
  }
AND REPLACE WITH THIS CODE:

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);
     }
   }
 }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-29-2006, 01:09 PM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
Default RE: Must register to view prices.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-30-2006, 05:46 AM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
islander
Default RE: Must register to view prices.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 10-09-2006, 04:23 PM
New Member
 
Join Date: Jan 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
learoypc
Default RE: Must register to view prices.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-09-2006, 06:15 AM
New Member
 
Join Date: Sep 2006
Location: London, England
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kiokoCatAList1
Default RE: Must register to view prices.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax