asteria.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Asteria (Magento 1.x) → Bagisto migration.
  4. *
  5. * Product settings mirror shell/migrate_to_bagisto.php in the Asteria repo.
  6. */
  7. return [
  8. 'products' => [
  9. 'media_base_url' => env('ASTERIA_MEDIA_BASE_URL', 'https://img.asteriahair.com/media/catalog/product'),
  10. 'store_media_url' => env('ASTERIA_STORE_MEDIA_URL', 'https://img.asteriahair.com/media/'),
  11. // Empty = every Bagisto channel. Comma-separated codes override, e.g. default,eu
  12. 'channels' => array_values(array_filter(array_map(
  13. 'trim',
  14. explode(',', (string) env('ASTERIA_CHANNELS', ''))
  15. ))),
  16. // Optional single-code override used only when `channels` is empty.
  17. 'channel' => env('ASTERIA_CHANNEL', ''),
  18. // Empty = every locale attached to the selected channels.
  19. 'locales' => array_values(array_filter(array_map(
  20. 'trim',
  21. explode(',', (string) env('ASTERIA_LOCALES', ''))
  22. ))),
  23. 'locale' => env('ASTERIA_LOCALE', 'en'),
  24. // Bagisto attribute family code (catalog:sync uses "wigs"; the Magento export used "variant_product")
  25. 'attribute_family' => env('ASTERIA_ATTRIBUTE_FAMILY', 'wigs'),
  26. 'base_attributes' => [
  27. 'name', 'short_description', 'description',
  28. 'price', 'special_price', 'cost', 'weight',
  29. 'meta_title', 'meta_keyword', 'meta_description',
  30. 'url_key', 'status',
  31. ],
  32. 'include_eav_attributes' => [
  33. 'feature', 'gmc_color', 'gmc_product_type',
  34. 'hair_closure', 'hair_colorr', 'hair_density',
  35. 'hair_wavy', 'human_hair_type',
  36. 'lace_color', 'lace_sizes',
  37. 'sale_num', 'texturee',
  38. 'video', 'alone',
  39. ],
  40. // Empty = every drop_down / radio option except skip_option_titles
  41. 'variant_option_titles' => [],
  42. 'skip_option_titles' => [
  43. 'Lace', 'Wig Type', 'Shipping Option', 'Construction', 'Free Gift',
  44. 'Headband Color', 'Color', 'Customized Product', 'X-Mas Gift Random?',
  45. 'Custom Item', 'Hair Type', 'Layering Option', '4C Hairline', 'Customize Item',
  46. 'Free Headband', 'Hair Parting Styles', 'Limited Design',
  47. 'Mannequin Head', 'Texture', 'Time', 'Trim the Ends (Optional)', 'U Part Open Size',
  48. 'Wig Color', 'Wig Style',
  49. ],
  50. 'max_variants_warn' => 500,
  51. 'enabled_status' => 1,
  52. ],
  53. ];