Menu

#126 problem with file custom option import

v1.0_(example)
open
nobody
None
1
2015-11-23
2015-11-23
mageLuke
No

Hi,
I was trying to add a file custom option and I saw that neither price nor price type values were imported.
I think this can depend from a missing assignment: in fact I added $opt["price_type"] = $price_type; in the "file" case and the problem was solved.
The file where I put that code is pablocustomoptions.php (in plugins/extra/itemprocessors/customoptions) in function BuildCustomOption.

My case option is this now:
case 'file':
if ($c > 5)
{
$opt['file_extension'] = $parts[5];
}
if ($c > 6)
{
$opt['image_size_x'] = $parts[6];
}
if ($c > 6)
{
$opt['image_size_y'] = $parts[7];
}
$opt['sku'] = $sku;
$opt["price_type"] = $price_type;
$opt["price"] = $price;
break;

Do you think this change is correct?

Thanks.
Luca

Discussion


Log in to post a comment.

MongoDB Logo MongoDB