Shipping plugins only work when the ST address is filled (Zip field) and not the

Started by jeisonsan, May 06, 2020, 05:07:15 AM

Previous topic - Next topic

jeisonsan

I am from Brazil and virtuemart has lost all its strength, now we are a small group and every day we stop using Joomla / Virtuemart.
One of the problems we are having, that in this latest version, the Shipping plugins only work when the ST address is filled (Zip field) and not the BT address.

I believe it is a bug, we can guide us ...

Jörgen

The ST address should be filled with the BT address. Do You have any overrides that do it differently? VM and Joomla versions ?

Of course the Shipping plugin should use the ST address, or do you disagree ? How would it else be possible to figure out correct shipping fees if the ST for some reason is not filled out ?

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

GJC Web Design

Have u updated your shipping plugins?

Later code is

      $address = $cart -> getST();

      if(!is_array($address)) $address = array();

this will always get the correct address
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

jeisonsan

Before, until version 3.4 when the BT address was filled in, it worked, the shipping methods appeared.
Today this does not happen, even if the customer indicates that the ST will be the same as BT. It only works if you fill in the ST address.

AH

Regards
A

Joomla 3.10.11
php 8.0

jeisonsan

I made the adjustment in the script and it seems that it worked, being that I didn't put the last version.
I will install the latest version.

jeisonsan

I made the code change and tested it now in the current version, even so, it doesn't work, the person fills in the BT and doesn't show the methods.   :(

pinochico

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

jeisonsan

We use Correios-VirtueMart-3 (Brazilian national shipping method plugin)
The strange thing is that it works in the previous versions, usually calculating both BT and ST.

On why i want it to work on BT:
Have you thought about making the user have to fill in the address twice? if the user checks at the checkout that he / she wants to receive at the same address {BT}, it gets faster and helps with sales.

url plugin :   https://github.com/luizwbr/Correios-VirtueMart-3

jeisonsan

I put $ address = $ cart-> BT; if (! Is_array ($ address)) $ address = array ();
as the moment is working, I will do more tests    :D