Page 1 of 1

Hide products/prices

Posted: Fri Apr 11, 2008 4:16 am
by k23m
Hello
I just found OpenCart and it looks like a great program.  (I am getting sick of the other options!)

I tried to search for my answer here but I wasnt finding it, so I will just ask. Sorry if this is a repeat question.

I need to keep a store private - ie. hide the products and/or pricing from the public until they have registered for an account and been approved.  Is that possible with OpenCart?

Further, is it possible to hide certain categories from users (maybe with a usergroup?)

Re: Hide products/prices

Posted: Fri Apr 11, 2008 8:31 am
by osglass
you need to create a PHP user authentication code to do that or you can use the login/logout code that is already in the system. Its going to be a lot of work.

Re: Hide products/prices

Posted: Fri Apr 11, 2008 11:37 pm
by Luvz2drv
as for usergroups.. they don't exsist as of this point.

to force registrtion ...  that is easy...  about hmm maybe 5 small lines of code.

let me look at it and see what i can muster in for code.

Re: Hide products/prices

Posted: Sat Apr 12, 2008 12:47 am
by nowhinjing
I've already done this for another client - prices are hidden until they log-in.

I've also changed the log-in process so they have to be approved by an admin before the user account becomes valid.

If this is of interest to you (or others) I can make the code available.

NWJ.

Re: Hide products/prices

Posted: Sat Apr 12, 2008 3:47 am
by k23m
Thank you for your replies.

Access to the code for both price hiding and account approval would be wonderful. Thanks!

Re: Hide products/prices

Posted: Sat Apr 12, 2008 3:48 am
by k23m
I have one more question - when you have different attributes (like color) for a certain product, can you have a different inventory amount for each color, or is the inventory for the total of the product?

Re: Hide products/prices

Posted: Wed Apr 16, 2008 5:59 pm
by nowhinjing
Hi,

New contribution 'Hide Prices / Customer Approval' loaded in the contributions section. ;D

Tested and working on a fresh 0.7.7 installation.

Have fun,

NWJ

Re: Hide products/prices

Posted: Wed Apr 16, 2008 10:18 pm
by k23m
nowhinjing wrote: Hi,

New contribution 'Hide Prices / Customer Approval' loaded in the contributions section. ;D

Tested and working on a fresh 0.7.7 installation.

Have fun,

NWJ
Thank you!

Re: Hide products/prices

Posted: Fri May 30, 2008 12:41 am
by areese
I tried installing this over a fresh install of opencart and i get the following errors.
Only when I try to hide both price and add to cart.

In Header:
Notice: Undefined variable: price in /var/www/upload/catalog/template/default/content/product.tpl on line 7

In body:
Notice: Undefined variable: price in /var/www/upload/catalog/template/default/content/product.tpl on line 53

Any Ideas?

Re: Hide products/prices

Posted: Sat Jun 07, 2008 5:46 pm
by magdy
I have the same problem:
Notice: Undefined variable: price in /var/www/upload/catalog/template/default/content/product.tpl on line 7
Notice: Undefined variable: price in /var/www/upload/catalog/template/default/content/product.tpl on line 53

Would you please inform us what to do to fix that?