Giter Site home page Giter Site logo

Comments (15)

fulopattila122 avatar fulopattila122 commented on June 3, 2024

How do you access the method? Do you use a custom model in your application? Do you use the component standalone or within the Vanilo Framework?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

Can you access other methods on the model? Did you customize the statuses of the product?

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

Also, which version of Vanilo are you using? 1.2?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

Can you access other methods on the model? Did you customize the statuses of the product?

Yes, i can access other methods; i don't think i customised statuses. Is that possible?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

Also, which version of Vanilo are you using? 1.2?

Yes, version 1.2. I also downgraded but the error remains.

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

Yes, customizing of statuses is possible: https://vanilo.io/docs/1.2/enums#customizing-enums

Can you please post here the output of the command:

php artisan concord:enums

?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

Yes, customizing of statuses is possible: https://vanilo.io/docs/1.2/enums#customizing-enums

Can you please post here the output of the command:

php artisan concord:enums

?

+------------------+-------------------------------------------+----------------------------------------+
| Shorthand        | Contract                                  | Concrete                               |
+------------------+-------------------------------------------+----------------------------------------+
| address_type     | Konekt\Address\Contracts\AddressType      | Konekt\Address\Models\AddressType      |
| cart_state       | Vanilo\Cart\Contracts\CartState           | Vanilo\Cart\Models\CartState           |
| customer_type    | Konekt\Customer\Contracts\CustomerType    | Konekt\Customer\Models\CustomerType    |
| gender           | Konekt\Address\Contracts\Gender           | Konekt\Address\Models\Gender           |
| gravatar_default | Konekt\AppShell\Contracts\GravatarDefault | Konekt\AppShell\Models\GravatarDefault |
| name_order       | Konekt\Address\Contracts\NameOrder        | Konekt\Address\Models\NameOrder        |
| province_type    | Konekt\Address\Contracts\ProvinceType     | Konekt\Address\Models\ProvinceType     |
| user_type        | Konekt\User\Contracts\UserType            | Konekt\User\Models\UserType            |
+------------------+-------------------------------------------+----------------------------------------+

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

Product Status is missing as I expected. Can you post the contents of config/concord.php?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

Product Status is missing as I expected. Can you post the contents of config/concord.php?

<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class
    ]
];

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

The product module hasn't been added.

You have to add it:

<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class,
        Vanilo\Product\Providers\ModuleServiceProvider::class // <- add this line
    ]
];

from product.

victorighalo avatar victorighalo commented on June 3, 2024

The product module hasn't been added.

You have to add it:

<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class,
        Vanilo\Product\Providers\ModuleServiceProvider::class // <- add this line
    ]
];

thanks... it works now. btw: why wasn't it there? did i miss something in the docs? is this necessary when using the standalone products module?

from product.

victorighalo avatar victorighalo commented on June 3, 2024

I also get the same error when i do this: $taxon->taxonomy. So i added:

Vanilo\Category\Providers\ModuleServiceProvider::class,
Vanilo\Properties\Providers\ModuleServiceProvider::class,

Can these be automatically discovered by the package?

from product.

fulopattila122 avatar fulopattila122 commented on June 3, 2024

Add Vanilo\Category\Providers\ModuleServiceProvider::class to concord.php.
Basically, every Vanilo module must be added this way.

Concord v2.0 will be hooked with auto-discovery, currently, you have to do this. It's a one-time 5-second change ;)

from product.

victorighalo avatar victorighalo commented on June 3, 2024

Add Vanilo\Category\Providers\ModuleServiceProvider::class to concord.php.
Basically, every Vanilo module must be added this way.

Concord v2.0 will be hooked with auto-discovery, currently, you have to do this. It's a one-time 5-second change ;)

Thanks. Issues with concord resolved.

from product.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.