1

i want to import downloadable products, which have multiple sample_links and downloadable_links, My Magento app is multi store site. like i have 7 multistore/multilingual, each product belongs to different or same stores the title and description of each product is different with each store. so once import a single product i am doing like this: sample code

So how can i add the sample_links and downloadable_links for downloadable products?

0

you can add downloadableinfo array in your importdata like below:

                $downloadableInfo=['price'=>'10',
                'url'=>'https://firebearstudio.com/media/logos/default/logo.png'
                ,'downloads'=>'10',
                'group_title'=>'Downloadable links title',
                'title'=>'Link title 1'];

                foreach ($currentStores as $currentStore){

                    $importData[] = [
                        'sku'  => $sku,
                        'name'  => $name,
                        'price'  => $price,
                        'description'  => $description,
                        'product_type' => $product_type,
                        'store_view_code' => $currentStore['code'],
                        'downloadable_links'=>$downloadableInfo,
                    ];
                }
  • this doesnot works, how should we add if there are more than 1 downloadable links and what about the sample links? – Ahmad Wali Jun 10 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.