garysumpter Posted January 12, 2005 Posted January 12, 2005 Could someone please tell me if it is possible to have your products on display but with no pricing shown, the only way to obtain the prices is to log in. Also, can individual users be given different pricing? This is for a wholesale website you see. Many Thanks Gary
Jack_mcs Posted January 12, 2005 Posted January 12, 2005 Could someone please tell me if it is possible to have your products on display but with no pricing shown, the only way to obtain the prices is to log in. Also, can individual users be given different pricing? This is for a wholesale website you see. Many Thanks Gary <{POST_SNAPBACK}> The above can be done but not without editing the code. The stock shop can't do it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
John Doswell Posted January 12, 2005 Posted January 12, 2005 http://www.oscommerce.com/community/contri...l/search,logged greetz john
boxtel Posted January 12, 2005 Posted January 12, 2005 The above can be done but not without editing the code. The stock shop can't do it. Jack <{POST_SNAPBACK}> just change the currencies->display_price function to return "login for price" if the customer is not logged in, 2 min effort. Treasurer MFC
Jack_mcs Posted January 13, 2005 Posted January 13, 2005 How wil that allow each customer to get a different price? Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted February 19, 2005 Posted February 19, 2005 just change the currencies->display_price function to return "login for price" if the customer is not logged in, 2 min effort. <{POST_SNAPBACK}> This is to the end of catalog/includes/classes/currencies.php: function display_price($products_price, $products_tax, $quantity = 1) { if (!tep_session_is_registered('customer_id')) { return "-"; } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } ?> and this is to the end of catalog/includes/classes/shopping_cart.php: function calculate() { $this->total = 0; $this->weight = 0; if (!tep_session_is_registered('customer_id')) { return "-"; } else { rest of this function... } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.