kub Posted December 7, 2004 Posted December 7, 2004 Hi Is it possible to hide the prices for not registered customers? So you must login before you can see the prices and put orders. //Kaj
peterr Posted December 7, 2004 Posted December 7, 2004 Hi, Short answer, .. yes, it is possible. You simply check if they are logged on, and if not, redirect to the login page. You will have to do it for a few areas also, as prices appear in several places. Peter
peterr Posted December 7, 2004 Posted December 7, 2004 Hi, The usual way osCommerce checks (for orders,ect) is: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Peter
kub Posted December 7, 2004 Author Posted December 7, 2004 Thank?s for you answer. But i don?t understand what you mean? Can you give me a more detailed description? or do you know if there are any ready-made plug-in?s on the contribution pages for downloading??? It is the first time I test Oscommerce Thanks //Kaj
peterr Posted December 7, 2004 Posted December 7, 2004 Hi, Plcae the code where you want to restrict the access to displaying prices. For example, product_info.php displayes prices, so place the code just after the include statement for 'application_top.php Then do the same for other files, like index.php.etc,etc Peter
kub Posted December 7, 2004 Author Posted December 7, 2004 Ok, thanks, that workt good. hmm, my englis are not so good, I try to explain little better what I meen,the shop is only for retail dealers, my idea was that the retail dealers can see all the products without price and ?ad to cart? button without registration, and the registration page will be hide, the shop owner will manually register the customers that will get full access to the shop. The shop is only for retail dealers and prices for them. So the retail dealer can have our shop to show their customers what kind of products they marketing. :blink: //Kaj
Guest Posted December 7, 2004 Posted December 7, 2004 I have a similar requirement. I will be installing osCommerce for a customer, and initially I just want to show the products without letting anyone purchase. This would be an enhancement to the current website I've developed for them. Once we've worked through how the online ordering process will work, I'll want to add the prices, cart, checkout process, etc. (I could create separate pages to show the products initially, but I don't want to waste effort.) So the ability to make the catalog "display only", globally or for guests, would be useful. Thanks.
peterr Posted December 8, 2004 Posted December 8, 2004 Hi Bruce, As your requirement is very similar, using the same method/s will suffice, I'd say. It's simply a matter of viewing each page "not logged on", and if a price appears, then modify that page according, you only need the code I supplied. Peter
Guest Posted December 8, 2004 Posted December 8, 2004 Hi Peter, Thanks for your reply. I played around a bit with the product_info.php file, and commented out the Product Review and Add to Shopping Cart buttons on the bottom. This, combined with removing the Buy Now choice from the product listing (using the administration tool), will do what I want. Users can view the products but will have no way to purchase them. Reading what Kaj said, I think he wants something similar - registered users can use the shopping cart and see prices, and all others can still view the products. Using your code to control the display of price and the buttons on the product_info page should do the job. Being new to this software, I may have missed something, but I'm comfortable in getting started. I appreciate all the information that is available here - this is a good community and I plan to contribute once I am able to do so. Bruce
Steel Posted February 14, 2005 Posted February 14, 2005 http://www.oscommerce.com/community/contributions,601
Recommended Posts
Archived
This topic is now archived and is closed to further replies.