Page 2 of 3

Call to a member function fromArray() on null

Posted: 19 Oct 2016, 07:51
by alfredlaggner
I feel bad having to complain about this error again. I can't figure this out. I was successfully editing my mapping for several hours. Then I added a catalog mapping. It did not help me. So I removed it. So I re-created the exact same status as before but now it does not work anymore. I deleted and recreated the input file. Double checked the length. But now it throws this error again:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function fromArray() on null


I have a deadline on my project and this is driving me insane. Am I the only one who has this issue?
Any hint is appreciated.
Thank you.

Re: CSV Import file location setup issue?

Posted: 19 Oct 2016, 14:14
by aimeos
Your mapping now seems to be OK and your error description sound like this one:
laravel-package-f18/error-when-trying-t ... -t851.html

Now we need to find out what happens and why there's no refItem available ...

Re: CSV Import file location setup issue?

Posted: 19 Oct 2016, 15:45
by alfredlaggner
Could it an issue of 'messy' database data? Since it still is a test environment I could reset to a start environment. How do I do that? Would it potentially help?

Re: CSV Import file location setup issue?

Posted: 19 Oct 2016, 16:58
by aimeos
Maybe, you can at least give it a try. The easiest way is to drop and recreate the database and do a "composer update" followed by a "php ./artisan aimeos:setup". Afterwards all tables are recreated and the basic data (without demo data) is there again.

Display Price without tax information

Posted: 24 Oct 2016, 23:14
by alfredlaggner
1) Taxes
How can I display prices without tax information? I already set taxflag to false but it still shows.

Code: Select all

    'mshop' => [
        'price' => [
            'taxflag' => false,
        ]
    ],

Prices are already inclusive tax.

2) Order confirmation email.
I set the email information like this

Code: Select all

    'client' => [
        'html' => [
            'content' => [
                'baseurl' => 'http://greenacresrx.com/', //2016.04 and up
            ],
            'common' => [
                'template' => [
                    'baseurl' => public_path('packages/aimeos/shop/themes/classic'),
                ],
            ],
            'email' => [
                'from-email' => 'canna@greenacresrx.com',
                'from-name' => 'Greenacres',
            ],
        ],
    ],
I test ordered a product but no confirmation email was sent to me.
Is there more to configure?
Are the cron jobs running by default? If no, how do I turn them on?

Thank you,

Alfred
Is there some kind of debug mode to see where the email went?

Re: Display Price without tax information

Posted: 25 Oct 2016, 09:58
by aimeos
alfredlaggner wrote:1) Taxes
How can I display prices without tax information? I already set taxflag to false but it still shows.
Prices are already inclusive tax.
If you would like to ship our products worldwide and your shop is in the EU, your prices must contain the tax of your country by default. For B2B and orders outside the EU, the tax needs to be removed during the checkout process if you don't have shops for specific countries or regions. The Aimeos company offers a VAT plugin for this: https://aimeos.com/extensions/
alfredlaggner wrote:2) Order confirmation email.
I set the email information like this
Your configuration seems to be OK.
alfredlaggner wrote:I test ordered a product but no confirmation email was sent to me.
Is there more to configure? Are the cron jobs running by default? If no, how do I turn them on?
You have to set up cron jobs on your server that executes the "./artisan aimeos:jobs" command:
https://aimeos.org/docs/Laravel/Configu ... jobs#Tasks
alfredlaggner wrote:Is there some kind of debug mode to see where the email went?
Not yet, but that's a good idea. We will add debug logging for all e-mails sent.

Re: CSV Import file location setup issue?

Posted: 25 Oct 2016, 20:18
by aimeos
Debug logging for sent e-mails have been added to the dev-master branch:
https://github.com/aimeos/ai-client-htm ... 7f29989d5c

upload images

Posted: 15 Nov 2016, 18:08
by alfredlaggner
How to you resolve the issue of uploading large numbers of media files? I have about 300 images to add to products. They are stored on my workstation.
Right now I have multiple steps for each image. It seems like a batch upload system of some sort would be very handy.

Thank you again for all the prompt answers to my inquiries!

Re: CSV Import file location setup issue?

Posted: 16 Nov 2016, 12:50
by aimeos
Add the image names to your CSV file and import them together with your product data. Upload the files via FTP (or whatever fits best for you) to your server. You can configure the base URL to your image files via https://aimeos.org/docs/Configuration/C ... nt/baseurl

Import images

Posted: 17 Nov 2016, 00:18
by alfredlaggner
I set up the image upload as suggested by you in the above post. I imported two images but they only show in the product overview window and nowhere else. (Not in product details and not in admin).

Here are the chrome browser inspect data


I cleared chache, but no change.
Capture.PNG
Capture.PNG (48.73 KiB) Viewed 3887 times