A
|
acpan 12/7/2020 |
if values show without decimal, it could be spreadsheet formatting. You can try format the values to string in your spreadsheet before import (i.e. put a single quote in front of your values). |
M
|
Mark Kramer author 12/7/2020 |
if values show without decimal, it could be spreadsheet formatting. You can try format the values to string in your spreadsheet before import (i.e. put a single quote in front of your values). If still the same problem, try to echo out the values from the spreadsheet in your import event : In Import Before Insert Event: echo " Raw Values From Spreadsheet => MSRP=".$rawvalues["MSRP"]." | MAP=".$rawvalues["MAP"]." | NET=" .$rawvalues["NET"]; echo " Values Before insert to DB => MSRP=".$values["MSRP"]." | MAP=".$values["MAP"]." | NET=" .$values["NET"]; You can also manipulate the raw values before insert to DB: // Eg: Use strval to force raw values to string $values["MSRP"] = strval($rawvalues["MSRP"]);
|
M
|
Mark Kramer author 12/7/2020 |
I will give it a try ! Thank you !
|