nitinhavaldar / creditlimit

The Credit Limit for Magento 2.x extension allows you to set a customer credit limit and adds payment method pay on credit, which is used to accept credit orders.
1 stars 2 forks source link

How to install? #1

Open grasmanek94 opened 6 years ago

grasmanek94 commented 6 years ago

Hello, I'm new to Magento 2.

All the packages up to this one were installed through composer, but this one I can't. I tried following a manual installation tutorial but I keep getting a 503 error after doing the steps.

What are to correct steps to install this extension into Magento 2?

Thanks in advance!

nitinhavaldar commented 6 years ago

Hi,

Please follow the below steps

1) Download zip file of this extension. 2) Extract files in the Magento root directory in the folder app/code/Evry/Creditlimit & app/code/Evry/Payonaccount 3) Enable the extensions

Note : Creditlimit and Payonaccount are 2 different modules. Both these modules are required to work the complete functionality

grasmanek94 commented 6 years ago

Hello! I've succesfully setup the plugins but there are a few more issues.

First in the code in https://github.com/nitinhavaldar/creditlimit/blob/master/Evry/Creditlimit/Setup/InstallSchema.php

lines 32 and 45 must be $table = $installer->getConnection()->newTable( instead of (empty)

Then bin\magento setup:upgrade works.

But when customer goes to 'My Credit Limits', the following error happens:

Class Evry\Bulkenquiry\Model\BulkenquiryFactory does not exist in [Evry\Creditlimit\Controller\Index\Index\Interceptor]

I tried searching your repositories and github for bulkenquiry, but I cannot find it anywhere. Can you provide a link? Thank you for your help. Much appreciated :)

(also: Pay on Credit isn't shown at checkout/billing page but maybe that's because bulkenquiry is missing)

nitinhavaldar commented 6 years ago

Hey @grasmanek94

Follow these steps,

Note : I have removed the bulkenquiry module related code and committed the changes to the repo. Now you won't face issues related to bulkenquiry.

grasmanek94 commented 6 years ago

Hello, I have tried your steps but this time another error occurs at setup:di:compile:

Compilation was started.
Area configuration aggregation... 5/7 [====================>-------]  71% 15 secs 184.0 MiB

  [ReflectionException]
  Class Evry\Uploadorder\Logger\Logger does not exist

  [ReflectionException]
  Class Evry\Uploadorder\Logger\Logger does not exist

  [RuntimeException]
  Source class "\Evry\Uploadorder" for "\Evry\Uploadorder\Logger" generation does not exist.

setup:di:compile

I have created a pull request to fix a few other issues (mainly setup)

Maybe this fix is okay? ( https://github.com/grasmanek94/creditlimit/commit/6047f587c09ae208f5df932a17441698b9d38ac8 )

But somehow after creating a new customer, there are still 0 entries/rows in the table credit_limit in the database, even though Credit Limit is enabled and set to a value (5000), and Credit Limit is enabled in payment options too.