#------------------------------------------------------------------------ # X-Cart reBOOT reDUX Advanced Product Options (v4.7.12.3) # Copyright 2020 www.xcartmods.co.uk #------------------------------------------------------------------------ In addition to standard product option/variant dropdowns, you can use... -> Product variants image thumbnail radio buttons (swatches) -> Stacked or inline radio buttons (stacked can be displayed in 1, 2 (default), 3 or 4 columns) -> Date pickers - uses Flatpickr, dates saved as unix timestamps -> Colour pickers (HEX) - uses browser native colour picker - Options validation is made easier, little or no JS experience needed - Options can span the full width of the product details table - Optional subtotal toast alert on option select - Variant image preview lightboxes (admin side) - Checkboxes are not supported at present, maybe in the future - Compatible with later X-Cart v4.7.x versions - Compatible with modern browsers PLEASE NOTE: 'Product Option Exceptions' are not yet available on radio button based options. If you need to use exceptions on certain products, use standard dropdowns only. 1) Upload the modified files... /modules/Product_Options/product_options.php /modules/Product_Options/product_options.BAK.php You'll also need to upload the files in... /skin/reboot/modules/Product_Options/ /skin/reboot/modules/Detailed_Product_Images/ And... /skin/reboot/js/reboot.js ----------------------------------------------------------------------------- 2) Apply the following SQL patch... ALTER TABLE `xcart_classes` ADD `option_type` CHAR(1) NOT NULL DEFAULT ''; ALTER TABLE `xcart_classes` ADD `text_type` CHAR(1) NOT NULL DEFAULT ''; ALTER TABLE `xcart_classes` ADD `full_width` CHAR(1) NOT NULL DEFAULT ''; ALTER TABLE `xcart_classes` ADD `columns` CHAR(2) NOT NULL DEFAULT '6'; ALTER TABLE `xcart_classes` ADD `required` CHAR(1) NOT NULL DEFAULT ''; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_standard_dropdown', value='Standard Dropdown', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_stacked_radios', value='Stacked Radios', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_inline_radios', value='Inline Radios', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_variant_image_swatches', value='Variant Image Swatches', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_checkbox', value='Checkbox', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_opt_group_sub_type', value='Option group sub-type', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_standard_text_field', value='Standard Text Field', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_standard_text_area', value='Standard Text Area', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_date_picker', value='Date Picker', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_colour_picker', value='Colour Picker', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_stacked_radios_columns', value='Stacked Radios Columns', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_column', value='Column', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_columns', value='Columns', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_style', value='Style', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_full_width', value='Full Width', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_required_field', value='Required Field', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_requires_js_code', value='(Requires JS validation code)', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_add_js', value='Add JS', topic='Labels'; REPLACE INTO xcart_languages SET code='en', name='lbl_apo_required_field_star', value='*', topic='Labels'; ----------------------------------------------------------------------------- 3) In Admin > Tools > Maintenance, click 'Force cache generation', then click 'Clear X-Cart cache'. ----------------------------------------------------------------------------- Done. You should now be able to set new product option/variant types. Problems? Get in touch at https://xcartmods.com/reboot/support