News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

"No shop currency defined" error

Started by dmb, January 12, 2019, 13:03:56 PM

Previous topic - Next topic

dmb

I've upgraded to VM 3.4.2 in advance of upgrading from J3.8.11 and in testing everything look OK so far, though on successful checkout I see an error

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


The site currency is defined, as "Currency: British pound" and "List of accepted currencies: British pound"

I've found quite a few ancient posts with this error, but the recommended fix is to ensure that a currency is set, and I've done this without effect.

A bit of digging shows that the error is generated in line 291 of administrator/components/com_virtuemart/models/vendor.php in the function getVendorCurrency ($_vendorId), and that the vendorId parameter is set to 52. This seems wrong: 52 is the value of the GBP currency, and the vendor for the site has ID=1.

Any ideas ?

Thanks,

David


jenkinhill

Is the currency in the Payment Method also set to British Pound?
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

dmb

Yes, I checked all payment methods, all show British pound.

Cheers,

David

ElTrull

Hi there,

unfortunately i have to report the same Error. You can see it at:
https://teichpiraten.de/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=J2Y3022&pm=5&Itemid=113

I searched the whole day to fix this but no chance. Everything seems to be configured correct. It only appears if users pay via papal and are redirected to the shop.

I also activated the "automatic redirect" from paypal and linked it to a thank you page that a created. But even this redirect to the thank you (https://teichpiraten.de/kaufbestaetigung)page does not work. It still ends up here https://teichpiraten.de/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=J2Y3022&pm=5&Itemid=113 with the currency warning at the top.

BTW: Also this is (even without the warning) a no really professioinal design of a thank you page - in my opinion. So i tried to find the template to modify this. I found /components/com_virtuemart/views/cart/tmpl/oder_done.php but this seems not to be the page where the redirect ends? Where can i modify this page?

I really hope we find a solution soon.

Greetz


GJC Web Design

@ElTrull - is this VM 3.4.2 ??  versions matter

is com_virtuemart/views/cart/tmpl/oderdone.php ... no underscore ... order_done is there for back compat
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ElTrull

Hi,

the VM version is 3.4.2, Joomla 3.9.1.

I hope this helps.

Greetz

dmb

Just to note that I agree that it seems linked to Paypal payments.

I've commented out line 291 of administrator/components/com_virtuemart/models/vendor.php for the moment so that the message is not displayed, as I can't actually find any problematic effect - all the data looks OK on the database, and the payments are going through OK. I suspect that some record, somewhere has a blank currency value but it doesn't seem to matter.

GJC Web Design

What about vendor settings?
If u have multi vendor or perhaps a misconfig ( 2 users marked as vendors  .- u should see a warning about this to fix) then the vendor comes into play with the payment methods
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ElTrull

Hi there,

i dont have Multivendor. There is 1 Joomla User (Super User), 1 VM Customer (marked as vendor)  :'(

If you want to take a look i can send you the access.

Greetz

matevzp2

Hello everyone!

I have the same problem,

Warning
No Shop Currency defined! Contact the administrator, if you are one go to http://www.polix.si/administrator/index.php?option=com_virtuemart&view=user&task=editshop

but when i change the currency to euro i can't save changes.. i have joomla 3.9.3 and VM 3.4.2

I have another problem with Synchronize media to VirtueMart.. there shows up an error: An error has occurred.
1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='


I dont know if errors are connected but i need to solve this problems.

goudmahendra

I am using virtuemart 3.4.2 and joomla 3.9.6. I am also have the same issue.

any solution?

Thanks

GJC Web Design

have you run the VM table updater?
Tried setting the currency manually in the DB as a test?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gopherit

I have the same problem

Updating VM tables did not help

I don't know how to set currency in the DB - can anyone help me with this - did it help?
www.shoelace.shop for all your shoelaces - de Schoenveter speshitpillt verkoopt schoenveters voor ondersteuning van projecten in Oeganda

GJC Web Design

currency is set per vendor so check #__virtuemart_vendors  -> your vendor  -- assume u only have 1?
vendor_currency & vendor_accepted_currencies
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

I had the same problem until I turned off unused countries for transportation methods in the list of countries in the settings
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products