A couple of issues with multi vendor

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

A couple of issues with multi vendor

Postby loppan » Sun Jun 02, 2019 6:00 pm

Hi!

I'm trying to setup Multivendor in VM but it does not seem to play nice together with opc, unfortunately.

Two issues found. We'll start with the most serious one. With opc disabled, this problem does not occur.

I have configured separate payment and shipping methods for my new vendor, and I have configured VM so that it automatically switches vendor depending on the first product in the cart.

With opc disabled, this seems to work nicely. In this example I have a product in cart from my regular (main) vendor - and I can chose shipping and payment methods (this part works fine with opc enabled also) :
norm1.png
norm1.png (28.17 KiB) Viewed 4000 times

norm2.png
norm2.png (23.3 KiB) Viewed 4000 times


Everything is in order.

Now, when I instead add a product from my new vendor (based in Australia), it only shows the Australian shipping and payment methods, just like it should :
aus1.png
aus1.png (16.38 KiB) Viewed 4000 times

https://photos.app.goo.gl/XC1aBG2A1dzjvVXw5 (maximum of 3 attachments... using google photos from now on instead)

But when I switch opc back on, I get strange results :
https://photos.app.goo.gl/VwdsvYKJyaMyRKf57

It renders the payment option just fine, but it shows the shipping methods from the wrong vendor. "Australian Post" is no longer there.
Also, it's supposed to show the price after the shipping method, but it doesn't.

So, for some reason, there seem to be an issue when opc fetches the shipping method. This works with opc disabled. Stan, do you happen to have any idea why?

There is also a problem with the currency module (mod_currencyselect). I have modified yours a little bit (with some help from you a while ago :)) so now it shows my currencies as flags :
https://photos.app.goo.gl/VBv9KKimvRQSZeAs9

Works great until I change vendor, then only 4 currencies are showed :
https://photos.app.goo.gl/JPMCuLSmRvfp1htx5

This is very strange because I have configured the same currencies for this new vendor.

If I instead use vm's default currency module, it works as it should :
https://photos.app.goo.gl/T3u9bMA6Tw2RJ8U7A

But for some reason, mod_currencyselect only shows 4 currencies, while the default vm currency module shows all my available currencies. Strange, I think :).

Stan, do you happen to have an idea about what's going on here? Truly grateful if you could have a look at this :).

Best regards

Peter
loppan
 
Posts: 25
Joined: Thu Oct 27, 2016 7:26 am

Re: A couple of issues with multi vendor

Postby admin » Mon Jun 03, 2019 11:03 pm

hello peter, i checked this on your site, i also set up the test case on my own demos and i modified some core opc files that will be available in 383 version that will support the multivendor.

it's important to note that right now virtuemart does not support 2 items in the cart from 2 different vendors - this could be accomplished by using shopper groups instead of multivendor.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: A couple of issues with multi vendor

Postby admin » Tue Jun 04, 2019 1:46 pm

i now checked also your mod_currencyselect problem and it seems that it shows currencies correctly while the core one shows them incorrectly:

1. the currencies (same as shipping+payment+etc... ) should be set up as "shared" OR "assigned to a specific vendor"
i fixed the problem of not showing all configured currencies by marking them shared in currency list configuration in VM

2. the core mod_virtuemart_currency shows always vendor=1 currencies regardless of the current vendor (it expects a REQUEST variable to change the vendor, but it's not really used anywhere)

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron