News:

Looking for documentation? Take a look on our wiki

Main Menu

Turn off error report: "missing value for" in shoping cart

Started by Pejo, December 20, 2013, 00:21:45 AM

Previous topic - Next topic

myplace2100

Ok one more thing is commenting out those codes as u suggested have any affect of price calculation and showing wrong price to buyers will be presented before and after checkout ??

I checked language file en-GB.com_virtuemart_shoppers.ini in language->en_GB folder and that constant with that value is there!, so can't guess what is the problem.
joomla & wordpress extension developer

AH

The change does not affect anything other than the early delivery calculation

Prices etc are not affected
Regards
A

Joomla 4.4.5
php 8.1

diacotm

Hi, i got the same issue,
May u help me with Joomla 3.10.2 and Virtuemart VirtueMart 3.8.8 10472? cause i couldn't find these lines on the file that u mention

Thanks in advanced
Quote from: AH on December 28, 2013, 12:01:33 PM
components\com_virtuemart\helpers\cart.php

When a default country is set in the userfield virtuemart_country_id

On entry to the Checkout

The process behaves as though the BT address has been completed


Try commenting out the code as per below :-


$addresstype = $type.'address';
$userFieldsBT = $userFieldsModel->getUserFieldsFor('cart',$type);
$this->$addresstype = $userFieldsModel->getUserFieldsFilled(
$userFieldsBT
,$data
,$preFix
);
//vmdebug('prepareAddressDataInCart',$this->$addresstype);
// if(empty($this->$type)){
// $tmp =&$this->$type ;
// $tmp = array();
// foreach($address['fields'] as $k =>$field){
// //vmdebug('prepareAddressDataInCart',$k,$field);
// if($k=='virtuemart_country_id'){
// if(isset($address['fields'][$k]['virtuemart_country_id']) and !isset($tmp['virtuemart_country_id'])){
// $tmp['virtuemart_country_id'] = $address['fields'][$k]['virtuemart_country_id'];
// }
// } else if($k=='virtuemart_state_id') {
// if(isset($address['fields'][$k]['virtuemart_state_id']) and !isset($tmp['virtuemart_state_id'])){
// $tmp['virtuemart_state_id'] = $address['fields'][$k]['virtuemart_state_id'];
// }
// } else if (!empty($address['fields'][$k]['value'])){
// if(!isset($tmp[$k])){
// $tmp[$k] = $address['fields'][$k]['value'];
// }
//
// }
// }
//$this->$type = $tmp;
// }
if(!empty($this->ST) && $type!=='ST'){
$data = (object)$this->ST;
if($new){
$data = null;
}
$userFieldsST = $userFieldsModel->getUserFieldsFor('cart','ST');
$this->STaddress = $userFieldsModel->getUserFieldsFilled(
$userFieldsST
,$data
,$preFix
);
}

}


GJC Web Design

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

diacotm

Yeap :(
But i got the same issue and i don't know what to do!

GJC Web Design

what problem have u got .. ? Far more info needed ...  if u use VM to register your customers there should be no missing fields
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

diacotm

I use VP One page checkout but it has no difference with or without this plugin cause in both states the error is shown and doesn't let users to go through!

Jörgen

VM version, screenshots, more info needed.

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