I seem to be missing payment method options

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
Hi this is my first post so please forgive me if I'm posting to the wrong section.

I recently downloaded and installed nopCommerce 1.60 on a local machine to check it out. Everything seemed to go well and now I came back to dig deeper I noticed I only have five payment options when I go to Configuration > Payment > Paymen methods - the only options I have are Manual Processing/Purchase Order/Cash On Delivery/Check / Money Order/Pay In Store

I notice on the demo site there's a whole load of payment options incl. Paypal/Googlepay etc.

Did I mess up my install or am i missing something?


Any help would be appreciated before I attempt a complete uninstall/re-install.

Many thanks.
Hace 13 años
OK here goes with a one-man thread :)

solution (sort of/i hope)

i) went to demo admin site and found paypal standard configuration
ii) clicked 'edit'
iii) on local site -> payment ->configuration -> selected 'new'
iv) copy and pasted configuration info from demo site into corresponding fields in local site.

....that's done it for one....only 9 more to go and configure :)

It's crude but it appears to be working, however, doesn't answer my original question!?

Is this what you have to do after every install or did I miss/mess up something during my install?
Hace 13 años
OK didn't need to do the above as everything was already in the database but didn't know where to start looking originally.
As I appear to be the only person in the world with this problem I can only assume the problem was with my install somewhere. I'll post here in case someone else may find this useful.

PROBLEM:
After install when going to Configuration->Payment->Payment methods can't see any options for Paypal/Google/alternate payment methods etc.

SOLUTION:
1)-> Login to the database you created for your store using SQL Server Management Studio or your preferred database admin tool/method
2)-> under Tables
3)-> find table named dbo.Nop_PaymentMethod
4)-> view/edit Table
5)-> you will be presented with all the available payment methods that were installed (one payment method per row)
6)-> find the payment method you want to activate (e.g Paypal Standard/Google)
7)-> go across the row to the 9th column which should be titled 'IsActive'
8)-> set to True (if you want it to appear in configuration) or False (if you don't want/need it)

[note: in my case Paypal standard etc. were set to 'False' so I just set them to 'True']

9)-> REPEAT for all other payment options you want/don't want
10)-> exit the database

11)-> Return to the admin section of your site and go back to 'Configuration ->Payment->Payment methods'
12)-> Your activated payment methods should now appear in the list
13)-> click 'EDIT' next to each payment method to configure it
14) -> configure as necessary and 'SAVE' your changes using 'Save' button (up and to the right)
15) -> Test
16)-> Go have a cold beer [or a cup of tea...whatever works for you]
17) -> come back and start counting the money :)

I hope this helps someone. It's been the most fun one-man thread I've ever participated in :)
Hace 13 años
Could you debug your application and let me know the value of NopContext.Current.IsAdmin when you browse admin area?
Hace 13 años
Hi Andrei,

Thanks for your reply. I'm not a programmer but I can have a go. I am not sure how to get this info?

I only have Visual Web Developer 2010, should I just run the application with debugging and check output window?

Thanks for the assistance.
Hace 13 años
1. Set break point into NopSolutions.NopCommerce.Common.Utils.CommonHelper.IsAdmin() method  
2. Run application
3. Go to admin area and see what value is returned

You can find more info about debugging ASP.NET web applications here
Hace 13 años
Hi Andrei,

Thanks for the reply and the debugging links. After much reading and experimenting I realised Web Developer Express (actually all Express editions) do not support setting a breakpoint to a function so I had to download and install a trial version of Visual Studio!

So at last, and after much learning :) here's the results of my debugging:

Locals:
    thisPageUrl null  string
    adminUrl1   null  string
    adminUrl2   null  string
    flag1  false   bool
    flag2  false   bool
    isAdmin   false   bool

Breakpoint Name/Call Stack Location:

NopSolutions.NopCommerce.Common.Utils.CommonHelper.IsAdmin()

I hope this is the information you were looking for, if not, please advise.

Thanks again!
Hace 13 años
I forgot to add (if it's relevant/of any use)

I only got as far as logging into the admin section before hitting the breakpoint.

-----------------------------------
what I did to get there:

1) I went to Breakpoints -> New -> Break at Function ->

Function: NopSolutions.NopCommerce.Common.Utils.CommonHelper.IsAdmin()
Line: 1
Character: 1
Language: C#

2)
Started debugging

3) Admin login page was loaded

4) Entered Admin login details

5) Hit breakpoint
---------------------------------------

Many thanks.
Hace 13 años
OK continued with debugging:

(Logged in succesfully as Admin)
Went to Configuration -> Payment -> Payment Methods -> Hit Breakpoint

Result:

Locals:

    thisPageUrl null   string
    adminUrl1   null   string
    adminUrl2   null   string
    flag1  false   bool
    flag2  false   bool
    isAdmin   false   bool

Continued Debugging:
Went to Configuration -> Tax -> Manage Tax Settings -> Hit Breakpoint

Result:

    thisPageUrl null   string
    adminUrl1   null   string
    adminUrl2   null   string
    flag1  false   bool
    flag2  false   bool
    isAdmin   false  bool

I hope this is relevant information and of help.
Thanks again.
Hace 13 años
inklabs wrote:
Locals:

    thisPageUrl null   string
    adminUrl1   null   string
    adminUrl2   null   string
    flag1  false   bool
    flag2  false   bool
    isAdmin   false   bool


Presume that you have set a breakpoint at the beginning of CommonHelper.IsAdmin() method. Add a breakpoint to the end of the method and post values of these variables here.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.