Author Topic: "No shop currency defined" error  (Read 2749 times)

dmb

  • Jr. Member
  • **
  • Posts: 81
  • A beginner
"No shop currency defined" error
« on: January 12, 2019, 13:03:56 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27498
  • Always on vacation
    • Jenkin Hill Internet
Re: "No shop currency defined" error
« Reply #1 on: January 12, 2019, 14:07:54 pm »
Is the currency in the Payment Method also set to British Pound?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.6.1.10121 on Joomla 3.9.11 PHP 7.0.33
Testing 3.6.1.10129 on Joomla 3.9.11

dmb

  • Jr. Member
  • **
  • Posts: 81
  • A beginner
Re: "No shop currency defined" error
« Reply #2 on: January 12, 2019, 14:24:59 pm »
Yes, I checked all payment methods, all show British pound.

Cheers,

David

ElTrull

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: "No shop currency defined" error
« Reply #3 on: January 13, 2019, 21:28:16 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: "No shop currency defined" error
« Reply #4 on: January 13, 2019, 22:38:19 pm »
@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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ElTrull

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: "No shop currency defined" error
« Reply #5 on: January 14, 2019, 18:16:29 pm »
Hi,

the VM version is 3.4.2, Joomla 3.9.1.

I hope this helps.

Greetz

dmb

  • Jr. Member
  • **
  • Posts: 81
  • A beginner
Re: "No shop currency defined" error
« Reply #6 on: January 15, 2019, 09:18:39 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: "No shop currency defined" error
« Reply #7 on: January 15, 2019, 11:23:24 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ElTrull

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: "No shop currency defined" error
« Reply #8 on: January 17, 2019, 20:33:32 pm »
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

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: "No shop currency defined" error
« Reply #9 on: February 25, 2019, 13:11:26 pm »
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

  • Beginner
  • *
  • Posts: 48
  • A beginner
Re: "No shop currency defined" error
« Reply #10 on: May 22, 2019, 10:10:44 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: "No shop currency defined" error
« Reply #11 on: May 22, 2019, 10:40:05 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gopherit

  • Beginner
  • *
  • Posts: 5
  • www.veter.shop for all your shoelaces
    • De Schoenveter Specialist, verkoop van veters en schoenpoets
  • VirtueMart Version: 3.2.6
Re: "No shop currency defined" error
« Reply #12 on: July 25, 2019, 10:31:50 am »
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 spemildt verkoopt schoenveters voor ondersteuning van projecten in Oeganda

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: "No shop currency defined" error
« Reply #13 on: July 29, 2019, 09:58:48 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 33
    • MiniJoomla
  • VirtueMart Version: 3
Re: "No shop currency defined" error
« Reply #14 on: August 23, 2019, 04:56:11 am »
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 from products, orders and database table
Virtuemart Email Manager - customs email templates