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

CustomerCode Error when Submitting order

Started by nickwiebe, August 15, 2014, 23:03:23 PM

Previous topic - Next topic

nickwiebe

A customer is trying to submit an order and they are getting this error

AvaTax Error CustomerCode length must be between 1 and 50 characters.

I use AvaTax for tax calculations and when VirtueMart sends an order through AvaTax it automatically creates a customer code based on this formula if the customer chooses not to register:

nonreg_firstnameLastnameEmail@email.com

Is there a way to change the settings in VirtueMart so it doesn't use the first name, last name and email address for this customer code but rather just the email address?  If I can't do it in the settings, can you tell me what file and where in the code to change this?  AvaTax only allows up to 50 characters for the CustomerCode.

HELP PLEASE

GJC Web Design

had exactly the same problem with my http://forum.virtuemart.net/index.php?topic=113564.msg381938#msg381938

the string is core VM so I just shortened it in the taxcloud plugin

e.g.  $customernumber = substr($cart->customer_number,0,32); //shorten cust id to 32 for guest checkout

so for Alva I assume around line 466 in alavara.php

$vmadd['customer_number'] = substr($cart->customer_number,0,50);

make sure the plug doesn't recheck this on the return
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

OrangeYouGlad?

Thanks for the assist @GJC Web Design


Nickwiebe are you still experiencing this error?
John Offergeld
206-826-4900 x1122