Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed clean drupal with ubercart and feeds. Configured one attribute "Pieces per pack" and created feed import. Then i mapped title, sell price and all options' prices.
Now i import record, like
title;sell_price;18pieces;90pieces
"Pumpers";100;0;50
In new node "18 pieces" become default option with price 0 and "90 pieces" with price 50, but "18 pieces" checkbox is not checked. So, on product page "18 pieces" option doesn't appear.
Edit: if product has only one option with price 0, the attribute even has not been attached to product node.
Comment | File | Size | Author |
---|---|---|---|
default_option_not_checked.png | 3.42 KB | Ufurf |
Comments
Comment #1
Ufurf CreditAttribution: Ufurf commentedComment #2
Ufurf CreditAttribution: Ufurf commentedOk
There is a check:
But 0 recognized as empty and this value even not been recorded in database.
So, i think we should use
if($value != '')
, like it is in current 7.x-1.0 versionComment #3
haysuess CreditAttribution: haysuess commentedI'm seeing this same behavior. How can this be fixed?
Comment #4
haysuess CreditAttribution: haysuess commentedI can confirm replacing
with
works and allows proper importing of attribute options with a 0 price alteration.