Post by k23m » Fri Apr 11, 2008 4:16 am

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?)

Newbie

Posts

Joined
Fri Apr 11, 2008 4:13 am

Post by osglass » Fri Apr 11, 2008 8:31 am

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.
Last edited by osglass on Fri Apr 11, 2008 7:43 pm, edited 1 time in total.

New member

Posts

Joined
Mon Apr 07, 2008 7:52 pm

Post by Luvz2drv » Fri Apr 11, 2008 11:37 pm

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.

Global Moderator

Posts

Joined
Fri Mar 21, 2008 10:58 am

Post by nowhinjing » Sat Apr 12, 2008 12:47 am

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.

Newbie

Posts

Joined
Thu Nov 15, 2007 10:35 pm

Post by k23m » Sat Apr 12, 2008 3:47 am

Thank you for your replies.

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

Newbie

Posts

Joined
Fri Apr 11, 2008 4:13 am

Post by k23m » Sat Apr 12, 2008 3:48 am

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?

Newbie

Posts

Joined
Fri Apr 11, 2008 4:13 am

Post by nowhinjing » Wed Apr 16, 2008 5:59 pm

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

Newbie

Posts

Joined
Thu Nov 15, 2007 10:35 pm

Post by k23m » Wed Apr 16, 2008 10:18 pm

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!

Newbie

Posts

Joined
Fri Apr 11, 2008 4:13 am

Post by areese » Fri May 30, 2008 12:41 am

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?

Newbie

Posts

Joined
Fri May 30, 2008 12:36 am

Post by magdy » Sat Jun 07, 2008 5:46 pm

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?

Newbie

Posts

Joined
Fri Apr 25, 2008 4:25 pm
Who is online

Users browsing this forum: No registered users and 3 guests