flexible_variant.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Flexible Variant Configuration
  6. |--------------------------------------------------------------------------
  7. |
  8. | Configuration for the Flexible Variant product type
  9. |
  10. */
  11. /*
  12. * Enable or disable flexible variant functionality
  13. */
  14. 'enabled' => env('FLEXIBLE_VARIANT_ENABLED', true),
  15. /*
  16. * Default option types
  17. */
  18. 'option_types' => [
  19. 'select' => 'Select Dropdown',
  20. 'radio' => 'Radio Buttons',
  21. 'checkbox' => 'Checkboxes',
  22. 'color' => 'Color Swatches',
  23. 'button' => 'Button Select',
  24. ],
  25. /*
  26. * Auto-generate variant SKU based on parent SKU + option codes
  27. */
  28. 'auto_generate_sku' => env('FLEXIBLE_VARIANT_AUTO_SKU', false),
  29. /*
  30. * SKU separator for auto-generated SKUs
  31. * Example: PARENT-SKU-RED-LARGE
  32. */
  33. 'sku_separator' => '-',
  34. /*
  35. * Default sort order for new variants
  36. */
  37. 'default_sort_order' => 0,
  38. /*
  39. * Enable soft deletes for variants
  40. */
  41. 'soft_delete' => true,
  42. /*
  43. * Maximum number of options per product
  44. */
  45. 'max_options_per_product' => 10,
  46. /*
  47. * Maximum number of values per option
  48. */
  49. 'max_values_per_option' => 50,
  50. /*
  51. * Maximum number of variants per product
  52. */
  53. 'max_variants_per_product' => 500,
  54. /*
  55. * Default image placeholder for variants without images
  56. */
  57. 'default_variant_image' => null,
  58. /*
  59. * Enable inventory tracking for variants
  60. */
  61. 'track_inventory' => true,
  62. /*
  63. * Allow backorders for out-of-stock variants
  64. */
  65. 'allow_backorders' => false,
  66. /*
  67. * Automatically disable variants when quantity reaches zero
  68. */
  69. 'auto_disable_on_zero_stock' => false,
  70. ];