News:

Support the VirtueMart project and become a member

Main Menu

No Shop Currency defined!

Started by blackrat999, June 20, 2019, 12:16:54 PM

Previous topic - Next topic

blackrat999

After a test live paypal purchase which all works fine i return to the merchant and get :

Warning
No Shop Currency defined! Go to https://www.malbersfabrics.co.uk/xxxxxxxxx/index.php?option=com_virtuemart&view=user&task=editshop

as you can see from the screenshot the currency is defined, it was on GB and Euro, i have changed that to just GB and ensured all required fields are complete on all tabs but another test afterwards does the same thing. otherwise it all completes)

why am i getting this error please?

Joomla 3.9.8
VM 3.4.2

blackrat999


Jörgen

Have You made sure that Your safe path is an absolute URL ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

blackrat999

#3
Thanks for helping out.
My safe path is /home/xxxx/public_html/vxxxx/

I have this the same on about 10 other VM shops and they all work fine, not had this error before.

having checked instructions at https://docs.virtuemart.net/faqs/110-how-to-set-the-safe-path.html i have adjusted this so that it is now inside my administrator folder but otherwise i seem to have complied with instructions

Jörgen

I do not know for certain, but this is directly taken from the tooltip for the safepath:

QuotePath for downloadable goods for sale and your invoices. This path is meant from your file root, not Joomla root. Attention - you must enter an absolute path here and it should (not must) be outside of your domain directory (i.e. httpdocs)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

blackrat999

having checked the instructions for safepath im pretty sure this is correct now

/home/username/public_html/administrator/randomname/

done another test and still get this when you click "return to merchant" after Paypal payment has gone through

Warning

No Shop Currency defined! Go to https://www.malbersfabrics.xx.xx/administrator/index.php?option=com_virtuemart&view=user&task=editshop

Jörgen

Taken from Microsoft documentation:
QuoteAn absolute URL uses the following format: scheme://server/path/resource

A relative URL typically consists only of the path, and optionally, the resource, but no scheme or server.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

blackrat999

I had looked at the same page and have to confess to not really understanding it. I relied on the VM instructions of:

For safety reasons it is very important to create a folder in a path not accessible by an URL or with an unguessable name, create also a folder 'invoices' and 'keys' in it to store your sensitive data secure. Our suggested path is for your system /home/username/vmfiles

I tried this one to start with and it saved saying it was right (the currency error still occurred) and i then made it a bit better by setting it inside the administrator folder, it still said it was right (and the currency error was still present)

so /home/username/public_html/administrator/randomname/ seems to be acceptable to virtuemart and checking my other installations is all the same throughout and on none others do i get the currency error - so a bit stuck :-(

jenkinhill

Safe path /home/username/public_html/administrator/randomname/  looks correct to me as long as administrator/randomname/  exists

Shot in the dark. Is Payment Currency in PayPal config set to GBP?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

blackrat999

Thanks to you too - yes the folders exist and VM agrees it is correct.
Paypal shipping is indeed set to GBP

blackrat999

Also just removed the Paypal payment option and set another one - same error message :-(

blackrat999

Thanks for suggestions so far - still getting the error message after sales go through, hopefully someone might have an idea what is causing this.

Jörgen

Just a hunch, create a new paypal payment itm with everything correctly added and inactivate the old item. If the new one works, delete the old one.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

blackrat999

I tried that yesterday, not difference, keep firing hunches please!!

jjk

Did you set the shop owner as a vendor in the 'Shop Edit' view?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations