Jump to content


Photo

aliexpress.com


No replies to this topic

#1 MaxD

MaxD

    Administrator

  • Administrators
  • 724 posts

Posted 21 September 2014 - 06:10 PM

ae-logo-1x.png

//= PRODUCT: section for single product
$name = tag_text(' .product-name ');
find_manufacturer();
$price = tag_text(' #sku-price ');
$sku = rev_inside('/', '.html', $url);
$weight = tag_text(' #product-desc .pnl-packaging-weight ');
$main_image = tag_image(' #magnifier img ');
$images = replace('.jpg_*.jpg', '.jpg', tags_image(' .image-nav-item img '));
$attr_names = tags_text(' .product-params dt ');
$attr_values = tags_text(' .product-params dd ');
$attributes = shred_arrays($attr_names, $attr_values);
$opts_names = tags_html(' .sku-title ');
$opts_values = tags_html(' #product-info-sku span ');
$options = pgroup($opts_names, $opts_values, '', 'Select');

if (!new_product() and !$update_description) return true;
if (strlen($loc = inside('//', '.', $url)) == 2)
    http_get("http://$loc.aliexpress.com/getDescModuleAjax.htm?productId=$sku");
    else http_get("http://desc.aliexpress.com/getDescModuleAjax.htm?productId=$sku");
$description = rev_inside("Description='", "';");
$description = replace(array('<a*>', '</a>'), '', $description);

//= LIST: Product list processing script. At least $products and $nextpage should be defined here.
$products = tags_link(' .product ');
$page = rev_inside("/", ".html", $url);
if ($page != $max_pages)
    $nextpage = tag_link(' .page-next ');

//= SETTINGS: section for script settings
$http_cookies = " ";
$http_user_agent = true;
$auto_replace = false; // Apply replaces to all HTML pages
$auto_filter = false; // Write data for built-in OpenCart filters (Recommended to use <a target="_blank" href="http://liveimport.devs.mx/down/mx-filter/">MX-Filters</a> along)
$skip_zero_price = false; // Skip products with zero price
$description_images = false; // Load description images (Images from the product descriptions will be downloaded to your shop)
$incoming_language = ""; // Site's language for translation (For automated translation set source site's language. Keep empty if don't need translation.<br/><b>Example:</b> EN - English, DE - German)
$edited_translation = false; // Use <a target="_blank" href='http://liveimport.devs.mx/google_translation/'>Google Edited Translation</a>

/** License **/
$max_pages = 10; // Maximum pages from one product list
$http_use_proxies = false; // Use proxies (Activate only when you have problems connecting to the site)
// <h3> Existing Products Updates </h3>
$update_price = true; // Update price
$update_description = false; // Update name and description
$update_images = false; // Update images
$update_attributes = false; // Update attributes
$update_options = true; // Update options

  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior