Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7090395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:02:56+00:00 2026-05-28T08:02:56+00:00

I am using the datapump and all is goint well but I need to

  • 0

I am using the datapump and all is goint well but I need to add the imageprocessor. So far no luck. Anyone know how to do this? here is the docs . This is the code I have working. I didn’t put the vars in.

require_once(MAGENTO."/magmi/integration/magmi_datapump.php");
class TestLogger{
    public function log($data,$type){
        $mess.="$type:$data\n";
    }
}
$dp=Magmi_DataPumpFactory::getDataPumpInstance("productimport");
$dp->beginImportSession("default","create",new TestLogger());   
$item=array(
                            "type"=>"simple",
                            "sku"=>$sku,
                            "name"=>$p_name,
                            "short_description"=>$shortdesc,
                            "description"=>$longdesc,
                            "cost"=>$cost,
                            "price"=>$price,
                            "min_qty"=>0,
                            "qty"=>$stock,
                            "tax_class_id"=>2,
                            "status"=>2,

                            "attribute_set"=>$attribute_set,
                            "category_ids"=>implode(",",array_unique($cat_list)),
                            "manufacturer"=>$manufacturer
                        );
//This doesn't seem to be working.
$item["image"]="http://images.domain.com/product_images".$image[0];

$item["store"]="";
$dp->ingest($item);
$dp->endImportSession();                            

Now I have looked through the and I don’t see how to get the plugin’s loaded.. Any ideas on fixing it? Tk

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:02:57+00:00Added an answer on May 28, 2026 at 8:02 am

    So I was not ever able to do it.. but I now know why too.. Because I’m not using the UI I don’t inherent the all the classes and so I can’t use the itemprocessor and then the image processor since it inherits from that. So here is how I worked around it. I just reloop over the list after MAGMI does it’s thing thru the datapump. Here is how

    $imgAttrIds = array(79,80,81);
    $imageGalId = 82;   
    $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
    $connW = Mage::getSingleton('core/resource')->getConnection('core_write');
    
    
    if($image[0]!=''){
    $image_file="http://domain.com/product_images".$image[0];
    $param=array();
    $config=array();
    
    
    $p=Mage::getModel('catalog/product')->loadByAttribute('sku',$line[0]);
    $entity_id=$p->getId();
    $insertData   = array();
    $skusToInsert = array();
    
    
    for ($i = 0; $i <= count($image)-1; $i++) {
        //there is a very nifty image sizer there so $params is a for that ;)
        $param['to']="/media/catalog/product".$image[$i];
        echo function_supersizer($param,$config)."<br/>";
        if($i<=0){
            foreach($imgAttrIds  as $img) {             
                $insertData[]   = "(4, ".$img.", 0, ".$entity_id.", '".$image[$i]."')";
            }
        }
        $skusToInsert[] = "(".$imageGalId.", ".$entity_id.", '".$image[$i]."')";
    }
    $sql = "INSERT INTO mag_catalog_product_entity_media_gallery (attribute_id, entity_id, value) VALUES ".implode(",",$skusToInsert).";";
    $connW->query($sql);
    $sql = "INSERT INTO mag_catalog_product_entity_varchar (entity_type_id, attribute_id, store_id, entity_id, value) VALUES ".implode(",",$insertData).";";
    $connW->query($sql);
    

    This works.. it works well for me. Just did a test of 15,000 products.. but.. yeah as is, use on beta first etc.

    Cheers -Jeremy

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using a binary search tree I need to add to a vector all int
Using this syntax I can add records in the fields but it always add
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
Using Flex 3, I would like to take an image snapshot such as this:
Using top it's easy to identify processes that are hogging memory and cpu, but
Using C# (the .NET framework), I'm looping through all the TimeZones and their AdjustmentRules...
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
(Using MVC 2) From inside my controller action, I need to display the url:
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I
using file_get_contents , I open an Internet URL and get the contents of this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.