Author Topic: Turn off error report: "missing value for" in shoping cart  (Read 9303 times)

myplace2100

  • Jr. Member
  • **
  • Posts: 50
    • Tech and extensions
  • Skype Name: mridulcs
Re: Turn off error report: "missing value for" in shoping cart
« Reply #15 on: July 21, 2014, 17:37:09 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3510
  • VirtueMart Version: 3.8.9
Re: Turn off error report: "missing value for" in shoping cart
« Reply #16 on: July 21, 2014, 23:00:54 pm »
The change does not affect anything other than the early delivery calculation

Prices etc are not affected
Regards
A

Joomla 3.9.27
php 7.4

diacotm

  • Beginner
  • *
  • Posts: 9
  • A beginner
Re: Turn off error report: "missing value for" in shoping cart
« Reply #17 on: November 23, 2021, 17:50:40 pm »
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
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 :-

Code: [Select]
$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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10415
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Turn off error report: "missing value for" in shoping cart
« Reply #18 on: November 24, 2021, 10:35:07 am »
this thread is from July 21, 2014 !!!!!   :o
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

diacotm

  • Beginner
  • *
  • Posts: 9
  • A beginner
Re: Turn off error report: "missing value for" in shoping cart
« Reply #19 on: November 24, 2021, 14:57:16 pm »
Yeap :(
But i got the same issue and i don't know what to do!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10415
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Turn off error report: "missing value for" in shoping cart
« Reply #20 on: November 24, 2021, 15:11:04 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

diacotm

  • Beginner
  • *
  • Posts: 9
  • A beginner
Re: Turn off error report: "missing value for" in shoping cart
« Reply #21 on: November 25, 2021, 07:53:18 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3843
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Turn off error report: "missing value for" in shoping cart
« Reply #22 on: November 25, 2021, 09:01:40 am »
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.