-- url of the page with the problem -- : requires login
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.4.23
-- Browser(s) name and version -- : Windows Firefox 29.0.1
-- Error-message(debug-mod must be tuned on) -- : Error while sending XML to UPS. Error code: 110002. Message: No packages in shipment
This occurs when trying to purchase a product with variants. I've fixed it with the patch described below. But I can't be sure something else might be wrong. But if I've read the code correctly, without this change no package will be determined when purchasing a specific product variant.
There are two if blocks that seem like they may be incorrectly nested in
/plugins/hikashopshipping/ups/ups.php
At line 502:
if($product->product_parent_id==0){
if(isset($product->variants)){
// code skipped
}
else{
// code skipped
}
}
I think should be:
if($product->product_parent_id==0){
if(isset($product->variants)){
// code skipped
}
}
else{
// code skipped
}
The same set of nested if's occur at line 543 and 679 and it looks to me like the same potential problem.
If I am incorrect, please let me know what a proper fix would be. Making this change has allowed us to move forward on this site.