Credit card page not showing up for 'free' items - totally confused.

Started by coloradoz, August 26, 2014, 22:08:03 PM

Previous topic - Next topic

GJC Web Design

You have to go in to the code and write your own debug... if u want to check these values
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

coloradoz

Is there another way?  Really don't want to modify/add any code.  Also, I'm getting some other oddities happening

1. For example: With debug "ON", I can't input the state (eg. GA, CO, CA...) when you enter in the 'ship to' information.  Right now, I have to turn debug off so that I can enter in 'fake' order information and then turn debug back on.

2. For my incompleted fake orders, I was able to click through - get the order in the system without credit card info OR client information.  For those orders, I cannot delete them out of the order log.  For those orders, I see a     COM_VIRTUEMART_UNKNOWN_ORDER_STATUS.  Furthermore, when I try to enter legit information and update the order manually I get vmError: The workflow for or P is unknown, take a look on model/orders function handleStockAfterStatusChanged.

Any ideas what is going on here?

GJC Web Design

how else will you debug it?

your not modifying - just echo out some vars to see what ACTUALLY is happening - if you won't then ... pffffff
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

coloradoz

Ok, I'll check but where is the function getcartamount?  I looked through com_virtuemart/controllers and modules/mod_virtuemart_cart

GJC Web Design

it is called in the plugin - authorizenet.php

the func is in the vm admin plugins vmpsplug.php
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

coloradoz

Ok, here's what I've got for:

$amount = $this->getCartAmount($cart_prices);

Both $amount and $cartprices are valid, in my case they are 9.95.  What i would expect for a 'free' item with shipping of 9.95

I put in the following:
<CODE>
$amount_cond = ($amount >= $method->min_amount AND $amount <= $method->max_amount);
      if (!$amount_cond) {
         echo 'DEBUG '. 'FALSE';
      }

I get 'FALSE' for this.


GJC Web Design

there's your problem - has to be true

find out why

$amount_cond = ('9.95' >= $method->min_amount AND '9.95' <= $method->max_amount);

is false

what are your min & max
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

coloradoz

scope for min_amount and max_amount?  If not defined globally, they are zero.

GJC Web Design

they aren't set globally - they are just the plugin parameters - but they work for everyone else - why don't they work for you

if $method->max_amount is 0 then it will be false

try  0 & 1000000000000000000000000

or just replace it with

if($amount > 0) {
   $amount_cond = true;
}else{
   $amount_cond = false;
}
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


coloradoz

Updated to VM 2.6.10 - no change

Another couple of funny things:

1) when I go to "Order Status", these orders do not show shipping for the free items - it is as if the shipping is not getting propagated everywhere it needs to be.
2) After the order is confirmed, the cart is not emptied.

..AJ

coloradoz

Any comments or opinions on where to go next on this/these issues?
..AJ