PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 116
Lasso Lite – Affiliate Link Manager & Product Displays v116
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
← All changes | classes/class-import.php +1 -6 158116 View file →
@@ -44,13 +44,8 @@
44 44 if ( '' === $import_id || '' === $import_source ) {
45 45 return false;
46 46 }
47 47
48 - // Bulk revert passes plugin slugs from the revert table; UI passes display labels.
49 - if ( isset( Setting_Enum::SUPPORT_IMPORT_PLUGINS[ $import_source ] ) ) {
50 - $import_source = Setting_Enum::SUPPORT_IMPORT_PLUGINS[ $import_source ];
51 - }
52 -
53 48 if ( 'AAWP' === $import_source && 'aawp_list' === $post_type ) {
54 49 $aawp_list = $lasso_db->get_aawp_list( $import_id );
55 50 $aawp_amazon_ids = $aawp_list->product_asins ?? '';
56 51 $aawp_amazon_ids = '' !== $aawp_amazon_ids ? explode( ',', $aawp_amazon_ids ) : array();
@@ -579,9 +574,9 @@
579 574 'price' => $product['attributes']['ListPrice'] ?? $product['lowest_price_n'] ?? '',
580 575 'default_url' => $product['url'],
581 576 'url' => $product['url'],
582 577 'image' => $product['images'][4]['url'] ?? $product['images'][ count( $product['images'] ) - 1 ]['url'],
583 - 'quantity' => 200, // Deferred: BLS quantity for out-of-stock checks (product decision — see epic #496).
578 + 'quantity' => 200, // Manual checks won't show out of stock for now. TODO: Add BLS to out of stock checks.
584 579 'is_manual' => 1,
585 580 );
586 581 $lasso_amazon_api->update_amazon_product_in_db( $store_data );
587 582 }