Problem importing csv - [R] Asset - Type: please enter a valid value


  • Default avatar
    melaina    
     4 years ago
    0

    Hi

    I have really been struggling with this and have tried many of the options explained on this forum - like using CSVed to save the csv (to remove null strings) yet I still get the same error. [R] Asset - Type: please enter a valid value.

    please help? I am happy to send the CSV file for you too see, please let me know?
  • Your avatar
    seyi    
     4 years ago
    0

    Ok, did some tests and there is a problem. It is requiring an asset if for gift certificates, when it should not. This is happening on version 1.5.0 and 2.1.0. This will be fixed on the next update, but here is a solution for now:

    in www/administrator/components/com_awocoupon/models/import.php, around line 328 is this
    <?php
        
    if(!empty($_map['function_type'][$row['D']]) && $_map['function_type'][$row['D']] == 'giftcert') {
    ?>


    change it to this:
    <?php
        
    if(!empty($row['U']) && !empty($_map['function_type'][$row['D']]) && $_map['function_type'][$row['D']] == 'giftcert') {
    ?>


    That will get rid of this error you are experiencing.