News:

Looking for documentation? Take a look on our wiki

Main Menu

No Shop Currency defined!

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

Previous topic - Next topic

blackrat999

Thanks.

Yes the shop owner is the ONLY one set as a Vendor.

I do have:

Warning
You are using single vendor mode, but it seems more than one user is set as vendor


However i have this on a few sites where there is 100% only one user set as "vendor" and i dont have the issue described here so assumed this was a bug of some sort, also seen plenty of other reports of this one without any other issues.

Jörgen

Check in phpadmin to really make sure that only ONE user is marked as vendor.

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

blackrat999

XXXX_virtuemart_vendors only has one user in it (the right one) is there another table i should look in also?

jenkinhill

Check database table  ###_virtuemart_vmusers  to see which users have an entry for "user_is_vendor"  Remove the 1 from VMusers who are not vendors.
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 there was another user in there with set as a vendor, have removed that one (which makes the vm admin error go away) and done another test purchase. Unfortunately still getting

Warning

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

when i return to merchant after paypal completes.

blackrat999

Also tried selecting "select all" to say that all currencies were accepted in the store instead of just GBP, again still get that error message after successful payment is made.

blackrat999

Would it be possible to redirect the shopper to a different URL when they come back from Paypal at all? This perhaps would stop the error showing up?
Maybe there is a plugin somewhere that can do this as i assume the url to "return to merchant" is unique to the purchase?


Jörgen

I use PayPal since almost 10 year and have not had any of these kind of problems. It has been a very steady experience with very few surprises.

Do You have HTTPS for the whole website ? Do You have conflicting settings in htaccess for HTTPS ?

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

jjk

I'm running out of ideas. Here is my last ones: Did you check the values for the GBP currency display in the 'Currency Edit' view? And is the 'Email Currency' in the VM PayPal configuration set to 'Vendor'? Also, did you try a payment already with 'Debug' and 'Log debug in file' in the VM PayPal configuration?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

blackrat999

Thanks for sticking with me!
I changed "payment currency" to British Pound from "default vendor currency" and Email currency is on "Vendor Currency"
tested and same error

I tried Debug and debug in file on - this seems to hang after clicking confirm purchase, i get all the debug info but cant complete it so not sure what help it would be, i have attached the url's it shows if that means anything to anyone?

jjk

Do you have a PayPal error log in your htdocs/log folder?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

blackrat999

I have a file called paypal.5.log.php in administrator/logs this is the content:

#
#<?php die("Forbidden."); ?>

2019-07-02 18:40:58 DEBUG plgVmConfirmedOrder: order number: VLW408
2019-07-02 18:40:58 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 6.45 paymentcurrency 52 orderusercurrency52
2019-07-02 18:40:58 DEBUG PayPal request:: Array
(
    [cmd] =&gt; _ext-enter
    [redirect_cmd] =&gt; _xclick
    [paymentaction] =&gt; sale
    [upload] =&gt; 1
    [business] =&gt; info-xxxx@gingerxxx.co.uk
    [receiver_email] =&gt; info-xxx@gingerxxx.co.uk
    [order_number] =&gt; VLW408
    [invoice] =&gt; VLW408
    [custom] =&gt; 18ced6ec8b3e64004634ccd3baeb8895
    [currency_code] =&gt; GBP
    [address_override] =&gt; 0
    [first_name] =&gt; richard
    [last_name] =&gt; Hughes
    [address1] =&gt; test address
    [address2] =&gt;
    [zip] =&gt; EXxx 7DF
    [city] =&gt; great torrington
    [state] =&gt; EN
    [country] =&gt; GB
    [email] =&gt; rbhughexxxx@gmail.com
    [night_phone_b] =&gt; 01805 624208
    [return] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=pluginresponsereceived&amp;on=VLW408&amp;pm=5&amp;Itemid=101
    [notify_url] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=notify&amp;tmpl=component&amp;lang=
    [cancel_return] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=pluginUserPaymentCancel&amp;on=VLW408&amp;pm=5&amp;Itemid=101&amp;lang=
    [rm] =&gt; 2
    [bn] =&gt; VirtueMart_Cart_PPA
    [no_shipping] =&gt; 0
    [no_note] =&gt; 1
    [image_url] =&gt; https://www.malbersfabrics.xx.xx/images/stories/virtuemart/vendor/malbers-fabrics-north-devon-logo-250.png
    [item_name] =&gt; Order Number: VLW408
    [amount] =&gt; 6.45
)

2019-07-02 18:42:16 DEBUG plgVmConfirmedOrder: order number: 6LZQ09
2019-07-02 18:42:16 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 6.45 paymentcurrency 52 orderusercurrency52
2019-07-02 18:42:16 DEBUG PayPal request:: Array
(
    [cmd] =&gt; _ext-enter
    [redirect_cmd] =&gt; _xclick
    [paymentaction] =&gt; sale
    [upload] =&gt; 1
    [business] =&gt; info-fxxxxx@gingerxxx.co.uk
    [receiver_email] =&gt; info-xxxxx@gingerxxx.co.uk
    [order_number] =&gt; 6LZQ09
    [invoice] =&gt; 6LZQ09
    [custom] =&gt; 18ced6ec8b3e64004634ccd3baeb8895
    [currency_code] =&gt; GBP
    [address_override] =&gt; 0
    [first_name] =&gt; richard
    [last_name] =&gt; Hughes
    [address1] =&gt; test address
    [address2] =&gt;
    [zip] =&gt; EXxx 7DF
    [city] =&gt; great torrington
    [state] =&gt; EN
    [country] =&gt; GB
    [email] =&gt; rbhughexxxx@gmail.com
    [night_phone_b] =&gt; 01805 624208
    [return] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=pluginresponsereceived&amp;on=6LZQ09&amp;pm=5&amp;Itemid=101
    [notify_url] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=notify&amp;tmpl=component&amp;lang=
    [cancel_return] =&gt; https://www.malbersfabrics.xx.xx/index.php?option=com_virtuemart&amp;view=vmplg&amp;task=pluginUserPaymentCancel&amp;on=6LZQ09&amp;pm=5&amp;Itemid=101&amp;lang=
    [rm] =&gt; 2
    [bn] =&gt; VirtueMart_Cart_PPA
    [no_shipping] =&gt; 0
    [no_note] =&gt; 1
    [image_url] =&gt; https://www.malbersfabrics.xx.xx/images/stories/virtuemart/vendor/malbers-fabrics-north-devon-logo-250.png
    [item_name] =&gt; Order Number: 6LZQ09
    [amount] =&gt; 6.45
)


I have obviously adjusted some links

blackrat999

Does the log data mean anything to anyone please?

jjk

#28
My log looks different. Reason might be your customized template. Perhaps test with a non-customized template (at least for the cart view).
BTW - I would eliminate the state selection in the cart. It's not used by British postal services.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

blackrat999

Thanks again.
I have removed the State selection.
Also tried switching templates for the cart, it obviously looked horrendous but the cart completed fine, with the same error :-(