INSERT INTO `journal3_style` (`style_name`, `style_label`, `style_type`, `style_value`, `serialized`) VALUES
('Checkout', '', 'page_buttons', '{\"valueButtonsBorderHover\":\"\",\"valueButtonSpacing\":\"\",\"valueButtonsPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueButtonAlign\":\"\",\"valueContinueButtonIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueButtonSpace\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"10\"},\"valueBackButtonIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueButtonWidth\":\"full\",\"valueButtonBoxBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueAgreeLinkHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueButtonBoxShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\"},\"valueButtonBoxPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueAgreeMargin\":\"5\",\"valueContinueButtonIconActive\":\"\",\"valueBackButtonIconActive\":\"\",\"valueContinueButton\":\"__VAR__Success\",\"valueAgreeFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__SMALL\"},\"valueBackButton\":\"__VAR__Primary\",\"valueButtonsShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueButtonsBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueButtonsShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueButtonsDisplay\":\"\",\"valueButtonBoxBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueAgreeLink\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueSingleButtonWidth_multi\":[],\"valueButtonBoxBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueButtonBoxMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueButtonBoxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBackButtonIconHover\":\"\",\"valueButtonDisplay_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":\"block\"}],\"valueContinueButtonIconHover\":\"\",\"valueAgreeLinkActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueAgreeCheckMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueSingleButtonWidth\":\"full\",\"valueButtonsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueButtonSpace_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":{\"padding\":\"\",\"padding-top\":\"10\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"0\"}}],\"valueButtonWidth_multi\":[],\"valueButtonsFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueButtonsBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueButtonsBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueButtonsMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueButtonsFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueButtonDisplay\":\"inline\"}', 1),
('Top Menu Default', 'Top Menu Default', 'menu', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"__VAR__Text Light\"},\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"12\"},\"valueAccordionOpenIconHover\":\"\",\"valueAccordionCloseIconHover\":\"\",\"valueAccordionBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueTextTruncate\":\"true\",\"valueCountBadge\":\"\",\"valueBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueAccordionBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueDivider\":{\"width\":\"\",\"style\":\"\",\"color\":{\"color\":\"\"}},\"valueIconSize\":\"14\",\"valueSFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueItemPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueDropdownIndicator\":\"true\",\"valueStaticFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCountBadgePosition\":\"inline\",\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueIconActive\":\"\",\"valueSFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueDisplay\":\"left\",\"valueIconHover\":\"\",\"valueAccordionBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueAccordionBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCountBadgeVisibility\":\"true\",\"valueCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueIconMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"5\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueAccordionBorderHover\":\"\",\"valueIconColor\":\"\",\"valueAccordionCloseIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueFont_multi\":[],\"valueAccordionOpenIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueIconWidth\":\"\",\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"__VAR__Accent Lighter\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueItemSpacing\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"}}', 1),
('Secondary', '', 'button', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valuePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueBGFocus\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderActive\":\"\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Accent Hover\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowFocus\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocusColor\":\"\",\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSize\":{\"first\":\"\",\"second\":\"\"},\"valueMaxSize\":{\"first\":\"\",\"second\":\"\"},\"valueBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Gold\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocus\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorderFocus\":\"\",\"valueBGActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueFontActiveColor\":\"\",\"valueBorderHover\":\"\"}', 1),
('Top Icon', '', 'info_block', '{\"valuePadding\":{\"padding\":\"20\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueText2Visibility_multi\":[],\"valueText1Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"700\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Medium 2\"},\"valueInfoBlockBorderHover\":\"__VAR__COLOR_7\",\"valueText2Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valueInfoBlockPadding\":\"\",\"valueCountBadge\":\"\",\"valueInfoBlockText1Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_6\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__HEADING\"},\"valueIconSize_multi\":[],\"valueText1Visibility\":\"true\",\"valueInfoBlockPad\":{\"padding\":\"10\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueInfoBlockText2Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_13\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueText2Visibility\":\"true\",\"valueIconPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueIconBorderRadius\":{\"border-radius\":\"50\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueContentPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueInfoBlockBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_8\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLastBorderHover\":\"\",\"valueIconSize\":{\"first\":\"80\",\"second\":\"80\"},\"valueFirstBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueShadowHover\":\"__VAR__Large\",\"valueInfoBlockBorderRadius\":{\"border-radius\":\"10\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueIconPosition_multi\":[],\"valueInfoBlockShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueInfoBlockShadowHover\":\"__VAR__MEDIUM\",\"valueBorderRadius\":{\"border-radius\":\"5\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueInfoBlockIconPosition\":\"side\",\"valueText1Spacing\":\"10\",\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFirstBorderHover\":\"\",\"valueIconMargin_multi\":[],\"valueIconPosition\":\"top\",\"valueLastBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueInfoBlockBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__ACCENT_1\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueInfoBlockText2FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueIconBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueIconDimensions\":\"30\",\"valueCountBadgeVisibility\":\"false\",\"valueInfoBlockAlign\":\"left\",\"valueBorder_multi\":[],\"valueInfoBlockText1FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueIconBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Action\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueIconMargin\":{\"padding-right\":\"\",\"padding-left\":\"\",\"margin-left\":\"\",\"padding-bottom\":\"\",\"margin-bottom\":\"10\",\"margin\":\"\",\"padding\":\"\",\"margin-top\":\"\",\"padding-top\":\"\",\"margin-right\":\"\"},\"valueText2FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueIconColor\":\"__VAR__Text Lighter\",\"valuePadding_multi\":[],\"valueText1FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Gray\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueInfoBlockBorder\":{\"border-width\":\"1\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__COLOR_2\"},\"valueIconAlign\":\"center\",\"valueText1Font_multi\":[],\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueText2Font_multi\":[],\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Text Hover\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"\"}', 1),
('DEFAULT', '', 'info_block', '{\"valuePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueText2Visibility_multi\":[],\"valueText1Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valueInfoBlockBorderHover\":\"__VAR__COLOR_7\",\"valueText2Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Darker\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Small\"},\"valueInfoBlockPadding\":\"\",\"valueCountBadge\":\"\",\"valueInfoBlockText1Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_6\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__HEADING\"},\"valueIconSize_multi\":[],\"valueText1Visibility\":\"true\",\"valueInfoBlockPad\":{\"padding\":\"10\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueInfoBlockText2Font\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_13\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueText2Visibility\":\"true\",\"valueIconPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueIconBorderRadius\":{\"border-radius\":\"5\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueContentPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueInfoBlockBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_8\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLastBorderHover\":\"\",\"valueIconSize\":{\"first\":\"60\",\"second\":\"60\"},\"valueFirstBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueShadowHover\":\"__VAR__Large\",\"valueInfoBlockBorderRadius\":{\"border-radius\":\"10\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueIconPosition_multi\":[],\"valueInfoBlockShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueInfoBlockShadowHover\":\"__VAR__MEDIUM\",\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueInfoBlockIconPosition\":\"side\",\"valueText1Spacing\":\"3\",\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFirstBorderHover\":\"\",\"valueIconMargin_multi\":[],\"valueIconPosition\":\"side\",\"valueLastBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueInfoBlockBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__ACCENT_1\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueInfoBlockText2FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueIconBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueIconDimensions\":\"28\",\"valueCountBadgeVisibility\":\"false\",\"valueInfoBlockAlign\":\"left\",\"valueBorder_multi\":[],\"valueInfoBlockText1FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueIconBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Accent\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueIconMargin\":{\"padding-right\":\"\",\"padding-left\":\"\",\"margin-left\":\"\",\"padding-bottom\":\"\",\"margin-bottom\":\"\",\"margin\":\"\",\"padding\":\"\",\"margin-top\":\"\",\"padding-top\":\"\",\"margin-right\":\"15\"},\"valueText2FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueIconColor\":\"__VAR__Text Lighter\",\"valuePadding_multi\":[],\"valueText1FontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueInfoBlockBorder\":{\"border-width\":\"1\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__COLOR_2\"},\"valueIconAlign\":\"center\",\"valueText1Font_multi\":[],\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueText2Font_multi\":[],\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"\"}', 1);
INSERT INTO `journal3_style` (`style_name`, `style_label`, `style_type`, `style_value`, `serialized`) VALUES
('DEFAULT', '', 'side_products', '{\"valueRatingVisibility\":\"true\",\"valueStepper\":\"\",\"valuePadding\":{\"padding\":\"7\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueDetailsPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"8\"},\"valueCompareTooltipStatus\":\"true\",\"valueNameBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueImagePadding_multi\":[],\"valuePriceBoxBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valuePriceBoxMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"2\",\"margin-left\":\"\"},\"valueNameBoxPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueButtonsStatus\":\"true\",\"valueCompareMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueQuickviewTooltip\":\"\",\"valuePriceTaxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"12\"},\"valueSplitRatio\":\"25\",\"valueQuickviewIconHover\":\"\",\"valueNameBoxOffset\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewSize\":{\"first\":\"30\",\"second\":\"30\"},\"valuePriceBoxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueRatingPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"5\"},\"valueCartButton\":\"__VAR__Link\",\"valueCartStatus\":\"true\",\"valueRatingStyle\":\"__VAR__SMALL\",\"valuePriceBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCartTooltipStatus\":\"true\",\"valueWishlistMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"5\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valuePriceTaxStatus\":\"false\",\"valueRatingBoxDisplay\":\"\",\"valuePriceMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueCompareButton\":\"__VAR__Link\",\"valuePriceBoxOffset\":{\"first\":\"\",\"second\":\"\"},\"valueDetailsBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCompareStatus\":\"true\",\"valueImageBorderHover\":\"\",\"valueButtonsBoxDisplay\":\"\",\"valueStepperHeight\":\"\",\"valueImagePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valuePriceFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valueButtonsBoxBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCompareOffset\":{\"first\":\"\",\"second\":\"\"},\"valueWishlistButton\":\"__VAR__Link\",\"valueWishlistStatus\":\"true\",\"valueSecondImageStatus\":\"false\",\"valueNameBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueImageBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueButtonsBoxMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"-3\"},\"valueNameAlign\":\"center\",\"valueButtonsBoxBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueRatingBoxBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueImageShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCartIcon\":{\"size\":\"14\",\"color\":\"\",\"offsetX\":\"1\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valuePriceStatus\":\"true\",\"valueNameMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueButtonsBoxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueNameWidth\":\"auto\",\"valueWishOffset\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewTooltipPosition\":\"top\",\"valueRatingBoxMargin\":{\"margin\":\"\",\"margin-top\":\"2\",\"margin-right\":\"\",\"margin-bottom\":\"3\",\"margin-left\":\"\"},\"valueRatingBoxBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueNameFont\":{\"word-spacing\":\"\",\"line-height\":\"1.3\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valueDetailsShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueStepperBorder\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueWishlistDisplay\":\"icon\",\"valueRatingBoxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCompareIcon\":{\"size\":\"13\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueNameBoxBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueWishlistIconHover\":\"\",\"valuePriceAlign\":\"start\",\"valueRatingShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueStepperMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valuePriceWidth\":\"auto\",\"valueNameStatus\":\"true\",\"valueButtonsBoxOffset\":{\"first\":\"\",\"second\":\"\"},\"valueCompareIconHover\":\"\",\"valuePriceBoxDisplay\":\"\",\"valueDetailsBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueNameBoxShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDetailsList\":\"bottom\",\"valueBorderRadius\":{\"border-radius\":\"3\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueWishlistIcon\":{\"size\":\"13\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueNameBoxSize\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewPadding\":{\"padding\":\"10\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueRatingBoxOffset\":{\"first\":\"\",\"second\":\"\"},\"valueDetailsShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueNameFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCartDisplay\":\"icon\",\"valuePriceBoxBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueStepperStatus\":\"false\",\"valueWishlistStockStatus\":\"\",\"valueCartIconHover\":\"\",\"valueImageShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCartSize\":{\"first\":\"\",\"second\":\"\"},\"valueNameBoxDisplay\":\"\",\"valueQuickviewVisibility\":\"true\",\"valueQuickviewButton\":\"\",\"valuePriceBoxShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueQuickviewRadius\":{\"border-radius\":\"50\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"%\",\"custom\":\"\"},\"valueItemsSpacing\":\"\",\"valueRatingBoxPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valuePriceBoxSize\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewOffset\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewTooltipStatus\":\"true\",\"valueCompareStockStatus\":\"\",\"valueCartWidth\":\"auto\",\"valueWishGroupMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueWishButtonsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCompareSize\":{\"first\":\"\",\"second\":\"\"},\"valueNamePadding\":{\"padding\":\"5\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueButtonsBoxPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueWishlistTooltipPosition\":\"top\",\"valueGrayscale\":\"\",\"valuePriceBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueImageBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueDetailsBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valuePriceNewFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Action\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueWishButtonsBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueRatingAlign\":\"left\",\"valueCartStockStatus\":\"\",\"valueWishlistSize\":{\"first\":\"\",\"second\":\"\"},\"valueImageMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueCompareTooltipPosition\":\"top\",\"valuePriceShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueImageBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_1\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueDetailsMargin_multi\":[],\"valueWishSize\":{\"first\":\"\",\"second\":\"\"},\"valueButtonsBoxBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueBackground_multi\":[],\"valuePricePadding\":{\"padding\":\"5\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueRatingBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valuePadding_multi\":[],\"valueNameBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueDetailsPadding_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":{\"padding\":\"\",\"padding-left\":\"0\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-top\":\"8\"}}],\"valueSideCartStatus\":\"true\",\"valueQuickviewIcon\":{\"size\":\"16\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"ebef\",\"name\":\"zoom-in\"},\"type\":\"\",\"image\":\"\"},\"valueRatingBoxBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueNameBoxBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCartTooltipPosition\":\"top\",\"valueButtonsBoxShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSplitRatio_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":\"100\"}],\"valueButtonsBoxSize\":{\"first\":\"\",\"second\":\"\"},\"valueRatingMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueRatingBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_5\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueNameShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valuePriceBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueNameBoxMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"2\",\"margin-left\":\"\"},\"valueNameBoxBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueDetailsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueRatingBoxShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valuePriceBoxPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueNameBoxFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valuePriceOldFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Gray\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Small\"},\"valueRatingBoxSize\":{\"first\":\"\",\"second\":\"\"},\"valueQuickviewShow\":\"hover\",\"valueNameOverflow\":\"true\",\"valueDetailsBorderHover\":\"\",\"valueDetailsMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueCartMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"5\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueQuickviewBorderRadius\":{\"border-radius\":\"50\",\"borderRadiusUnit\":\"%\"},\"valueBorderHover\":\"\",\"valuePriceBoxBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueWishlistTooltipStatus\":\"true\",\"valueRatingEmpty\":\"false\",\"valueItemSpacing\":\"10\"}', 1),
('Mobile Menu', '', 'menu', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Small\"},\"valueAccordionOpenIconHover\":\"\",\"valueAccordionCloseIconHover\":\"\",\"valueAccordionBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueTextTruncate\":\"true\",\"valueCountBadge\":\"\",\"valueBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueAccordionBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueItemPadding_multi\":[],\"valueDivider\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueIconSize\":\"18\",\"valueSFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueItemPadding\":{\"padding\":\"10\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"0\"},\"valueDropdownIndicator\":\"false\",\"valueStaticFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCountBadgePosition\":\"inline\",\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueIconActive\":\"\",\"valueSFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueDisplay\":\"\",\"valueIconHover\":\"\",\"valueAccordionBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueAccordionBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCountBadgeVisibility\":\"false\",\"valueCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueIconMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"8\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueAccordionBorderHover\":\"\",\"valueIconColor\":\"\",\"valueAccordionCloseIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueFont_multi\":[],\"valueAccordionOpenIcon\":{\"size\":\"\",\"color\":\"\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueIconWidth\":\"22\",\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Accent Hover\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__ACCENT_3\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_3\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueItemSpacing\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"}}', 1),
('Mobile Menu', '', 'accordion_menu', '{\"valueAccordionCloseIconActive\":\"__VAR__COLOR_9\",\"valuePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueAccordionOpenIconActive\":\"\",\"valueAccordionOpenIconHover\":\"\",\"valueAccordionCloseIconHover\":\"\",\"valueAccordionBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueAccordionSubIconSize\":\"\",\"valueAccordionSubIconWidth\":\"\",\"valueAccordionBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueAccordionSubPadding1\":\"20\",\"valueAccordionSubStyle1\":\"__VAR__Mobile Menu\",\"valueAccordionSubPadding2\":\"40\",\"valueAccordionSubStyle2\":\"\",\"valueAccordionSubPadding3\":\"50\",\"valueAccordionSubStyle3\":\"\",\"valueAccordionSubPadding4\":\"60\",\"valueAccordionSubStyle4\":\"\",\"valueAccordionSubIconMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueAccordionOpenPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueAccordionBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueAccordionBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueAccordionBorderHover\":\"\",\"valueAccordionCloseIcon\":{\"size\":\"20\",\"color\":\"__VAR__Accent Hover\",\"offsetX\":\"5\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"eb86\",\"name\":\"minus-circle2\"},\"type\":\"\",\"image\":\"\"},\"valueAccordionOpenIcon\":{\"size\":\"20\",\"color\":\"\",\"offsetX\":\"5\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"eba1\",\"name\":\"plus-circle2\"},\"type\":\"\",\"image\":\"\"},\"valueAccordionMenuStyle\":\"__VAR__Mobile Menu\",\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"}}', 1),
('DEFAULT', '', 'cart', '{\"valueCartLabel\":{\"lang_1\":\"Cart\"},\"valueCartIcon_multi\":[],\"valueCartIconBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCartCountBadge\":\"__VAR__DEFAULT\",\"valueCartIconBorderHover\":\"\",\"valueCartTextAlign\":\"left\",\"valueCartIconBorderRadius\":{\"border-radius\":\"30\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueCartLabelFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueCartIcon\":{\"size\":\"30\",\"color\":\"__VAR__Text Lighter\",\"offsetX\":\"1\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"2\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"e933\",\"name\":\"noun_bag_1740356_000000\"},\"type\":\"\",\"image\":\"\"},\"valueCartShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCartIconSize\":\"49\",\"valueCartTextFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Light\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"400\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valueCartBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueCartTextFontHover\":\"\",\"valueCartCustomText\":\"default\",\"valueCartTextVisibility\":\"false\",\"valueCartShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCartCheckoutLink\":\"true\",\"valueCartCountBadgeVisibility_multi\":[],\"valueCartDisplay\":\"full\",\"valueCartLabelFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Light\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__XS\"},\"valueCartCountBadgeOffset_multi\":[],\"valueCartIconHover\":\"__VAR__Accent Lighter\",\"valueCartTextPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"15\",\"padding-bottom\":\"\",\"padding-left\":\"20\"},\"valueCartLabelVisibility\":\"true\",\"valueCartCountBadgeZ\":\"true\",\"valueCartIconBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCartLabelOffset\":{\"first\":\"\",\"second\":\"\"},\"valueCartBorder_multi\":[],\"valueCartIconDimensions\":{\"first\":\"40\",\"second\":\"40\"},\"valueCartCountBadgeVisibility\":\"true\",\"valueCartIconBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCartCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueCartMargin_multi\":[],\"valueCartBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCartBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCartBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCartMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueCartBorderHover\":\"\"}', 1),
('Bordered', '', 'button', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valuePadding\":{\"padding\":\"13\",\"padding-top\":\"\",\"padding-right\":\"18\",\"padding-bottom\":\"\",\"padding-left\":\"18\"},\"valueBGFocus\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderActive\":\"\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Text Lighter\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowFocus\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocusColor\":\"__VAR__Text\",\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSize\":{\"first\":\"\",\"second\":\"\"},\"valueMaxSize\":{\"first\":\"\",\"second\":\"\"},\"valueBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocus\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorderFocus\":\"\",\"valueBGActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background Shade\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"1\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Gray\"},\"valueFontActiveColor\":\"__VAR__Text\",\"valueBorderHover\":\"__VAR__Accent Hover\"}', 1);
INSERT INTO `journal3_style` (`style_name`, `style_label`, `style_type`, `style_value`, `serialized`) VALUES
('Tabs Centered', '', 'tabs', '{\"valueLastTabBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Dark\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valuePadding\":{\"padding\":\"15\",\"padding-top\":\"\",\"padding-right\":\"20\",\"padding-bottom\":\"\",\"padding-left\":\"20\"},\"valueActiveBorderColor\":\"\",\"valueTrackHeight\":\"5\",\"valuetabAlign\":\"right\",\"valueTabAlign\":\"center\",\"valueTabWhiteSpace\":\"nowrap\",\"valueScrollTouch\":\"true\",\"valueTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabSpace\":\"10\",\"valueTabWidth\":\"\",\"valueIconColorHover\":\"\",\"valueBorderActive\":\"\",\"valueActiveTabIndicatorOffset\":{\"first\":\"\",\"second\":\"\"},\"valueFullBGShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background Shade\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueScrollColor\":\"__VAR__Action\",\"valueFullBG\":\"false\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueContentBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueDivider\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueBorderBottom\":\"\",\"valueContentPadding\":{\"0\":\"1\",\"1\":\"5\",\"padding\":\"20\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueTrackColor\":\"__VAR__White\",\"valueLastBorderHover\":\"\",\"valueIconSize\":\"18\",\"valueFirstBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueDisplay_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Landscape\",\"value\":\"stretch\"}],\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueTabHeight\":\"\",\"valueLastTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsDirection\":\"h\",\"valueFullBGBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDisplay\":\"center\",\"valueFirstBorderHover\":\"\",\"valueActiveTabIndicator\":\"false\",\"valueFirstBorderActive\":\"\",\"valueActiveTabIndicatorColor\":\"__VAR__COLOR_11\",\"valueActiveTabIndicatorSize\":\"10\",\"valueLastBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueFullBGBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContentBorder\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueFirstTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsBorder_multi\":[],\"valueContentBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background Shade\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContentTypography\":\"\",\"valueLastTabAlign\":\"\",\"valueTabsWidth\":\"50\",\"valueBorder_multi\":[],\"valueLastBorderActive\":\"\",\"valueIconColor\":\"\",\"valueActiveTabBottomColor\":\"__VAR__COLOR_12\",\"valueFont_multi\":[],\"valuePadding_multi\":[],\"valueTabsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueLastTabBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabWidth_multi\":[],\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background Shade\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabsBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLastTabFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueScroll\":\"true\",\"valueIconColorActive\":\"\",\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Background\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"\",\"valueLastTabFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"}}', 1),
('Currency', 'Currency', 'language_currency', '{\"valueDropdownDisplay\":\"code\",\"valueSymbolColorHover\":\"\",\"valueSymbolBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueTextFont_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__XXS\"}}],\"valueSymbolShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSymbolSize\":{\"first\":\"\",\"second\":\"\"},\"valueDisplay_multi\":[],\"valueButtonBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueDropdownIndicator\":\"true\",\"valueTextFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"__VAR__Text Light\"},\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"700\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__XS\"},\"valueTextFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Accent Light\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueButtonBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueDisplay\":\"code\",\"valueSymbolShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueTextPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueSymbolBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"__VAR__Transparent\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueSymbolFontSize\":\"\",\"valueSymbolColor\":{\"color\":\"\"},\"valueSymbolRadius\":{\"border-radius\":\"0\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"}}', 1),
('Round Corners', '', 'form_input', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valuePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valuePlaceholderColor\":\"\",\"valueShadowFocus\":\"__VAR__Inner\",\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBorderRadius\":{\"border-radius\":\"40\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueWidth\":\"350\",\"valueHeight\":\"\",\"valueFontFocus\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBackgroundFocus\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderFocus\":\"\",\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"\"}', 1),
('Default Light', '', 'tabs', '{\"valueLastTabBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valuePadding\":{\"padding\":\"0\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"10\",\"padding-left\":\"\"},\"valueActiveBorderColor\":\"\",\"valuetabAlign\":\"right\",\"valueTabAlign\":\"center\",\"valueTabWhiteSpace\":\"nowrap\",\"valueScrollTouch\":\"true\",\"valueTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueTabSpace\":\"20\",\"valueTabWidth\":\"\",\"valueIconColorHover\":\"\",\"valueBorderActive\":\"__VAR__Accent Hover\",\"valueActiveTabIndicatorOffset\":{\"first\":\"\",\"second\":\"\"},\"valueFullBGShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueScrollColor\":\"__VAR__Fire\",\"valueFullBG\":\"false\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueContentBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueDivider\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueBorderBottom\":\"\",\"valueContentPadding\":{\"0\":\"1\",\"1\":\"5\",\"padding\":\"\",\"padding-top\":\"20\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueTrackColor\":\"__VAR__White\",\"valueLastBorderHover\":\"\",\"valueIconSize\":\"18\",\"valueFirstBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueDisplay_multi\":[],\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueTabHeight\":\"\",\"valueLastTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueTabsShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueTabsDirection\":\"h\",\"valueFullBGBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDisplay\":\"default\",\"valueFirstBorderHover\":\"\",\"valueActiveTabIndicator\":\"false\",\"valueFirstBorderActive\":\"\",\"valueActiveTabIndicatorColor\":\"__VAR__COLOR_11\",\"valueActiveTabIndicatorSize\":\"10\",\"valueLastBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueFullBGBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContentBorder\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueFirstTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueTabsBorder_multi\":[],\"valueContentBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_12\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContentTypography\":\"\",\"valueLastTabAlign\":\"\",\"valueTabsWidth\":\"50\",\"valueBorder_multi\":[],\"valueLastBorderActive\":\"\",\"valueIconColor\":\"\",\"valueActiveTabBottomColor\":\"__VAR__COLOR_12\",\"valueFont_multi\":[],\"valuePadding_multi\":[],\"valueTabsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueLastTabBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabWidth_multi\":[],\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Accent Hover\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"1\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Transparent\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_12\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabsBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLastTabFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueScroll\":\"true\",\"valueIconColorActive\":\"\",\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_1\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"__VAR__Accent Hover\",\"valueLastTabFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"}}', 1),
('Default Centered', '', 'tabs', '{\"valueLastTabBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Neutral\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Medium 2\"},\"valuePadding\":{\"padding\":\"0\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"10\",\"padding-left\":\"\"},\"valueActiveBorderColor\":\"\",\"valueTrackHeight\":\"1\",\"valuetabAlign\":\"right\",\"valueTabAlign\":\"center\",\"valueTabWhiteSpace\":\"nowrap\",\"valueScrollTouch\":\"true\",\"valueTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabSpace\":\"20\",\"valueTabWidth\":\"\",\"valueIconColorHover\":\"\",\"valueBorderActive\":\"__VAR__Action\",\"valueActiveTabIndicatorOffset\":{\"first\":\"\",\"second\":\"\"},\"valueFullBGShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueScrollColor\":\"__VAR__Accent Lighter\",\"valueFullBG\":\"false\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Action\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueContentBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueDivider\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueBorderBottom\":\"20\",\"valueContentPadding\":{\"0\":\"1\",\"1\":\"5\",\"padding\":\"\",\"padding-top\":\"20\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueTrackColor\":\"\",\"valueLastBorderHover\":\"\",\"valueIconSize\":\"18\",\"valueFirstBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueDisplay_multi\":[{\"min\":\"\",\"max\":\"__VAR__Tablet\",\"value\":\"default\"}],\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueTabHeight\":\"\",\"valueLastTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsDirection\":\"h\",\"valueFullBGBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDisplay\":\"center\",\"valueFirstBorderHover\":\"\",\"valueActiveTabIndicator\":\"false\",\"valueFirstBorderActive\":\"\",\"valueActiveTabIndicatorColor\":\"__VAR__COLOR_11\",\"valueActiveTabIndicatorSize\":\"10\",\"valueLastBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueFullBGBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContentBorder\":{\"width\":\"\",\"style\":\"\",\"color\":\"\"},\"valueFirstTabBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueTabsBorder_multi\":[],\"valueContentBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__COLOR_12\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContentTypography\":\"\",\"valueLastTabAlign\":\"\",\"valueTabsWidth\":\"50\",\"valueBorder_multi\":[],\"valueLastBorderActive\":\"\",\"valueIconColor\":\"\",\"valueActiveTabBottomColor\":\"__VAR__COLOR_12\",\"valueFont_multi\":[],\"valuePadding_multi\":[],\"valueTabsBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueLastTabBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabWidth_multi\":[],\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Accent Hover\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"1\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Transparent\"},\"valueBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueTabsBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLastTabFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueScroll\":\"true\",\"valueIconColorActive\":\"\",\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderHover\":\"__VAR__Action\",\"valueLastTabFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"}}', 1),
('Products', '', 'carousel', '{\"valueBullets\":\"true\",\"valueCarouselBulletsSize\":{\"first\":\"8\",\"second\":\"8\"},\"valueCarouselArrowSideIconNextActive\":\"\",\"valueCarouselArrowPosition\":\"side\",\"valueCarouselArrowSideBorderActive\":\"\",\"valueCarouselArrowSideBorderHover\":\"\",\"valueArrowsHover\":\"true\",\"valueCarouselArrowSideIconNextHover\":\"\",\"valueCarouselBulletBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselArrowSideOffset\":{\"first\":\"-12\",\"second\":\"-30\"},\"valueCarouselArrowSideBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselBulletBorderActive\":\"\",\"valueArrowsStatus_multi\":[{\"min\":\"\",\"max\":\"__VAR__Tablet\",\"value\":\"none\"}],\"valueCarouselArrowSideIcon\":{\"size\":\"\",\"color\":\"__VAR__Text Lighter\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"rtl\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"e5c4\",\"name\":\"arrow_back\"},\"type\":\"\",\"image\":\"\"},\"valueCarouselBulletShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselArrowSideDisabled\":\"0\",\"valueCarouselBulletColorHover\":\"__VAR__Action\",\"valueArrowsStatus\":\"hover\",\"valueCarouselArrowSideShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueOverflow_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Landscape\",\"value\":\"false\"}],\"valueCarouselArrowSideBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselArrowSideIconActive\":\"\",\"valueCarouselArrowSideShadow\":{\"offsetX\":\"0\",\"offsetY\":\"5\",\"blur\":\"30\",\"spread\":\"-5\",\"color\":\"rgba(0, 0, 0, 0.15)\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselBulletColor\":\"__VAR__Dark\",\"valueCarouselBulletSpacing\":\"5\",\"valueCarouselArrowSideSize\":{\"first\":\"30\",\"second\":\"30\"},\"valueCarouselBulletBorderRadius\":{\"border-radius\":\"20\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselBulletsPadding\":\"15\",\"valueCarouselBulletAlign\":\"center\",\"valueBulletsStatus\":\"always\",\"valueDelay\":\"4000\",\"valueOverflow\":\"true\",\"valueCarouselBulletsOffset\":{\"first\":\"\",\"second\":\"-10\"},\"valueCarouselBulletShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueAutoPlay\":\"true\",\"valueCarouselArrowSideIconHover\":\"\",\"valueCarouselArrowSideShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSpeed\":\"800\",\"valueCarouselBulletColorActive\":\"__VAR__Action\",\"valuePauseOnHover\":\"true\",\"valueCarouselBulletShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselArrowSideIconNext\":{\"size\":\"\",\"color\":\"__VAR__Text Lighter\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"rtl\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"e5c8\",\"name\":\"arrow_forward\"},\"type\":\"\",\"image\":\"\"},\"valueArrows\":\"true\",\"valueCarouselArrowSideBorder\":{\"border-width\":\"3\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Background\"},\"valueBulletsHover\":\"true\",\"valueCarouselBulletBorderHover\":\"\",\"valueCarouselArrowSideBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Dark\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselBulletsBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselBulletPadding\":\"\",\"valueCarouselBulletBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCarouselArrowSideBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Accent Hover\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"}}', 1),
('Product Page Main Image', '', 'carousel', '{\"valueBullets\":\"true\",\"valueCarouselBulletsSize\":{\"first\":\"10\",\"second\":\"5\"},\"valueCarouselArrowSideIconNextActive\":\"\",\"valueCarouselArrowPosition\":\"side\",\"valueCarouselArrowSideBorderActive\":\"\",\"valueCarouselArrowSideBorderHover\":\"\",\"valueArrowsHover\":\"true\",\"valueCarouselArrowSideIconNextHover\":\"\",\"valueCarouselBulletBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselArrowSideOffset\":{\"first\":\"0\",\"second\":\"0\"},\"valueCarouselArrowSideBackgroundActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselBulletBorderActive\":\"\",\"valueArrowsStatus_multi\":[],\"valueCarouselArrowSideIcon\":{\"size\":\"35\",\"color\":\"__VAR__Gray\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"rtl\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"e93e\",\"name\":\"arrow\"},\"type\":\"\",\"image\":\"\"},\"valueCarouselBulletShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselArrowSideDisabled\":\"0\",\"valueCarouselBulletColorHover\":\"__VAR__Action\",\"valueArrowsStatus\":\"always\",\"valueCarouselArrowSideShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueOverflow_multi\":[],\"valueCarouselArrowSideBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselArrowSideIconActive\":\"\",\"valueCarouselArrowSideShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselBulletColor\":\"__VAR__Gray\",\"valueCarouselBulletSpacing\":\"8\",\"valueCarouselArrowSideSize\":{\"first\":\"40\",\"second\":\"40\"},\"valueCarouselBulletBorderRadius\":{\"border-radius\":\"20\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselBulletsPadding\":\"15\",\"valueCarouselBulletAlign\":\"center\",\"valueBulletsStatus\":\"always\",\"valueDelay\":\"3000\",\"valueOverflow\":\"true\",\"valueCarouselBulletsOffset\":{\"first\":\"\",\"second\":\"-10\"},\"valueCarouselBulletShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueAutoPlay\":\"false\",\"valueCarouselArrowSideIconHover\":\"\",\"valueCarouselArrowSideShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueSpeed\":\"500\",\"valueCarouselBulletColorActive\":\"__VAR__Action\",\"valuePauseOnHover\":\"true\",\"valueCarouselBulletShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueCarouselArrowSideIconNext\":{\"size\":\"35\",\"color\":\"__VAR__Gray\",\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"rtl\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"e93f\",\"name\":\"arrow2\"},\"type\":\"\",\"image\":\"\"},\"valueArrows\":\"true\",\"valueCarouselArrowSideBorder\":{\"border-width\":\"0\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Background Shade\"},\"valueBulletsHover\":\"true\",\"valueCarouselBulletBorderHover\":\"\",\"valueCarouselArrowSideBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueCarouselBulletsBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueCarouselBulletPadding\":\"\",\"valueCarouselBulletBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueCarouselArrowSideBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"}}', 1);
INSERT INTO `journal3_style` (`style_name`, `style_label`, `style_type`, `style_value`, `serialized`) VALUES
('DEFAULT', '', 'date_time', '{\"valueItemBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueItemShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueActiveBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueDateTimePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueActiveFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueTriangleColor\":\"\",\"valueDateTimeBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\"},\"valueHoverShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDateTimeShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueTriangleOffset\":{\"first\":\"\",\"second\":\"\"},\"valueDateTimeItemBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueButtonStyle\":\"\",\"valueActiveShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueDateTimeBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueHoverBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueHoverFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueDateTimeBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueDateTimeFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"}}', 1),
('Slider Layer 1', '', 'container', '{\"valueContainerBorderHover\":\"\",\"valueContainerPadding\":{\"padding\":\"3\",\"padding-top\":\"\",\"padding-right\":\"8\",\"padding-bottom\":\"\",\"padding-left\":\"8\"},\"valueContainerShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContainerBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueContainerShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContainerFont_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__XXXS\"}}],\"valueContainerBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueContainerFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueContainerBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContainerBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Action\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContainerMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueContainerFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"700\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Small\"}}', 1),
('Slider Layer 2', '', 'container', '{\"valueContainerBorderHover\":\"\",\"valueContainerPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueContainerShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContainerBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueContainerShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContainerFont_multi\":[{\"min\":\"\",\"max\":\"__VAR__Phone Portrait\",\"value\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__Heading 3\"}}],\"valueContainerBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueContainerFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueContainerBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContainerBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContainerMargin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"valueContainerFont\":{\"word-spacing\":\"\",\"line-height\":\"1.2\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"32\"}}', 1),
('Slider Link', '', 'button', '{\"valueFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Light\",\"text-align\":\"\",\"text-transform\":\"none\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__DEFAULT\"},\"valuePadding\":{\"padding\":\"0\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"5\",\"padding-left\":\"\"},\"valueBGFocus\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueBorderActive\":\"\",\"valueFontActive\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_5\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBGHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowFocus\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueShadowHover\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocusColor\":\"\",\"valueBorderRadius\":{\"border-radius\":\"0\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueShadow\":\"__VAR__None\",\"valueSize\":{\"first\":\"\",\"second\":\"\"},\"valueMaxSize\":{\"first\":\"\",\"second\":\"\"},\"valueBG\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueShadowActive\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueFontFocus\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__COLOR_5\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorderFocus\":\"\",\"valueBGActive\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"true\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":\"__VAR__Text Lighter\",\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"2\",\"border-left-width\":\"\",\"border-style\":\"solid\",\"border-color\":\"__VAR__Accent Lighter\"},\"valueFontActiveColor\":\"\",\"valueBorderHover\":\"__VAR__Action\"}', 1),
('DEFAULT_COPY', '', 'label', '{\"valueLabelFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"__VAR__Headings\",\"color\":\"__VAR__Text\",\"text-align\":\"\",\"text-transform\":\"uppercase\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"700\",\"textShadowColor\":\"\",\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"__VAR__XXS\"},\"valueLabelBackground\":{\"background-size\":\"contain\",\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"__VAR__Gold\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueLabelBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueLabelBorderRadius\":{\"border-radius\":\"\",\"border-top-left-radius\":\"\",\"border-top-right-radius\":\"\",\"border-bottom-right-radius\":\"\",\"border-bottom-left-radius\":\"\",\"borderRadiusUnit\":\"px\",\"custom\":\"\"},\"valueLabelPadding\":{\"padding\":\"6\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueLabelShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueLabelSize\":{\"first\":\"45\",\"second\":\"\"}}', 1),
('Narrow Content Width', '', 'page', '{\"valueBodyBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueColumnRightBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueContainerPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueBoxedLayout\":\"fullwidth\",\"valueColumnRightBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueColumnLeftPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueBoxedBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueColumnLeftTabletStatus\":\"true\",\"valueBoxedBodySpacing\":\"\",\"valueBoxedContainerShadow\":{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"false\"},\"valueContentPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valuePageTitleVisibility\":\"true\",\"valueBoxedHeaderPadding\":\"\",\"valueColumnRightTabletStatus\":\"true\",\"valueContentSidePadding\":\"\",\"valueContentBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContainerWidth\":\"1000\",\"valuePageTitleStyle\":\"\",\"valueColumnLeftBorder\":{\"border-width\":\"\",\"border-top-width\":\"\",\"border-right-width\":\"\",\"border-bottom-width\":\"\",\"border-left-width\":\"\",\"border-style\":\"\",\"border-color\":\"\"},\"valueColumnsWidth\":\"\",\"valueColumnRightPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueColumnLeftBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"},\"valueContentWidth\":\"\",\"valueContainerBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":\"\",\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\"}}', 1),
('LINKS_MENU_5MIU4S', 'Footer Links', 'links_menu', '{\"valuePadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"\",\"padding-left\":\"\"},\"valueScrollTouch\":\"true\",\"valueItemWidth\":\"auto\",\"valueCountBadge\":\"\",\"valueScrollColor\":{\"color\":\"\"},\"valueLinksPlusMobileCloseOffset\":{\"first\":\"\",\"second\":\"\"},\"valueItemDividerHover\":{\"color\":\"\"},\"valueLinksColumnDividerColor\":{\"color\":\"\"},\"valueLinksPlusButtonMobileStatus\":\"false\",\"valueTrackColor\":{\"color\":\"\"},\"valueItemFontHover\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":{\"color\":\"\"},\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueItemBackgroundHover\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueLinksColumnDividerWidth\":\"\",\"valueItemPadding\":{\"padding\":\"\",\"padding-top\":\"\",\"padding-right\":\"\",\"padding-bottom\":\"10\",\"padding-left\":\"\"},\"valueDirection\":\"vertical\",\"valueLinksPlusMobileOpen\":{\"size\":\"\",\"color\":{\"color\":\"\"},\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueItemBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"},\"valueTitleDivider\":\"\",\"valueItemFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"__VAR__Neutral\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":{\"color\":\"\"},\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueAlign\":\"start\",\"valueLinksPlusMobileClose\":{\"size\":\"\",\"color\":{\"color\":\"\"},\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueLinksColumns\":\"initial\",\"valueItemDivider\":{\"width\":\"\",\"style\":\"\",\"color\":{\"color\":\"\"}},\"valueTitleFont\":{\"word-spacing\":\"\",\"line-height\":\"\",\"font-family\":\"\",\"color\":{\"color\":\"\"},\"text-align\":\"\",\"text-transform\":\"\",\"text-decoration\":\"\",\"font-style\":\"\",\"textShadowBlur\":\"\",\"font-weight\":\"\",\"textShadowColor\":{\"color\":\"\"},\"textShadowOffsetX\":\"\",\"textShadowOffsetY\":\"\",\"word-break\":\"\",\"letter-spacing\":\"\",\"font-size\":\"\"},\"valueLinksColumnDividerStyle\":\"solid\",\"valueCountBadgeVisibility\":\"false\",\"valueCountBadgeOffset\":{\"first\":\"\",\"second\":\"\"},\"valueLinksColumnGap\":\"\",\"valueModuleTitle\":\"\",\"valueLayout\":\"start\",\"valueItemIcon\":{\"size\":\"\",\"color\":{\"color\":\"\"},\"offsetX\":\"\",\"offsetY\":\"\",\"flip\":\"\",\"margin\":{\"margin\":\"\",\"margin-top\":\"\",\"margin-right\":\"\",\"margin-bottom\":\"\",\"margin-left\":\"\"},\"none\":\"false\",\"icon\":{\"code\":\"\",\"name\":\"\"},\"type\":\"\",\"image\":\"\"},\"valueScroll\":\"false\",\"valueTitleAlign\":\"\",\"valueItemIconHover\":{\"color\":\"\"},\"valueBackground\":{\"backgroundPositionX\":\"\",\"backgroundPositionY\":\"\",\"background-attachment\":\"\",\"background-color\":{\"color\":\"\"},\"background-origin\":\"\",\"background-position\":\"\",\"backgroundSizeW\":\"\",\"overlay\":\"\",\"gradient\":\"\",\"backgroundSizeUnit\":\"px\",\"none\":\"false\",\"backgroundSizeH\":\"\",\"background-repeat\":\"\",\"backgroundPositionUnit\":\"px\",\"background-image\":\"\",\"background-blend-mode\":\"\"}}', 1);

-- --------------------------------------------------------

--
-- Table structure for table `journal3_variable`
--

CREATE TABLE `journal3_variable` (
  `variable_name` varchar(64) NOT NULL,
  `variable_label` varchar(64) NOT NULL,
  `variable_type` varchar(64) NOT NULL,
  `variable_value` text NOT NULL,
  `serialized` int(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `journal3_variable`
--

INSERT INTO `journal3_variable` (`variable_name`, `variable_label`, `variable_type`, `variable_value`, `serialized`) VALUES
('Background', '', 'color', 'rgba(255, 255, 255, 1)', 0),
('Accent Light', '', 'color', 'rgba(58, 88, 173, 1)', 0),
('Gold', '', 'color', 'rgba(254, 213, 84, 1)', 0),
('Phone Portrait', '', 'breakpoint', '470', 0),
('Phone Landscape', '', 'breakpoint', '760', 0),
('Tablet', '', 'breakpoint', '1024', 0),
('Desktop', '', 'breakpoint', '1500', 0),
('None', '', 'shadow', '{\"offsetX\":\"\",\"offsetY\":\"\",\"blur\":\"\",\"spread\":\"\",\"color\":\"\",\"inner\":\"false\",\"none\":\"true\"}', 1),
('Accent', '', 'font', '{\"type\":\"google\",\"subsets\":\"latin-ext\",\"font-family\":\"Great Vibes\",\"font-weight\":\"regular\",\"font-style\":\"\"}', 1),
('Background Lighter', '', 'color', 'rgba(250, 250, 250, 1)', 0),
('Text', '', 'color', 'rgba(51, 51, 51, 1)', 0),
('DEFAULT', '', 'value', '20', 0),
('Medium 2', '', 'font_size', '16', 0),
('Transparent', '', 'color', 'rgba(0, 0, 0, 0)', 0),
('DEFAULT', 'DEFAULT', 'font_size', '14', 0),
('Small', '', 'font_size', '13', 0),
('XXS', '', 'font_size', '11', 0),
('XXL', '', 'font_size', '70', 0),
('Light', '', 'gradient', 'background-image: linear-gradient(to top, #fff ,#dee6f9);', 0),
('DEFAULT', '', 'gradient', 'background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);', 0),
('Heading 2', '', 'font_size', '30', 0),
('XXXL', '', 'font_size', '80', 0),
('Success', '', 'color', 'rgba(80, 173, 85, 1)', 0),
('Heading 4', '', 'font_size', '22', 0),
('Heading 3', '', 'font_size', '26', 0),
('Heading', '', 'font_size', '40', 0),
('Inner', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"0\",\"blur\":\"5\",\"spread\":\"\",\"color\":\"rgba(0, 0, 0, 0.1)\",\"inner\":\"true\",\"none\":\"false\"}', 1),
('Background Darker', '', 'color', 'rgba(238, 238, 238, 1)', 0),
('XXXS', '', 'font_size', '10', 0),
('Headings', '', 'font', '{\"type\":\"google\",\"subsets\":\"latin-ext\",\"font-family\":\"Oswald\",\"font-weight\":\"regular\",\"font-style\":\"\"}', 1),
('Light', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"10\",\"blur\":\"30\",\"spread\":\"\",\"color\":\"rgba(0, 0, 0, 0.1)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('XL', '', 'font_size', '60', 0),
('Large', '', 'font_size', '48', 0),
('DEFAULT', '', 'font', '{\"type\":\"google\",\"subsets\":\"latin-ext\",\"font-family\":\"Noto Sans\",\"font-weight\":\"regular\",\"font-style\":\"normal\"}', 1),
('DEFAULT', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"10\",\"blur\":\"65\",\"spread\":\"-5\",\"color\":\"rgba(0, 0, 0, 0.5)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('Phone Small', '', 'breakpoint', '359', 0),
('Action', '', 'color', 'rgba(226, 41, 61, 1)', 0),
('Medium 3', '', 'font_size', '17', 0),
('Gray', '', 'color', 'rgba(105, 105, 115, 1)', 0),
('Mail', '', 'gradient', 'background: repeating-linear-gradient(140deg,#168CDA,#3498db 8px,#fafafa 8px,#fafafa 14px,#EB524E 14px,#ff5e37 21px,#fafafa 21px,#fafafa 30px) ; background-size: 100% 3px; background-repeat: no-repeat;', 0),
('Large', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"15\",\"blur\":\"90\",\"spread\":\"-10\",\"color\":\"rgba(0, 0, 0, 0.2)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('Laptop', '', 'breakpoint', '1300', 0),
('Border', '', 'color', 'rgba(221, 221, 221, 1)', 0),
('XS', 'XS', 'font_size', '14', 0),
('Medium', '', 'value', '10', 0),
('Tabs', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"-5\",\"blur\":\"10\",\"spread\":\"-5\",\"color\":\"rgba(0, 0, 0, 0.5)\",\"inner\":\"true\",\"none\":\"false\"}', 1),
('Upward', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"-15\",\"blur\":\"100\",\"spread\":\"-10\",\"color\":\"rgba(0, 0, 0, 0.1)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('Heading 5', '', 'font_size', '18', 0),
('SERIF', '', 'font', '{\"type\":\"system\",\"subsets\":\"latin-ext\",\"font-family\":\"Georgia, serif\",\"font-weight\":\"regular\",\"font-style\":\"\"}', 1),
('Overlay', '', 'gradient', 'background-image: linear-gradient( to top, rgba(0,0,0,.7) 0%, transparent 40% );', 0),
('Overlay 2', '', 'gradient', 'background-image: linear-gradient( to top, rgba(0,0,0,.6) 0%, transparent 90% );', 0),
('Medium 1', '', 'font_size', '15', 0),
('Dots', '', 'gradient', 'background-image: radial-gradient(rgba(0, 0, 0, 0.1) 0, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 100%);\n    background-size: 7px 7px;', 0),
('Small', '', 'value', '0', 0),
('Dropdown', '', 'shadow', '{\"offsetX\":\"30\",\"offsetY\":\"40\",\"blur\":\"90\",\"spread\":\"-10\",\"color\":\"rgba(0, 0, 0, 0.2)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('Paper', '', 'gradient', 'background: repeating-linear-gradient(90deg, #f0f0f0 0, #f0f0f0 5%, transparent 0, transparent 50%) 0 / 15px 15px, repeating-linear-gradient(180deg, #f0f0f0 0, #f0f0f0 5%, transparent 0, transparent 50%) 0 / 15px 15px;', 0),
('Pastel 1', '', 'color', 'rgba(219, 232, 242, 1)', 0),
('Accent', '', 'color', 'rgba(15, 58, 141, 1)', 0),
('Soft', '', 'shadow', '{\"offsetX\":\"0\",\"offsetY\":\"5\",\"blur\":\"20\",\"spread\":\"-5\",\"color\":\"rgba(0, 0, 0, 0.1)\",\"inner\":\"false\",\"none\":\"false\"}', 1),
('Products', '', 'value', '20', 0),
('Text Light', '', 'color', 'rgba(214, 214, 221, 1)', 0),
('XXXXS', '', 'font_size', '9', 0),
('Background Shade', '', 'color', 'rgba(240, 242, 245, 1)', 0),
('Pastel 2', '', 'color', 'rgba(255, 253, 245, 1)', 0),
('Pastel 3', '', 'color', 'rgba(249, 255, 247, 1)', 0),
('Pastel 4', '', 'color', 'rgba(241, 222, 222, 1)', 0),
('Accent', '', 'gradient', 'background-image: linear-gradient(130deg, #3542ae 0%, #228EFB 50%);', 0),
('Tablet Portrait', '', 'breakpoint', '980', 0),
('Dark', '', 'color', 'rgba(30, 46, 78, 1)', 0),
('Text Lighter', '', 'color', 'rgba(255, 255, 255, 1)', 0),
('Dark 2', '', 'color', 'rgba(58, 71, 84, 1)', 0),
('Fire', '', 'color', 'rgba(233, 102, 49, 1)', 0),
('Neutral', '', 'color', 'rgba(139, 145, 152, 1)', 0),
('Accent Lighter', '', 'color', 'rgba(126, 194, 230, 1)', 0),
('Header BG', '', 'color', 'rgba(30, 46, 78, 1)', 0),
('Footer BG', '', 'color', 'rgba(19, 32, 58, 1)', 0);

-- --------------------------------------------------------

--
-- Table structure for table `language`
--

CREATE TABLE `language` (
  `language_id` int(11) NOT NULL,
  `name` varchar(32) NOT NULL,
  `code` varchar(5) NOT NULL,
  `locale` varchar(255) NOT NULL,
  `image` varchar(64) NOT NULL,
  `directory` varchar(32) NOT NULL,
  `sort_order` int(3) NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `language`
--

INSERT INTO `language` (`language_id`, `name`, `code`, `locale`, `image`, `directory`, `sort_order`, `status`) VALUES
(1, 'English', 'en-gb', 'en-US,en_US.UTF-8,en_US,en-gb,english', 'en-gb.png', 'en-gb', 0, 1),
(2, '繁體中文', 'zh-hk', 'zh_HK.UTF-8,zh_HK,zh-hk,hongkong', 'zh-hk.png', 'zh-hk', 1, 1),
(3, '简体中文', 'zh-cn', 'zh_CN.UTF-8,zh_CN,zh-cn,china', 'zh-cn.png', 'zh-cn', 2, 1);

-- --------------------------------------------------------

--
-- Table structure for table `layout`
--

CREATE TABLE `layout` (
  `layout_id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `layout`
--

INSERT INTO `layout` (`layout_id`, `name`) VALUES
(1, 'Home'),
(2, 'Product'),
(3, 'Category'),
(4, 'Default'),
(5, 'Manufacturer'),
(6, 'Account'),
(7, 'Checkout'),
(8, 'Contact'),
(9, 'Sitemap'),
(10, 'Affiliate'),
(11, 'Information'),
(12, 'Compare'),
(13, 'Search');

-- --------------------------------------------------------

--
-- Table structure for table `layout_module`
--

CREATE TABLE `layout_module` (
  `layout_module_id` int(11) NOT NULL,
  `layout_id` int(11) NOT NULL,
  `code` varchar(64) NOT NULL,
  `position` varchar(14) NOT NULL,
  `sort_order` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `layout_module`
--

INSERT INTO `layout_module` (`layout_module_id`, `layout_id`, `code`, `position`, `sort_order`) VALUES
(2, 4, '0', 'content_top', 0),
(3, 4, '0', 'content_top', 1),
(20, 5, '0', 'column_left', 2),
(69, 10, 'account', 'column_right', 1),
(68, 6, 'account', 'column_right', 1),
(67, 1, 'carousel.29', 'content_top', 3),
(66, 1, 'slideshow.27', 'content_top', 1),
(65, 1, 'featured.28', 'content_top', 2),
(72, 3, 'category', 'column_left', 1),
(73, 3, 'banner.30', 'column_left', 2);

-- --------------------------------------------------------

--
-- Table structure for table `layout_route`
--

CREATE TABLE `layout_route` (
  `layout_route_id` int(11) NOT NULL,
  `layout_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `route` varchar(64) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `layout_route`
--

INSERT INTO `layout_route` (`layout_route_id`, `layout_id`, `store_id`, `route`) VALUES
(38, 6, 0, 'account/%'),
(17, 10, 0, 'affiliate/%'),
(44, 3, 0, 'product/category'),
(42, 1, 0, 'common/home'),
(20, 2, 0, 'product/product'),
(24, 11, 0, 'information/information'),
(23, 7, 0, 'checkout/%'),
(31, 8, 0, 'information/contact'),
(32, 9, 0, 'information/sitemap'),
(34, 4, 0, ''),
(45, 5, 0, 'product/manufacturer'),
(52, 12, 0, 'product/compare'),
(53, 13, 0, 'product/search'),
(54, 6, 0, 'extension/module/emailtemplate_newsletter%');

-- --------------------------------------------------------

--
-- Table structure for table `length_class`
--

CREATE TABLE `length_class` (
  `length_class_id` int(11) NOT NULL,
  `value` decimal(15,8) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `length_class`
--

INSERT INTO `length_class` (`length_class_id`, `value`) VALUES
(1, 1.00000000),
(2, 10.00000000),
(3, 0.39370000);

-- --------------------------------------------------------

--
-- Table structure for table `length_class_description`
--

CREATE TABLE `length_class_description` (
  `length_class_id` int(11) NOT NULL,
  `language_id` int(11) NOT NULL,
  `title` varchar(32) NOT NULL,
  `unit` varchar(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `length_class_description`
--

INSERT INTO `length_class_description` (`length_class_id`, `language_id`, `title`, `unit`) VALUES
(1, 1, 'Centimeter', 'cm'),
(2, 1, 'Millimeter', 'mm'),
(3, 1, 'Inch', 'in'),
(1, 2, 'Centimeter', 'cm'),
(2, 2, 'Millimeter', 'mm'),
(3, 2, 'Inch', 'in'),
(1, 3, 'Centimeter', 'cm'),
(2, 3, 'Millimeter', 'mm'),
(3, 3, 'Inch', 'in');

-- --------------------------------------------------------

--
-- Table structure for table `location`
--

CREATE TABLE `location` (
  `location_id` int(11) NOT NULL,
  `name` varchar(32) NOT NULL,
  `address` text NOT NULL,
  `telephone` varchar(32) NOT NULL,
  `fax` varchar(32) NOT NULL,
  `geocode` varchar(32) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `open` text NOT NULL,
  `comment` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `manufacturer`
--

CREATE TABLE `manufacturer` (
  `manufacturer_id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `sort_order` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `manufacturer`
--

INSERT INTO `manufacturer` (`manufacturer_id`, `name`, `image`, `sort_order`) VALUES
(5, 'HTC', 'logo/brand/htc-150x150.png', 0),
(6, 'Palm', 'catalog/demo/palm_logo.jpg', 0),
(7, 'Hewlett-Packard', 'logo/brand/hp-150x150.png', 0),
(8, 'Apple', 'logo/brand/apple_logo.jpg', 0),
(9, 'Canon', 'logo/brand/canon-150x150.png', 0),
(10, 'Sony', 'logo/brand/sony-150x150.png', 0),
(103, '1More', 'logo/brand/1more-150x150.png', 0),
(104, 'acoustune', 'logo/brand/acoustune-150x150.png', 0),
(125, 'Adata', 'logo/brand/adata-150x150.png', 0),
(93, 'Aimedia', 'logo/brand/aimedia-150x150.png', 0),
(92, 'Airbrightn', 'logo/brand/airbrightn-150x150.png', 0),
(159, 'Akali', 'logo/brand/akali-150x150.png', 0),
(78, 'Anker', 'logo/brand/anker-150x150.png', 0),
(141, 'Ant', 'logo/brand/ant-150x150.png', 0),
(123, 'aorus', 'logo/brand/aorus-150x150.png', 0),
(147, 'Arlo', 'logo/brand/arlo-150x150.png', 0),
(94, 'Arnest', 'logo/brand/arnest-150x150.png', 0),
(160, 'Aspetic Space', 'logo/brand/aspetic-space-150x150.png', 0),
(53, 'Asvel', 'logo/brand/asvel-150x150.png', 0),
(155, 'AutoBot Rock', 'logo/brand/autobot-rock-150x150.png', 0),
(69, 'Banale', 'logo/brand/banale-150x150.png', 0),
(133, 'Baseus', 'logo/brand/baseus-150x150.png', 0),
(65, 'Bio-Key', 'logo/brand/bio-key-150x150.png', 0),
(76, 'BossTV', 'logo/brand/bosstv-150x150.png', 0),
(137, 'Camelion', 'logo/brand/camelion-150x150.png', 0),
(4, 'Chaeum', 'logo/brand/chaeum-150x150.png', 0),
(15, 'Chef-Topf La Rose', 'logo/brand/chef_topf-150x150.png', 0),
(168, 'Cosbeauty', 'logo/brand/cosbeauty-150x150.png', 0),
(113, 'Deylinghs', 'logo/brand/deylinghs-150x150.png', 0),
(120, 'D-link', 'logo/brand/dlink-150x150.png', 0),
(170, 'Dualsonic', 'logo/brand/dualsonic-150x150.png', 0),
(169, 'Eset', 'logo/brand/eset-150x150.png', 0),
(100, 'Eufy', 'logo/brand/eufy-by-anker-150x150.png', 0),
(157, 'EVPad', 'logo/brand/evpad-150x150.png', 0),
(22, 'Fitbit', 'logo/brand/fitbit-150x150.png', 0),
(164, 'Fujifilm', 'logo/brand/fujifilm-150x150.png', 0),
(124, 'Gigabyte', 'logo/brand/gigabyte-150x150.png', 0),
(60, 'Glasslock', 'logo/brand/glasslock-150x150.png', 0),
(68, 'Google', 'logo/brand/google-150x150.png', 0),
(63, 'Hamptons', 'logo/brand/hamptons-150x150.png', 0),
(66, 'HeroClip', 'logo/brand/heroclip-150x150.png', 0),
(152, 'hii', 'logo/brand/hii-150x150.png', 0),
(23, 'Hitachi', 'logo/brand/hitachi-150x150.png', 0),
(136, 'HongPai', 'logo/brand/hongpai-150x150.png', 0),
(48, 'Huawei', 'logo/brand/huawei-150x150.png', 0),
(172, 'Infinity Pro', 'logo/brand/infinity-150x150.png', 0),
(156, 'InfoThink', 'logo/brand/infothink-150x150.png', 0),
(115, 'Innoz', 'logo/brand/innoz-150x150.png', 0),
(171, 'Insta360', 'logo/brand/insta360-150x150.png', 0),
(118, 'intel', 'logo/brand/intel-150x150.png', 0),
(163, 'Iris Ohyama', 'logo/brand/iris-ohyama-150x150.png', 0),
(24, 'Jabra', 'logo/brand/jabra-150x150.png', 0),
(25, 'Jawbone', 'logo/brand/jawbone-150x150.png', 0),
(145, 'JFT', 'logo/brand/jft-150x150.png', 0),
(154, 'Jujy', 'logo/brand/jujy-150x150.png', 0),
(64, 'Kalstory', 'logo/brand/kalstory-150x150.png', 0),
(28, 'Kingston', 'logo/brand/kingston-150x150.png', 0),
(135, 'Lexar', 'logo/brand/lexar-150x150.png', 0),
(31, 'Logitech', 'logo/brand/logitech-150x150.png', 0),
(32, 'Magisso', 'logo/brand/magisso-150x150.png', 0),
(56, 'Matador', 'logo/brand/matador-150x150.png', 0),
(146, 'MEC', 'logo/brand/mec-150x150.png', 0),
(110, 'meruru', 'logo/brand/meruru-150x150.png', 0),
(116, 'Microsoft', 'logo/brand/microsoft-150x150.png', 0),
(138, 'Minix', 'logo/brand/minix-150x150.png', 0),
(108, 'Moai', 'logo/brand/moai-150x150.png', 0),
(143, 'Mous', 'logo/brand/mous-150x150.png', 0),
(96, 'Nanoclo2', 'logo/brand/nanoclo2-150x150.png', 0),
(162, 'Nathome', 'logo/brand/nathome-150x150.png', 0),
(144, 'Netgear', 'logo/brand/netgear-150x150.png', 0),
(52, 'Nissyo', 'logo/brand/nissyo-150x150.png', 0),
(119, 'Noblechairs', 'logo/brand/noblechairs-150x150.png', 0),
(84, 'o2u', 'logo/brand/o2u-150x150.png', 0),
(148, 'Ocube', 'logo/brand/ocube-150x150.png', 0),
(105, 'ORB', 'logo/brand/orb-150x150.png', 0),
(132, 'Outlines', 'logo/brand/outlines-150x150.png', 0),
(57, 'Panasonic', 'logo/brand/panasonic-150x150.png', 0),
(35, 'Peak Design', 'logo/brand/peakdesign-150x150.png', 0),
(36, 'Philips', 'logo/brand/philips-150x150.png', 0),
(37, 'Plantronics', 'logo/brand/plantronics-150x150.png', 0),
(158, 'PPP', 'logo/brand/ppp-150x150.png', 0),
(165, 'Primada', 'logo/brand/primada-150x150.png', 0),
(167, 'Prologic Robotics', 'logo/brand/prologic-150x150.png', 0),
(98, 'QianXun', 'logo/brand/qianxun_150x150.png', 0),
(99, 'Rasonic', 'logo/brand/rasonic-150x150.png', 0),
(117, 'RIG', 'logo/brand/rig-by-plantronics_150x150.png', 0),
(126, 'Rumpl', 'logo/brand/rumpl-150x150.png', 0),
(61, 'Sandisk', 'logo/brand/sandisk-150x150.png', 0),
(121, 'Schneider Electric', 'logo/brand/schneider-electric-150x150.png', 0),
(128, 'Seagate', 'logo/brand/seagate-150x150.png', 0),
(42, 'Sitram', 'logo/brand/sitram-150x150.png', 0),
(130, 'Snoppa', 'logo/brand/snoppa-150x150.png', 0),
(173, 'Sublue', 'logo/brand/sublue-150x150.png', 0),
(91, 'Suzuki Yushi', 'logo/brand/suzukiyushi-150x150.png', 0),
(134, 'Tactica', 'logo/brand/tactica-logo-150x150.png', 0),
(59, 'That!', 'logo/brand/that-150x150.png', 0),
(139, 'Thermaltake', 'logo/brand/thermaltake-150x150.png', 0),
(161, 'Toamit', 'logo/brand/toamit-150x150.png', 0),
(129, 'Unblock Tech', 'logo/brand/unblock-tech-150x150.png', 0),
(90, 'Unitek', 'logo/brand/unitek-150x150.png', 0),
(95, 'Uyeki', 'logo/brand/uyeki-150x150.png', 0),
(166, 'vinaera', 'logo/brand/vinaera-150x150.png', 0),
(150, 'Western Digital', 'logo/brand/western-digital-150x150.png', 0),
(112, 'Wewow', 'logo/brand/wewow-150x150.png', 0),
(149, 'WK Design', 'logo/brand/wk-design-50x150.png', 0),
(131, 'xbox', 'logo/brand/xbox-150x150.png', 0),
(46, 'Xiaomi', 'logo/brand/xiaomi-150x150.png', 0),
(107, 'x-mini', 'logo/brand/x-mini-150x150.png', 0),
(73, 'XPower', 'logo/brand/xpower-150x150.png', 0),
(109, 'Yohome', 'logo/brand/yohome-150x150.png', 0),
(85, 'Yurica', 'logo/brand/yurica-150x150.png', 0),
(47, 'Zing Anything', 'logo/brand/zing-anything-150x150.png', 0),
(51, 'Zojirushi', 'logo/brand/zojirushi-150x150.png', 0),
(89, 'Zolo', 'logo/brand/zolo-150x150.png', 0);

-- --------------------------------------------------------

--
-- Table structure for table `manufacturer_to_store`
--

CREATE TABLE `manufacturer_to_store` (
  `manufacturer_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `manufacturer_to_store`
--

INSERT INTO `manufacturer_to_store` (`manufacturer_id`, `store_id`) VALUES
(4, 0),
(5, 0),
(6, 0),
(7, 0),
(8, 0),
(9, 0),
(10, 0),
(15, 0),
(22, 0),
(23, 0),
(24, 0),
(25, 0),
(28, 0),
(31, 0),
(32, 0),
(35, 0),
(36, 0),
(37, 0),
(42, 0),
(46, 0),
(47, 0),
(48, 0),
(51, 0),
(52, 0),
(53, 0),
(56, 0),
(57, 0),
(59, 0),
(60, 0),
(61, 0),
(63, 0),
(64, 0),
(65, 0),
(66, 0),
(68, 0),
(69, 0),
(73, 0),
(76, 0),
(78, 0),
(84, 0),
(85, 0),
(89, 0),
(90, 0),
(91, 0),
(92, 0),
(93, 0),
(94, 0),
(95, 0),
(96, 0),
(98, 0),
(99, 0),
(100, 0),
(103, 0),
(104, 0),
(105, 0),
(107, 0),
(108, 0),
(109, 0),
(110, 0),
(112, 0),
(113, 0),
(115, 0),
(116, 0),
(117, 0),
(118, 0),
(119, 0),
(120, 0),
(121, 0),
(123, 0),
(124, 0),
(125, 0),
(126, 0),
(128, 0),
(129, 0),
(130, 0),
(131, 0),
(132, 0),
(133, 0),
(134, 0),
(135, 0),
(136, 0),
(137, 0),
(138, 0),
(139, 0),
(141, 0),
(143, 0),
(144, 0),
(145, 0),
(146, 0),
(147, 0),
(148, 0),
(149, 0),
(150, 0),
(152, 0),
(154, 0),
(155, 0),
(156, 0),
(157, 0),
(158, 0),
(159, 0),
(160, 0),
(161, 0),
(162, 0),
(163, 0),
(164, 0),
(165, 0),
(166, 0),
(167, 0),
(168, 0),
(169, 0),
(170, 0),
(171, 0),
(172, 0),
(173, 0);

-- --------------------------------------------------------

--
-- Table structure for table `marketing`
--

CREATE TABLE `marketing` (
  `marketing_id` int(11) NOT NULL,
  `name` varchar(32) NOT NULL,
  `description` text NOT NULL,
  `code` varchar(64) NOT NULL,
  `clicks` int(5) NOT NULL DEFAULT 0,
  `date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `may_advanced_option_product_config`
--

CREATE TABLE `may_advanced_option_product_config` (
  `product_id` int(11) NOT NULL,
  `option_name` varchar(255) NOT NULL,
  `subtract` int(1) DEFAULT NULL,
  `swatch_image` int(1) DEFAULT NULL,
  `show_first_option_in_list` int(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `may_advanced_option_product_config`
--

INSERT INTO `may_advanced_option_product_config` (`product_id`, `option_name`, `subtract`, `swatch_image`, `show_first_option_in_list`) VALUES
(42, 'Size', 0, 0, 1),
(30, 'Size', 0, 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `may_advanced_option_product_value`
--

CREATE TABLE `may_advanced_option_product_value` (
  `product_option_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `option_id` int(11) NOT NULL,
  `combination_id` varchar(255) NOT NULL,
  `option_value_id` int(11) NOT NULL,
  `model` varchar(255) DEFAULT NULL,
  `sku` varchar(255) DEFAULT NULL,
  `upc` varchar(12) DEFAULT NULL,
  `ean` varchar(14) DEFAULT NULL,
  `jan` varchar(13) DEFAULT NULL,
  `isbn` varchar(17) DEFAULT NULL,
  `mpn` varchar(255) DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `image` text DEFAULT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `price_prefix` varchar(255) DEFAULT NULL,
  `point` int(8) DEFAULT NULL,
  `point_prefix` varchar(255) DEFAULT NULL,
  `weight` decimal(15,8) DEFAULT NULL,
  `weight_prefix` varchar(255) DEFAULT NULL,
  `dimension_l` decimal(15,8) DEFAULT NULL,
  `dimension_w` decimal(15,8) DEFAULT NULL,
  `dimension_h` decimal(15,8) DEFAULT NULL,
  `hide` int(1) DEFAULT NULL,
  `quantity` int(4) DEFAULT NULL,
  `stock_status_id` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `may_advanced_option_product_value`
--

INSERT INTO `may_advanced_option_product_value` (`product_option_id`, `product_id`, `option_id`, `combination_id`, `option_value_id`, `model`, `sku`, `upc`, `ean`, `jan`, `isbn`, `mpn`, `location`, `image`, `price`, `price_prefix`, `point`, `point_prefix`, `weight`, `weight_prefix`, `dimension_l`, `dimension_w`, `dimension_h`, `hide`, `quantity`, `stock_status_id`) VALUES
(227, 42, 11, '0', 1111, 'product 15-small', '', '', '', '', '', '', '', '[\"catalog/demo/compaq_presario.jpg\",\"catalog/demo/canon_eos_5d_2.jpg\",\"catalog/demo/product/samsungtab.jpg\"]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 1, 0, 0),
(227, 42, 11, '0', 1113, 'product 15-large', '', '', '', '', '', '', '', '[]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 0, 0, 0),
(227, 42, 11, '0', 1112, 'product 15-medium', '', '', '', '', '', '', '', '[]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 0, 0, 0),
(228, 30, 11, '0', 1111, 'product 3-small', '', '', '', '', '', '', '', '[]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 0, 0, 0),
(228, 30, 11, '0', 1112, 'product 3-medium', '', '', '', '', '', '', '', '[]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 0, 0, 0),
(228, 30, 11, '0', 1113, 'product 3-large', '', '', '', '', '', '', '', '[]', 0.0000, 'as', 0, 'as', 0.00000000, 'as', 0.00000000, 0.00000000, 0.00000000, 1, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `may_advanced_option_template`
--

CREATE TABLE `may_advanced_option_template` (
  `option_id` int(11) NOT NULL,
  `option_name` varchar(255) NOT NULL,
  `children` varchar(255) NOT NULL,
  `swatch_image` int(1) DEFAULT NULL,
  `sort_order` int(3) DEFAULT NULL,
  `content` text DEFAULT NULL,
  `show_first_option_in_list` int(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `modification`
--

CREATE TABLE `modification` (
  `modification_id` int(11) NOT NULL,
  `extension_install_id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `code` varchar(64) NOT NULL,
  `author` varchar(64) NOT NULL,
  `version` varchar(32) NOT NULL,
  `link` varchar(255) NOT NULL,
  `xml` mediumtext NOT NULL,
  `status` tinyint(1) NOT NULL,
  `date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `modification`
--

INSERT INTO `modification` (`modification_id`, `extension_install_id`, `name`, `code`, `author`, `version`, `link`, `xml`, `status`, `date_added`) VALUES
(1, 1, 'Fix opencart 3 installer folder limitation', 'fix_oc3_installer', 'GeekoDev', '1.0', 'https://geekodev.com', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<modification>\n  <id>Fix opencart 3 installer folder limitation</id>\n  <name>Fix opencart 3 installer folder limitation</name>\n  <code>fix_oc3_installer</code>\n  <version>1.0</version>\n  <author>GeekoDev</author>\n  <link><![CDATA[https://geekodev.com]]></link>\n\n  <file path=\"admin/controller/marketplace/install.php\">\n  \n    <operation>\n      <search position=\"replace\"><![CDATA[$safe = false;]]></search>\n      <add position=\"replace\"><![CDATA[$safe = true;]]></add>\n    </operation>\n    \n    <operation>\n      <search position=\"before\"><![CDATA[if (is_dir($file) && !is_dir($path)) {]]></search>\n      <add position=\"before\"><![CDATA[		\n        if ($path == \'\') {\n          $path = DIR_CATALOG . \'../\' . $destination;\n        }\n      ]]></add>\n    </operation>\n    \n  </file>\n  \n</modification>', 1, '2021-06-17 08:03:52'),
(2, 2, 'X-Shipping Pro', 'xshippingpro', 'OpenCartMart', '4.0.8', 'http://www.opencartmart.com', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<modification>\n    <name>X-Shipping Pro</name>\n    <code>xshippingpro</code>\n    <version>4.0.8</version>\n    <author>OpenCartMart</author>\n    <link>http://www.opencartmart.com</link>\n   <file path=\"system/library/cart/cart.php\">\n    <operation error=\"log\">\n        <ignoreif regex=\"true\"><![CDATA[ /ocm_special/ ]]></ignoreif>\n        <search><![CDATA[ => ($price + $option_price), ]]></search>\n        <add position=\"before\"><![CDATA[\n              \'ocm_special\'      => $price != $product_query->row[\'price\'],\n        ]]></add>\n    </operation>\n</file>\n</modification>', 1, '2021-06-26 09:32:05'),
(3, 3, 'X-Feepro', 'xfeepro', 'OpenCartMart', '3.1.7', 'http://www.opencartmart.com', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<modification>\n    <name>X-Feepro</name>\n    <code>xfeepro</code>\n    <version>3.1.7</version>\n    <author>OpenCartMart</author>\n    <link>http://www.opencartmart.com</link>\n   <file path=\"system/library/cart/cart.php\">\n    <operation error=\"log\">\n        <ignoreif regex=\"true\"><![CDATA[ /ocm_special/ ]]></ignoreif>\n        <search><![CDATA[ => ($price + $option_price), ]]></search>\n        <add position=\"before\"><![CDATA[\n              \'ocm_special\'      => $price != $product_query->row[\'price\'],\n        ]]></add>\n    </operation>\n</file>\n</modification>', 1, '2021-06-26 09:32:34'),
(4, 4, 'Cl!cker Replace Summernote with CKEditor - OC 3.0', 'clicker_ck_editor', 'Cl!cker', '4.8.3_CKE4.16.0', 'https://opencart.click', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<modification>\r\n	<code>clicker_ck_editor</code>\r\n	<name>Cl!cker Replace Summernote with CKEditor - OC 3.0</name>\r\n	<version>4.8.3_CKE4.16.0</version>\r\n	<author>Cl!cker</author>\r\n	<link>https://opencart.click</link>\r\n\r\n	<file path=\"admin/controller/common/header.php\">\r\n		<operation>\r\n			<search trim=\"true\" index=\"0\"><![CDATA[\r\n				$data[\'title\'] =\r\n			]]></search>\r\n			<add position=\"after\" trim=\"false\" offset=\"0\"><![CDATA[\r\n				$this->document->addScript(\'view/javascript/ckeditor_full/ckeditor.js\');\r\n				$this->document->addScript(\'view/javascript/ckeditor_full/ck_clicker.js?oc=\' . (defined(\'VERSION\') ? urlencode(VERSION) : urlencode(\'3.x\')) . \'&v=\' . urlencode(\'4.8.3_CKE4.16.0\'));\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n</modification>', 1, '2021-06-26 09:33:17'),
(24, 26, 'Cl!cker Elfinder Filemanager - OC 3.x', 'clicker_elfinder', 'Cl!cker', '3.5_E2.1.56n', 'https://opencart.click', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<modification>\n	<code>clicker_elfinder</code>\n	<name>Cl!cker Elfinder Filemanager - OC 3.x</name>\n	<version>3.5_E2.1.56n</version>\n	<author>Cl!cker</author>\n	<link>https://opencart.click</link>\n\n	<file path=\"admin/controller/common/filemanager.php\">\n		<operation>\n			<search trim=\"true\" index=\"0\"><![CDATA[\n				public function index() {\n			]]></search>\n			<add position=\"replace\" trim=\"false\" offset=\"0\"><![CDATA[\n				public function index() {\n					if (!$this->user->hasPermission(\'access\', \'extension/elfinder\')) {\n						$this->index_fm();\n						return;\n					}\n\n					$data = $this->language->load(\'extension/elfinder\');\n\n					if (version_compare(VERSION, \'3.0.0\') >= 0) {\n						$data[\'token_name\'] = \'user_token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					} else {\n						$data[\'token_name\'] = \'token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					}\n\n					$data[\'connector_url\'] = $this->url->link(\'extension/elfinder/connector\', $data[\'token_name\'] . \'=\' . $data[\'user_token\'], true);\n					$data[\'setting_url\'] = $this->url->link(\'extension/elfinder/setting\', $data[\'token_name\'] . \'=\' . $data[\'user_token\'], true);\n					$data[\'el_setting\'] = $this->load->controller(\'extension/elfinder/getsetting\');\n\n					$data[\'modal\'] = true;\n					$data[\'iframe\'] = false;\n\n					$data[\'thumb_image\'] = !empty($this->request->get[\'thumb\']) ? $this->request->get[\'thumb\'] : \'\';\n					$data[\'target_image\'] = !empty($this->request->get[\'target\']) ? $this->request->get[\'target\'] : \'\';\n					$data[\'multiple\'] = !empty($this->request->get[\'multiple\']) ? $this->request->get[\'multiple\'] : \'\';\n					$data[\'CKEditor\'] = !empty($this->request->get[\'CKEditor\']) ? $this->request->get[\'CKEditor\'] : \'\';\n					$data[\'CKEditorFuncNum\'] = !empty($this->request->get[\'CKEditorFuncNum\']) ? $this->request->get[\'CKEditorFuncNum\'] : \'\';\n\n					$data[\'version\'] = $this->load->controller(\'extension/elfinder/getversion\');\n					$data[\'oc_version\'] = defined(\'VERSION\') ? VERSION : 0;\n\n					if (!empty($data[\'CKEditorFuncNum\'])) {\n						$data[\'iframe\'] = true;\n						//$this->el_iframe();\n						//return true;\n					}\n\n					$params = !empty($this->request->get) ? $this->request->get : array($data[\'token_name\'] => $data[\'user_token\']);\n\n					if (isset($params[\'route\'])) {\n						unset($params[\'route\']);\n					}\n\n					$data[\'iframe_link\'] = $this->url->link(\'common/filemanager/el_iframe\', http_build_query($params), true);\n\n					$this->response->setOutput($this->load->view(\'extension/elfinder\', $data));\n				}\n\n				public function el_iframe() {\n					if (!$this->user->hasPermission(\'access\', \'extension/elfinder\')) {\n						die(\'Permission extension/elfinder denied!\');\n						return;\n					}\n\n					$data = $this->language->load(\'extension/elfinder\');\n\n					$data[\'title\'] = $this->language->get(\'heading_title\');\n					$data[\'lang\'] = $this->language->get(\'code\');\n					$data[\'direction\'] = $this->language->get(\'direction\');\n\n					if (version_compare(VERSION, \'3.0.0\') >= 0) {\n						$data[\'token_name\'] = \'user_token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					} else {\n						$data[\'token_name\'] = \'token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					}\n\n					$data[\'connector_url\'] = $this->url->link(\'extension/elfinder/connector\', $data[\'token_name\'] . \'=\' . $data[\'user_token\'], true);\n					$data[\'setting_url\'] = $this->url->link(\'extension/elfinder/setting\', $data[\'token_name\'] . \'=\' . $data[\'user_token\'], true);\n					$data[\'el_setting\'] = $this->load->controller(\'extension/elfinder/getsetting\');\n\n					$data[\'iframe\'] = true;\n					$data[\'modal\'] = false;\n\n					$data[\'thumb_image\'] = !empty($this->request->get[\'thumb\']) ? $this->request->get[\'thumb\'] : \'\';\n					$data[\'target_image\'] = !empty($this->request->get[\'target\']) ? $this->request->get[\'target\'] : \'\';\n					$data[\'multiple\'] = !empty($this->request->get[\'multiple\']) ? $this->request->get[\'multiple\'] : \'\';\n					$data[\'CKEditor\'] = !empty($this->request->get[\'CKEditor\']) ? $this->request->get[\'CKEditor\'] : \'\';\n					$data[\'CKEditorFuncNum\'] = !empty($this->request->get[\'CKEditorFuncNum\']) ? $this->request->get[\'CKEditorFuncNum\'] : \'\';\n\n					$data[\'version\'] = $this->load->controller(\'extension/elfinder/getversion\');\n					$data[\'oc_version\'] = defined(\'VERSION\') ? VERSION : 0;\n\n					$this->response->setOutput($this->load->view(\'extension/elfinder\', $data));\n				}\n\n				public function index_fm() {\n			]]></add>\n		</operation>\n	</file>\n\n	<file path=\"admin/controller/common/column_left.php\">\n		<operation>\n			<search trim=\"true\" index=\"0\"><![CDATA[\n				$marketplace = array();\n			]]></search>\n			<add position=\"after\" trim=\"false\" offset=\"0\"><![CDATA[\n				if ($this->user->hasPermission(\'access\', \'extension/elfinder\')) {\n					if (version_compare(VERSION, \'3.0.0\') >= 0) {\n						$data[\'token_name\'] = \'user_token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					} else {\n						$data[\'token_name\'] = \'token\';\n						$data[\'user_token\'] = $this->session->data[$data[\'token_name\']];\n					}\n\n					$this->language->load(\'extension/elfinder\');\n					$marketplace[] = array(\n						\'name\'	   => $this->language->get(\'text_filemanager\'),\n						\'href\'     => $this->url->link(\'extension/elfinder\', $data[\'token_name\'] . \'=\'. $data[\'user_token\'], true),\n						\'children\' => array()\n					);\n				}\n			]]></add>\n		</operation>\n	</file>\n\n	<file path=\"admin/view/template/catalog/product_form.twig\">\n		<operation>\n			<search trim=\"true\" index=\"0\"><![CDATA[\n				{{ footer }}\n			]]></search>\n			<add position=\"before\" trim=\"false\" offset=\"0\"><![CDATA[\n				<script type=\"text/javascript\">\n					$(document).ready(function() {\n						var html = \'&nbsp;&nbsp;<button type=\"button\" onclick=\"addMultipleImages(this);\" data-toggle=\"tooltip\" title=\"Add multiple images\" class=\"btn btn-success\"><i class=\"fa fa-list\"></i></button>\';\n						html += \'<input type=\"hidden\" id=\"elfinder_multiple\" value=\"\"/>\';\n						$(\'button[onclick^=\"addImage(\"]\').after(html);\n					});\n\n					function addMultipleImages(btn) {\n						var $button = $(btn);\n\n						$(\'#modal-image\').remove();\n\n						if (getURLVar(\'user_token\')) {\n							var user_token = \'&user_token=\' + getURLVar(\'user_token\');\n						} else {\n							var user_token = \'&token=\' + getURLVar(\'token\');\n						}\n\n						$.ajax({\n						  url: \'index.php?route=common/filemanager\' + user_token + \'&multiple=callbackMultipleImages&target=elfinder_multiple&thumb=placeholder\',\n							dataType: \'html\',\n							beforeSend: function() {\n								$button.prop(\'disabled\', true);\n							},\n							complete: function() {\n								$button.prop(\'disabled\', false);\n							},\n							success: function(html) {\n								$(\'body\').append(\'<div id=\"modal-image\" class=\"modal\">\' + html + \'</div>\');\n\n								$(\'#modal-image\').modal(\'show\');\n							}\n						});\n					}\n\n					function callbackMultipleImages(data={}) {\n						if (!data) return;\n\n						for (idx in data) {\n							if (data[idx].mime) {\n								var file = data[idx];\n								if (file.path && (String(file.path).substring(0, 6) == \'image\\\\\' || String(file.path).substring(0, 6) == \'image/\')) {\n									// Fix root for image folder if default is not image/catalog\n									file.path = String(file.path).substring(6);\n								}\n\n								var curr_image_row = image_row;\n								addImage();\n\n								$(\'#thumb-image\' + curr_image_row + \' img\').attr(\'src\', file.tmb).css(\'max-width\', \'100%\');\n								$(\'#input-image\' + curr_image_row + \'\').val(file.path);\n								$(\'input[name=\"product_image[\' + curr_image_row + \'][sort_order]\"]\').val(curr_image_row);\n							}\n						}\n					}\n				</script>\n			]]></add>\n		</operation>\n	</file>\n\n</modification>', 1, '2021-08-13 16:53:50'),
(6, 6, 'X-Payment', 'xpayment', 'OpenCartMart', '4.2.5', 'http://www.opencartmart.com', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<modification>\n    <name>X-Payment</name>\n    <code>xpayment</code>\n    <version>4.2.5</version>\n    <author>OpenCartMart</author>\n    <link>http://www.opencartmart.com</link>\n    <file path=\"admin/controller/extension/extension/payment.php\"> \n        <operation error=\"log\">\n            <search><![CDATA[ $data[\'extensions\'][ ]]></search>\n            <add position=\"before\"><![CDATA[\n               if (preg_match(\'/xpayment\\d+/\', $extension)) continue;\n            ]]></add>\n        </operation> \n    </file>\n    <file path=\"catalog/view/theme/*/template/account/order_info.{twig,tpl}\"> \n        <operation error=\"log\">\n            <search regex=\"true\"><![CDATA[ /^.*if.*comment.*$/m ]]></search>\n            <add position=\"replace\"><![CDATA[\n                 {{ payment_instruction }}\n                 $0\n            ]]></add>\n        </operation> \n    </file>\n</modification>', 1, '2021-06-26 09:34:26'),
(7, 7, 'ExcelPort', 'isense_excelport_3', 'iSenseLabs', '3.1.1', 'http://isenselabs.com', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<modification>\r\n    <name><![CDATA[ExcelPort]]></name>\r\n	<code><![CDATA[isense_excelport_3]]></code>\r\n	<version><![CDATA[3.1.1]]></version>\r\n	<author><![CDATA[iSenseLabs]]></author>\r\n	<link><![CDATA[http://isenselabs.com]]></link>\r\n	<file path=\"admin/view/template/catalog/product_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<i class=\"fa fa-copy\"></i></button>]]></search>\r\n			<add position=\"after\"><![CDATA[\r\n				<a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/catalog/category.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"before\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n	<file path=\"admin/view/template/catalog/category_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<a href=\"{{ repair }}\" data-toggle=\"tooltip\" title=\"{{ button_rebuild }}\" class=\"btn btn-default\"><i class=\"fa fa-refresh\"></i></a>]]></search>\r\n			<add position=\"replace\"><![CDATA[\r\n				<a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a> <a href=\"{{ repair }}\" data-toggle=\"tooltip\" title=\"{{ button_rebuild }}\" class=\"btn btn-default\"><i class=\"fa fa-refresh\"></i></a>\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/catalog/option.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n	<file path=\"admin/view/template/catalog/option_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-option\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n			<add position=\"before\"><![CDATA[\r\n				<a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/catalog/attribute.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n	<file path=\"admin/view/template/catalog/attribute_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-attribute\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n			<add position=\"before\"><![CDATA[\r\n				<a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/catalog/attribute_group.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n	<file path=\"admin/view/template/catalog/attribute_group_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-attribute-group\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n			<add position=\"before\"><![CDATA[\r\n				<a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/customer/customer.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/view/template/customer/customer_list.twig\">\r\n        <operation>\r\n            <search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-customer\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n            <add position=\"before\"><![CDATA[\r\n                <a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/controller/customer/customer_group.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/view/template/customer/customer_group_list.twig\">\r\n        <operation>\r\n            <search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-customer-group\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n            <add position=\"before\"><![CDATA[\r\n                <a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/controller/sale/order.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n	<file path=\"admin/view/template/sale/order_list.twig\">\r\n		<operation>\r\n			<search><![CDATA[<a href=\"{{ add }}\" data-toggle=\"tooltip\" title=\"{{ button_add }}\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>]]></search>\r\n			<add position=\"before\"><![CDATA[\r\n                <a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n            ]]></add>\r\n		</operation>\r\n	</file>\r\n    <file path=\"admin/controller/catalog/manufacturer.php\">\r\n        <operation>\r\n            <search><![CDATA[$data[\'order\'] = $order;]]></search>\r\n            <add position=\"after\"><![CDATA[\r\n                $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/view/template/catalog/manufacturer_list.twig\">\r\n        <operation>\r\n            <search><![CDATA[<button type=\"button\" data-toggle=\"tooltip\" title=\"{{ button_delete }}\" class=\"btn btn-danger\" onclick=\"confirm(\'{{ text_confirm }}\') ? $(\'#form-manufacturer\').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>]]></search>\r\n            <add position=\"before\"><![CDATA[\r\n                <a href=\"index.php?route=extension/module/excelport&user_token={{ user_token }}\" class=\"btn btn-info\" data-toggle=\"tooltip\" title=\"Export / Import\"><i class=\"fa fa-file-excel-o\"></i></a>\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"admin/controller/common/column_left.php\">\r\n        <operation>\r\n            <search><![CDATA[if ($this->user->hasPermission(\'access\', \'tool/log\')) {]]></search>\r\n            <add position=\"before\"><![CDATA[\r\n                if ($this->user->hasPermission(\'access\', \'extension/module/excelport\')) {\r\n                    $maintenance[] = array(\r\n                        \'name\'     => \'ExcelPort: Export / Import\',\r\n                        \'href\'     => $this->url->link(\'extension/module/excelport\', \'user_token=\' . $this->session->data[\'user_token\'], true),\r\n                        \'children\' => array()\r\n                    );\r\n                }\r\n            ]]></add>\r\n        </operation>\r\n    </file>\r\n</modification>\r\n', 1, '2021-06-26 09:35:38'),
(8, 9, 'Disable add to cart when product out of stock', 'Disable_add_to_cart_when_product_out_of_stock', 'Extensions Bazaar', '1.0', '', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<modification>\r\n	<name>Disable add to cart when product out of stock</name>\r\n	<version>1.0</version>\r\n	<code>Disable_add_to_cart_when_product_out_of_stock</code>\r\n	<author>Extensions Bazaar</author>\r\n	<file path=\"catalog/view/theme/journal3/template/journal3/*.twig\">\r\n		<operation>\r\n			<search><![CDATA[class=\"btn btn-cart\"]]></search>\r\n			<add position=\"replace\"><![CDATA[class=\"btn btn-cart outofstock-{{ product.product_id }}\"]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search><![CDATA[<a class=\"btn btn-extra btn-extra-{{ id }}\"]]></search>\r\n			<add position=\"replace\"><![CDATA[<a class=\"btn btn-extra btn-extra-{{ id }} outofstock-{{ product.product_id }}\"]]></add>\r\n		</operation>\r\n	</file>\r\n	<file path=\"catalog/view/theme/journal3/template/product/product.twig\">\r\n		<operation>\r\n			<search><![CDATA[$(\'#button-cart\').button(\'loading\');]]></search>\r\n			<add position=\"replace\"><![CDATA[ //$(\'#button-cart\').button(\'loading\');]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search><![CDATA[$(\'#button-cart\').button(\'reset\');]]></search>\r\n			<add position=\"replace\"><![CDATA[ //$(\'#button-cart\').button(\'reset\');]]></add>\r\n		</operation>\r\n	</file>\r\n	<file path=\"catalog/controller/common/footer.php\">\r\n		<operation>\r\n			<search><![CDATA[public function index() {]]></search>\r\n			<add position=\"before\"><![CDATA[\r\n			public function disableaddtocart(){\r\n				if($this->config->get(\'module_disable_addtocart_status\')){\r\n				$json[\'changeevents\']=array(\'cart.add\');\r\n				$sql = \"SELECT p.product_id,p.minimum FROM \".DB_PREFIX.\"product p LEFT JOIN \".DB_PREFIX.\"product_description pd ON(p.product_id = pd.product_id) LEFT JOIN \" . DB_PREFIX . \"product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.quantity < 1 AND p.status = 1 AND p2s.store_id = \'\" . (int)$this->config->get(\'config_store_id\') . \"\' AND pd.language_id = \'\" . (int)$this->config->get(\'config_language_id\') . \"\'\";\r\n				\r\n				$sql .=\"AND p.quantity < 1 AND p.stock_status_id IN (\". implode(\',\',$this->config->get(\'module_disable_addtocart_out_stock_status\')).\")\";\r\n				\r\n				$query = $this->db->query($sql);\r\n				foreach($query->rows as $row){\r\n				   $json[\'outofstockproducts\'][]=array(\r\n					 \'product_id\' => $row[\'product_id\'],\r\n					 \'minimum\' 	  => $row[\'minimum\'],\r\n				   );\r\n				}\r\n				\r\n				$json[\'buttontext\'] = ($this->config->get(\'module_disable_addtocart_button_label\'.$this->config->get(\'config_language_id\')) ? html_entity_decode($this->config->get(\'module_disable_addtocart_button_label\'.$this->config->get(\'config_language_id\'))) : \'\');\r\n				\r\n				$this->response->addHeader(\'Content-Type: application/json\');\r\n				$this->response->setOutput(json_encode($json));\r\n				}\r\n			}\r\n			]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search><![CDATA[$data[\'contact\'] = $this->url->link(\'information/contact\');]]></search>\r\n			<add position=\"after\"><![CDATA[\r\n				$data[\'module_disable_addtocart_status\'] = $this->config->get(\'module_disable_addtocart_status\');\r\n				if($this->config->get(\'module_disable_addtocart_status\')){\r\n					$this->document->addScript(\'catalog/view/javascript/disableaddtocart.js\');\r\n				}\r\n			]]></add>\r\n		</operation>\r\n	</file>\r\n</modification>', 1, '2021-06-26 09:36:44'),
(10, 50, 'Email Templates Core', 'emailtemplates_core', 'Opencart-Templates', '3.0.5.91', 'https://www.opencart-templates.co.uk/advanced_professional_email_template', '<modification>\r\n	<name>Email Templates Core</name>\r\n	<code>emailtemplates_core</code>\r\n	<version>3.0.5.91</version>\r\n	<author>Opencart-Templates</author>\r\n	<link>https://www.opencart-templates.co.uk/advanced_professional_email_template</link>\r\n\r\n	<file path=\"system/library/language.php\">\r\n		<operation>\r\n			<search><![CDATA[$file = DIR_LANGUAGE]]></search>\r\n			<ignoreif><![CDATA[$file = $this->path]]></ignoreif>\r\n			<add position=\"replace\"><![CDATA[$file = $this->path]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[private $directory;]]></search>\r\n			<ignoreif><![CDATA[private $path = DIR_LANGUAGE;]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[private $path = DIR_LANGUAGE;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get($key]]></search>\r\n			<ignoreif><![CDATA[public function setPath($path)]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	public function setPath($path) {\r\n		if (!is_dir($path)) {\r\n			trigger_error(\'Error: check path exists: \'.$path);\r\n			exit;\r\n		}\r\n\r\n		$this->path = $path;\r\n	}\r\n	]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"system/library/mail.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[protected $subject;]]></search>\r\n			<ignoreif><![CDATA[protected $bcc;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	protected $bcc;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[protected $subject;]]></search>\r\n			<ignoreif><![CDATA[protected $cc;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	protected $cc;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[protected $subject;]]></search>\r\n			<ignoreif><![CDATA[protected $mail_queue;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	protected $mail_queue;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[protected $subject;]]></search>\r\n			<ignoreif><![CDATA[protected $mail_send;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	protected $mail_send;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[protected $subject;]]></search>\r\n			<ignoreif><![CDATA[protected $reply_to_name;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	protected $reply_to_name;]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function setMailQueue(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	public function setMailQueue($option) {\r\n		$this->mail_queue = (bool)$option;\r\n	}]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function setMailSend(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	public function setMailSend($option) {\r\n		$this->mail_send = (bool)$option;\r\n	}]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function getSubject(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[	public function getSubject() {\r\n		return $this->subject;\r\n	}]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function setCc(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n	public function setCc($address) {\r\n		$this->cc = $address;\r\n	}]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function setBcc(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n	public function setBcc($address) {\r\n		$this->bcc = $address;\r\n	}]]></add>\r\n		</operation>\r\n		<operation error=\"skip\">\r\n			<search index=\"0\"><![CDATA[public function setReplyTo($reply_to) {]]></search>\r\n			<add position=\"replace\"><![CDATA[public function setReplyTo($reply_to, $reply_to_name = \'\') {\r\n		if ($reply_to_name) {\r\n			$this->reply_to_name = $reply_to_name;\r\n		}\r\n	]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send(]]></search>\r\n			<ignoreif><![CDATA[public function getMailProperties(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n	public function getMailProperties() {\r\n		return array(\r\n			\'mail_queue\' => $this->mail_queue,\r\n			\'smtp\' => array(\r\n				\'hostname\' => $this->smtp_hostname,\r\n				\'username\' => $this->smtp_username,\r\n				//\'password\' => $this->smtp_password,\r\n				\'post\' => $this->smtp_port,\r\n				\'timeout\' => $this->smtp_timeout\r\n			),\r\n			//\'protocol\' => $this->protocol,\r\n			\'parameter\' => $this->parameter,\r\n			\'attachments\' => $this->attachments,\r\n			\'to\' => $this->to,\r\n			\'from\' => $this->from,\r\n			\'sender\' => $this->sender,\r\n			\'reply_to\' => $this->reply_to,\r\n			\'reply_to_name\' => $this->reply_to_name,\r\n			\'cc\' => $this->cc,\r\n			\'bcc\' => $this->bcc,\r\n			\'subject\' => $this->subject,\r\n			\'text\' => $this->text\r\n		);\r\n	}\r\n	]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function send() {]]></search>\r\n			<ignoreif><![CDATA[if ($this->mail_queue) return true;]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[		if ($this->mail_send === false) {\r\n			return true; // unsubscribed\r\n		}\r\n\r\n		if ($this->mail_queue) {\r\n			return true; // send later via cron\r\n		}\r\n]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"system/library/mail/{smtp,mail}.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[$header .= \'Reply-To: =?UTF-8?B?\' . base64_encode($this->reply_to) . \'?= <\' . $this->reply_to . \'>\' . PHP_EOL;]]></search>\r\n			<add position=\"replace\"><![CDATA[\r\n			if (!empty($this->reply_to_name)) {\r\n				$header .= \'Reply-To: =?UTF-8?B?\' . base64_encode($this->reply_to_name) . \'?= <\' . $this->reply_to . \'>\' . PHP_EOL;\r\n			} else {\r\n				$header .= \'Reply-To: \' . $this->reply_to . PHP_EOL;\r\n			}\r\n		]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[$header .= \'Return-Path]]></search>\r\n			<ignoreif><![CDATA[$header .= \'CC: \' . $this->cc . PHP_EOL;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		if ($this->cc) {\r\n			$header .= \'CC: \' . $this->cc . PHP_EOL;\r\n		}\r\n		]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[$header .= \'Return-Path]]></search>\r\n			<ignoreif><![CDATA[$header .= \'BCC: \' . $this->bcc . PHP_EOL;]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		if ($this->bcc) {\r\n			$header .= \'BCC: \' . $this->bcc . PHP_EOL;\r\n		}\r\n		]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"system/library/cache.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function getAllKeys(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function getAllKeys() {\r\n			return $this->adaptor->getAllKeys();\r\n		}]]></add>\r\n		</operation>\r\n	    <operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function flush(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function flush() {\r\n			return $this->adaptor->flush();\r\n		}]]></add>\r\n		</operation>\r\n	</file>\r\n	<file path=\"system/library/cache/apc.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function getAllKeys(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function getAllKeys() {\r\n			if (!$this->active) {\r\n				return false;\r\n			}\r\n\r\n			$cache_info = apc_cache_info(\'user\');\r\n			return $cache_info[\'cache_list\'];\r\n		}]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function flush(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function flush() {\r\n			apc_cache_clear();\r\n		}]]></add>\r\n		</operation>\r\n	</file>\r\n	<file path=\"system/library/cache/mem.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function getAllKeys(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function getAllKeys() {\r\n		    if (!method_exists($this->memcache, \'getAllKeys\')) {\r\n		        return false;\r\n		    }\r\n			return $this->memcache->getAllKeys();\r\n		}]]></add>\r\n		</operation>\r\n	    <operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function flush(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function flush() {\r\n			return $this->memcache->flush();\r\n		}]]></add>\r\n		</operation>\r\n	</file>\r\n	<file path=\"system/library/cache/memcached.php\" error=\"skip\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function getAllKeys(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function getAllKeys() {\r\n		    if (!method_exists($this->memcached, \'getAllKeys\')) {\r\n		        return false;\r\n		    }\r\n			return $this->memcached->getAllKeys();\r\n		}]]></add>\r\n		</operation>\r\n	    <operation>\r\n			<search index=\"0\"><![CDATA[public function get(]]></search>\r\n			<ignoreif><![CDATA[public function flush(]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[\r\n		public function flush() {\r\n			return $this->memcached->flush();\r\n		}]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n    <file path=\"system/library/db/mssql.php\" error=\"skip\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[$this->connection->exec(\"SET NAMES \'utf8\'\");]]></search>\r\n            <add position=\"replace\"><![CDATA[$this->connection->exec(\"SET NAMES \'utf8mb4\'\");]]></add>\r\n        </operation>\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[$this->connection->exec(\"SET CHARACTER SET utf8\");]]></search>\r\n            <add position=\"replace\"><![CDATA[$this->connection->exec(\"SET CHARACTER SET utf8mb4\");]]></add>\r\n        </operation>\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[$this->connection->exec(\"SET CHARACTER_SET_CONNECTION=utf8\");]]></search>\r\n            <add position=\"replace\"><![CDATA[$this->connection->exec(\"SET CHARACTER_SET_CONNECTION=utf8mb4\");]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"system/library/db/mssql.php\" error=\"skip\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[mssql_query(\"SET NAMES \'utf8\'\", $this->connection);]]></search>\r\n            <add position=\"replace\"><![CDATA[mssql_query(\"SET NAMES \'utf8mb4\'\", $this->connection);]]></add>\r\n        </operation>\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[mssql_query(\"SET CHARACTER SET utf8\", $this->connection);]]></search>\r\n            <add position=\"replace\"><![CDATA[mssql_query(\"SET CHARACTER SET utf8mb4\", $this->connection);]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"system/library/db/mysql.php\" error=\"skip\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[mysql_query(\"SET NAMES \'utf8\'\", $this->connection);]]></search>\r\n            <add position=\"replace\"><![CDATA[mysql_query(\"SET NAMES \'utf8mb4\'\", $this->connection);]]></add>\r\n        </operation>\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[mysql_query(\"SET CHARACTER SET utf8\", $this->connection);]]></search>\r\n            <add position=\"replace\"><![CDATA[mysql_query(\"SET CHARACTER SET utf8mb4\", $this->connection);]]></add>\r\n        </operation>\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[mysql_query(\"SET CHARACTER_SET_CONNECTION=utf8\", $this->connection);]]></search>\r\n            <add position=\"replace\"><![CDATA[mysql_query(\"SET CHARACTER_SET_CONNECTION=utf8mb4\", $this->connection);]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"system/library/db/mysqli.php\" error=\"skip\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[$this->connection->set_charset(\"utf8\");]]></search>\r\n            <add position=\"replace\"><![CDATA[$this->connection->set_charset(\"utf8mb4\");]]></add>\r\n        </operation>\r\n    </file>\r\n    <file path=\"system/library/db/postgre.php\" error=\"skip\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[pg_query($this->link, \"SET CLIENT_ENCODING TO \'UTF8\'\");]]></search>\r\n            <add position=\"replace\"><![CDATA[pg_query($this->link, \"SET CLIENT_ENCODING TO \'UTF8MB4\'\");]]></add>\r\n        </operation>\r\n    </file>\r\n\r\n    <file path=\"catalog/controller/account/order.php\">\r\n        <operation error=\"skip\">\r\n            <search index=\"0\"><![CDATA[nl2br($result[\'comment\'])]]></search>\r\n            <add position=\"replace\"><![CDATA[($result[\'notify\'] ? html_entity_decode($result[\'comment\'], ENT_QUOTES, \'UTF-8\') : \'\')]]></add>\r\n        </operation>\r\n    </file>\r\n\r\n	<file path=\"catalog/model/checkout/order.php\">\r\n		<operation error=\"log\">\r\n			<search index=\"0\"><![CDATA[$this->db->query(\"INSERT INTO `\" . DB_PREFIX . \"order` SET]]></search>\r\n			<ignoreif>\r\n				<![CDATA[weight = \'\" . (isset($data[\'weight\']) ? floatval($data[\'weight\']) : 0) . \"\',]]></ignoreif>\r\n			<add position=\"replace\">\r\n				<![CDATA[$this->db->query(\"INSERT INTO `\" . DB_PREFIX . \"order` SET weight = \'\" . (isset($data[\'weight\']) ? floatval($data[\'weight\']) : 0) . \"\',]]></add>\r\n		</operation>\r\n		<operation error=\"log\">\r\n			<search index=\"0\"><![CDATA[=> $order_query->row[\'customer_id\'],]]></search>\r\n			<ignoreif><![CDATA[\'weight\' => (isset($order_query->row[\'weight\'])) ? $order_query->row[\'weight\'] : 0,]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[            	\'weight\' => (isset($order_query->row[\'weight\'])) ? $order_query->row[\'weight\'] : 0,]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[=> $order_query->row[\'customer_id\'],]]></search>\r\n			<ignoreif><![CDATA[\'customer_group_id\' => (isset($order_query->row[\'customer_group_id\'])) ? $order_query->row[\'customer_group_id\'] : \'\',]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[				\'customer_group_id\' => (isset($order_query->row[\'customer_group_id\'])) ? $order_query->row[\'customer_group_id\'] : \'\',]]></add>\r\n		</operation>\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[=> $order_query->row[\'customer_id\'],]]></search>\r\n			<ignoreif>\r\n				<![CDATA[\'affiliate_id\' => (isset($order_query->row[\'affiliate_id\'])) ? $order_query->row[\'affiliate_id\'] : \'\',]]></ignoreif>\r\n			<add position=\"after\">\r\n				<![CDATA[				\'affiliate_id\' => (isset($order_query->row[\'affiliate_id\'])) ? $order_query->row[\'affiliate_id\'] : \'\',]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"catalog/controller/affiliate/login.php\">\r\n		<operation error=\"skip\">\r\n			<search index=\"0\"><![CDATA[$data[\'email\'] = $this->request->post[\'email\'];]]></search>\r\n			<ignoreif><![CDATA[elseif (isset($this->request->get[\'email\']))]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[		} elseif (isset($this->request->get[\'email\'])) {\r\n			$data[\'email\'] = $this->request->get[\'email\'];]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"catalog/controller/account/login.php\">\r\n		<operation error=\"skip\">\r\n			<search index=\"0\"><![CDATA[$data[\'email\'] = $this->request->post[\'email\'];]]></search>\r\n			<ignoreif><![CDATA[elseif (isset($this->request->get[\'email\']))]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[		} elseif (isset($this->request->get[\'email\'])) {\r\n			$data[\'email\'] = $this->request->get[\'email\'];]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"admin/controller/startup/permission.php\">\r\n		<operation error=\"skip\">\r\n			<search index=\"0\"><![CDATA[\'extension/module\']]></search>\r\n			<ignoreif><![CDATA[\'extension/module/emailtemplate\']]></ignoreif>\r\n			<add position=\"before\"><![CDATA[				\'extension/module/emailtemplate\',]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"admin/controller/common/column_left.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[if ($marketplace) {]]></search>\r\n			<ignoreif><![CDATA[$this->url->link(\'extension/module/emailtemplate\',]]></ignoreif>\r\n			<add position=\"before\"><![CDATA[            if ($this->user->hasPermission(\'access\', \'extension/module/emailtemplate\')) {\r\n                $marketplace[] = array(\r\n                    \'name\'     => $this->language->get(\'text_emailtemplate\'),\r\n                    \'href\'     => $this->url->link(\'extension/module/emailtemplate\', \'user_token=\' . $this->session->data[\'user_token\'], true),\r\n                    \'children\' => array()\r\n                );\r\n            }\r\n        ]]></add>\r\n		</operation>\r\n	</file>\r\n\r\n	<file path=\"admin/language/*/common/column_left.php\">\r\n		<operation>\r\n			<search index=\"0\"><![CDATA[<?php]]></search>\r\n			<ignoreif><![CDATA[$_[\'text_emailtemplate\']]]></ignoreif>\r\n			<add position=\"after\"><![CDATA[$_[\'text_emailtemplate\'] = \'Email Templates\';]]></add>\r\n		</operation>\r\n	</file>\r\n</modification>\r\n', 1, '2021-06-26 09:46:19');
INSERT INTO `modification` (`modification_id`, `extension_install_id`, `name`, `code`, `author`, `version`, `link`, `xml`, `status`, `date_added`) VALUES
(12, 51, 'Email Templates Newsletter', 'emailtemplates_newsletter', 'Opencart-Templates', '3.0.5.91', 'https://www.opencart-templates.co.uk/advanced_professional_email_template', '<modification>\n    <name>Email Templates Newsletter</name>\n    <code>emailtemplates_newsletter</code>\n    <version>3.0.5.91</version>\n    <author>Opencart-Templates</author>\n    <link>https://www.opencart-templates.co.uk/advanced_professional_email_template</link>\n\n    <file path=\"catalog/controller/account/newsletter.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[function index(]]></search>\n            <add position=\"after\"><![CDATA[     if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n            $this->response->redirect($this->url->link(\'extension/module/emailtemplate_newsletter\', \'\', true));\n        }]]></add>\n        </operation>\n    </file>\n\n    <file path=\"admin/model/customer/customer.php|catalog/model/account/customer.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[$customer_id = $this->db->getLastId();]]></search>\n            <add position=\"after\"><![CDATA[\n		// trigger event eventAddCustomer\n		$this->load->controller(\'extension/module/emailtemplate_newsletter/eventAddCustomer\', $this->getCustomer($customer_id));\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/controller/common/footer.php|catalog/controller/extension/module/account.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);]]></search>\n            <ignoreif><![CDATA[$data[\'newsletter\'] = $this->url->link(\'extension/module/emailtemplate_newsletter\']]></ignoreif>\n            <add position=\"replace\"><![CDATA[//$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);\n		if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n			$data[\'newsletter\'] = $this->url->link(\'extension/module/emailtemplate_newsletter\', \'\', true);\n		} else {\n			$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);\n		}\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/controller/account/account.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);]]></search>\n            <ignoreif><![CDATA[$data[\'newsletter\'] = $this->url->link(\'extension/module/emailtemplate_newsletter\']]></ignoreif>\n            <add position=\"replace\"><![CDATA[//$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);\n		if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n			$data[\'newsletter\'] = $this->url->link(\'extension/module/emailtemplate_newsletter\', \'\', true);\n\n			// Create new language to prevent overwriting\n			$language_code = !empty($this->session->data[\'language\']) ? $this->session->data[\'language\'] : $this->config->get(\'config_language\');\n\n			$oLanguage = new Language($language_code);\n			$oLanguage->load(\'extension/module/emailtemplate_newsletter\');\n\n			$data[\'text_newsletter\'] = $oLanguage->get(\'text_edit_newsletter_preference\');\n		} else {\n			$data[\'newsletter\'] = $this->url->link(\'account/newsletter\', \'\', true);\n		}\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/controller/account/register.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[if (isset($this->request->post[\'newsletter\'])) {]]></search>\n            <add position=\"before\"><![CDATA[		if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n			// Create new language to prevent overwriting\n			$language_code = !empty($this->session->data[\'language\']) ? $this->session->data[\'language\'] : $this->config->get(\'config_language\');\n\n			$oLanguage = new Language($language_code);\n			$oLanguage->load(\'extension/module/emailtemplate_newsletter\');\n\n   			$data[\'module_emailtemplate_newsletter_status\'] = $this->config->get(\'module_emailtemplate_newsletter_status\');\n			$data[\'module_emailtemplate_newsletter_notification\'] = $this->config->get(\'module_emailtemplate_newsletter_notification\');\n			$data[\'module_emailtemplate_newsletter_showcase\'] = $this->config->get(\'module_emailtemplate_newsletter_showcase\');\n\n			$data[\'text_preference\'] = $oLanguage->get(\'text_preference\');\n			$data[\'entry_preference_essential\'] = $oLanguage->get(\'entry_preference_essential\');\n			$data[\'entry_preference_notification\'] = $oLanguage->get(\'entry_preference_notification\');\n			$data[\'entry_preference_showcase\'] = $oLanguage->get(\'entry_preference_showcase\');\n\n			$data[\'preference_notification\'] = (isset($this->request->post[\'preference_notification\'])) ? $this->request->post[\'preference_notification\'] : 1;\n			$data[\'preference_showcase\'] = (isset($this->request->post[\'preference_showcase\'])) ? $this->request->post[\'preference_showcase\'] : 1;\n		}\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/controller/checkout/register.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[$data[\'entry_newsletter\'] =]]></search>\n            <add position=\"after\"><![CDATA[\n        if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n			// Create new language to prevent overwriting\n			$language_code = !empty($this->session->data[\'language\']) ? $this->session->data[\'language\'] : $this->config->get(\'config_language\');\n\n			$oLanguage = new Language($language_code);\n			$oLanguage->load(\'extension/module/emailtemplate_newsletter\');\n\n   			$data[\'module_emailtemplate_newsletter_status\'] = $this->config->get(\'module_emailtemplate_newsletter_status\');\n			$data[\'module_emailtemplate_newsletter_notification\'] = $this->config->get(\'module_emailtemplate_newsletter_notification\');\n			$data[\'module_emailtemplate_newsletter_showcase\'] = $this->config->get(\'module_emailtemplate_newsletter_showcase\');\n\n			$data[\'text_preference\'] = $oLanguage->get(\'text_preference\');\n			$data[\'entry_preference_essential\'] = $oLanguage->get(\'entry_preference_essential\');\n			$data[\'entry_preference_notification\'] = $oLanguage->get(\'entry_preference_notification\');\n			$data[\'entry_preference_newsletter\'] = $oLanguage->get(\'entry_preference_newsletter\');\n			$data[\'entry_preference_showcase\'] = $oLanguage->get(\'entry_preference_showcase\');\n\n			$data[\'preference_notification\'] = (isset($this->request->post[\'preference_notification\'])) ? $this->request->post[\'preference_notification\'] : 1;\n			$data[\'preference_showcase\'] = (isset($this->request->post[\'preference_showcase\'])) ? $this->request->post[\'preference_showcase\'] : 1;\n		}\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/view/theme/*/template/account/register.twig\">\n        <operation>\n            <search index=\"0\"><![CDATA[{{ footer }}]]></search>\n            <add position=\"before\"><![CDATA[{% if module_emailtemplate_newsletter_status %}<div id=\"emailtemplate-preference\" class=\"row\">\n  <div class=\"col-sm-10 col-sm-offset-2\">\n  <div class=\"help-block\"><button type=\"button\" class=\"btn btn-link btn-collapse collapsed\" data-toggle=\"collapse\" data-target=\"#collapse-preference\" style=\"padding:0;\"><i class=\"fa fa-fw\"></i> {{ text_preference }}</button></div>\n  <div id=\"collapse-preference\" class=\"collapse\">\n    <div class=\"form-group row\">\n      <div class=\"col-xs-12\">\n        <div class=\"checkbox disabled text-muted\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_essential\" id=\"input_preference_essential\" value=\"1\" checked=\"checked\" disabled=\"disabled\" />\n            {{ entry_preference_essential }}</label>\n        </div>\n        {% if module_emailtemplate_newsletter_notification %}<div class=\"checkbox\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_notification\" id=\"input_preference_notification\" value=\"1\"{% if preference_notification %} checked=\"checked\"{% endif %} />\n            {{ entry_preference_notification }}</label>\n        </div>{% endif %}\n        {% if module_emailtemplate_newsletter_showcase %}<div class=\"checkbox\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_showcase\" id=\"input_preference_showcase\" value=\"1\"{% if preference_showcase %} checked=\"checked\"{% endif %} />\n            {{ entry_preference_showcase }}</label>\n        </div>{% endif %}\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n<style type=\"text/css\">\n.btn-collapse .fa:before {content:\"\\f103\";}\n.btn-collapse.collapsed .fa:before {content:\"\\f101\";}\n</style>\n<script type=\"text/javascript\"><!--\n$(\'#emailtemplate-preference\').each(function() {\n  var $emailtemplate_preference = $(this);\n  var $input_newsletter = $(\'input[name=newsletter]\');\n  if ($emailtemplate_preference.length && $input_newsletter.length) {\n    $emailtemplate_preference.insertAfter($input_newsletter.eq(0).parents(\'.form-group\'));\n  }\n});\n//--></script>{% endif %}]]></add>\n        </operation>\n    </file>\n\n    <file path=\"catalog/view/theme/*/template/checkout/register.twig\">\n        <operation>\n            <search index=\"0\"><![CDATA[name=\"newsletter\"]]></search>\n            <add position=\"after\" offset=\"1\"><![CDATA[{% if module_emailtemplate_newsletter_status %}<div id=\"emailtemplate-preference\">\n  <div class=\"help-block\"><button type=\"button\" class=\"btn btn-link btn-collapse collapsed\" data-toggle=\"collapse\" data-target=\"#collapse-preference\" style=\"padding:0;\"><i class=\"fa fa-fw\"></i> {{ text_preference }}</button></div>\n  <div id=\"collapse-preference\" class=\"collapse\">\n    <div class=\"form-group row\">\n      <div class=\"col-xs-12\">\n        <div class=\"checkbox disabled text-muted\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_essential\" id=\"input_preference_essential\" value=\"1\" checked=\"checked\" disabled=\"disabled\" />\n            {{ entry_preference_essential }}</label>\n        </div>\n        {% if module_emailtemplate_newsletter_notification %}<div class=\"checkbox\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_notification\" id=\"input_preference_notification\" value=\"1\"{% if preference_notification %} checked=\"checked\"{% endif %} />\n            {{ entry_preference_notification }}</label>\n        </div>{% endif %}\n        {% if module_emailtemplate_newsletter_showcase %}<div class=\"checkbox\">\n          <label>\n            <input type=\"checkbox\" name=\"preference_showcase\" id=\"input_preference_showcase\" value=\"1\"{% if preference_showcase %} checked=\"checked\"{% endif %} />\n            {{ entry_preference_showcase }}</label>\n        </div>{% endif %}\n      </div>\n    </div>\n  </div>\n</div>\n<style type=\"text/css\">\n.btn-collapse .fa:before {content:\"\\f103\";}\n.btn-collapse.collapsed .fa:before {content:\"\\f101\";}\n</style>\n<script type=\"text/javascript\"><!--\n$(\'#emailtemplate-preference\').each(function() {\n  var $emailtemplate_preference = $(this);\n  var $input_newsletter = $(\'input[name=newsletter]\');\n  if ($emailtemplate_preference.length && $input_newsletter.length) {\n    $emailtemplate_preference.insertAfter($input_newsletter.parents(\'.checkbox\'));\n  }\n});\n//--></script>{% endif %}]]></add>\n        </operation>\n    </file>\n\n    <file path=\"admin/controller/customer/customer.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[if (isset($this->request->post[\'newsletter\'])) {]]></search>\n            <add position=\"before\"><![CDATA[        if ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\')) {\n			// Prevent language overwrite\n			// Create new language to prevent overwriting\n			$language_code = !empty($this->session->data[\'language\']) ? $this->session->data[\'language\'] : $this->config->get(\'config_language\');\n\n			$oLanguage = new Language($language_code);\n			$oLanguage->load(\'extension/module/emailtemplate_newsletter\');\n\n			$this->load->model(\'extension/module/emailtemplate_newsletter\');\n\n   			$data[\'module_emailtemplate_newsletter_status\'] = $this->config->get(\'module_emailtemplate_newsletter_status\');\n			$data[\'module_emailtemplate_newsletter_notification\'] = $this->config->get(\'module_emailtemplate_newsletter_notification\');\n			$data[\'module_emailtemplate_newsletter_showcase\'] = $this->config->get(\'module_emailtemplate_newsletter_showcase\');\n\n			$data[\'entry_preference\'] = $oLanguage->get(\'entry_preference\');\n			$data[\'entry_preference_notification\'] = $oLanguage->get(\'entry_preference_notification\');\n			$data[\'entry_preference_showcase\'] = $oLanguage->get(\'entry_preference_showcase\');\n\n            if (isset($this->request->get[\'customer_id\'])) {\n			    $customer_preference_info = $this->model_extension_module_emailtemplate_newsletter->getCustomerPreference($this->request->get[\'customer_id\']);\n            }\n\n			if (isset($this->request->post[\'preference_notification\'])) {\n				$data[\'preference_notification\'] =  $this->request->post[\'preference_notification\'];\n			} elseif (!empty($customer_preference_info)) {\n				$data[\'preference_notification\'] = $customer_preference_info[\'notification\'];\n			} else {\n				$data[\'preference_notification\'] = \'\';\n			}\n\n			if (isset($this->request->post[\'preference_showcase\'])) {\n				$data[\'preference_showcase\'] =  $this->request->post[\'preference_showcase\'];\n			} elseif (!empty($customer_preference_info)) {\n				$data[\'preference_showcase\'] = $customer_preference_info[\'showcase\'];\n			} else {\n				$data[\'preference_showcase\'] = \'\';\n			}\n		}\n        ]]></add>\n        </operation>\n    </file>\n\n    <file path=\"admin/view/template/customer/customer_form.twig\">\n        <operation>\n            <search index=\"0\"><![CDATA[{{ entry_status }}</label>]]></search>\n            <add position=\"before\" offset=\"1\"><![CDATA[                      {% if module_emailtemplate_newsletter_status %}\n                        <div class=\"form-group\">\n                          <label class=\"col-sm-2 control-label\">{{ entry_preference }}</label>\n                          <div class=\"col-sm-10\">\n                            {% if module_emailtemplate_newsletter_notification %}<div class=\"checkbox\">\n                              <label><input type=\"checkbox\" name=\"preference_notification\" value=\"1\"{{ preference_notification ? \' checked=\"checked\"\' : \'\' }} /> {{ entry_preference_notification }}</label>\n                            </div>{% endif %}\n                            {% if module_emailtemplate_newsletter_showcase %}<div class=\"checkbox\">\n                              <label><input type=\"checkbox\" name=\"preference_showcase\" value=\"1\"{{ preference_showcase ? \' checked=\"checked\"\' : \'\' }} /> {{ entry_preference_showcase }}</label>\n                            </div>{% endif %}\n                          </div>\n                        </div>\n                      {% endif %}]]></add>\n        </operation>\n    </file>\n</modification>\n', 1, '2021-06-26 09:46:21'),
(13, 50, 'Email Templates Security', 'emailtemplates_security', 'Opencart-Templates', '3.0.5.91', 'https://www.opencart-templates.co.uk/advanced_professional_email_template', '<modification>\n    <name>Email Templates Security</name>\n    <code>emailtemplates_security</code>\n    <version>3.0.5.91</version>\n    <author>Opencart-Templates</author>\n    <link>https://www.opencart-templates.co.uk/advanced_professional_email_template</link>\n\n    <file path=\"system/library/cart/customer.php\">\n        <operation>\n            <search index=\"0\"><![CDATA[private $customer_id;]]></search>\n            <ignoreif><![CDATA[private $load;]]></ignoreif>\n            <add position=\"after\"><![CDATA[	private $load;]]></add>\n        </operation>\n        <operation>\n            <search index=\"0\"><![CDATA[$this->request = $registry->get(\'request\');]]></search>\n            <ignoreif><![CDATA[$this->load = $registry->get(\'load\');]]></ignoreif>\n            <add position=\"after\"><![CDATA[		$this->load = $registry->get(\'load\');]]></add>\n        </operation>\n        <operation>\n            <search index=\"0\"><![CDATA[$this->db->query(\"UPDATE \" . DB_PREFIX . \"customer SET]]></search>\n            <add position=\"before\"><![CDATA[				// Customer IP Changed?\n                        if (isset($this->request->get[\'route\']) && !in_array($this->request->get[\'route\'], array(\'common/login\', \'common/logout\')) && (empty($_SERVER[\'HTTP_X_REQUESTED_WITH\']) || strtolower($_SERVER[\'HTTP_X_REQUESTED_WITH\']) != \'xmlhttprequest\')) {\n                            $user = new User($registry);\n\n                            if (!$user->isLogged()) {\n                                $customer_ip_query = $this->db->query(\"(SELECT ip FROM \" . DB_PREFIX . \"customer WHERE customer_id = \'\" . (int)$this->customer_id . \"\' AND ip = \'\" . $this->db->escape($this->request->server[\'REMOTE_ADDR\']) . \"\') UNION (SELECT ip FROM \" . DB_PREFIX . \"customer_ip WHERE customer_id = \'\" . (int)$this->customer_id . \"\' AND ip = \'\" . $this->db->escape($this->request->server[\'REMOTE_ADDR\']) . \"\')\");\n\n                                if (!$customer_ip_query->num_rows) {\n                                    $this->load->controller(\'extension/module/emailtemplate_security/customerIpChanged\', array($this->customer_id));\n                                }\n                            }\n                        }\n            ]]></add>\n        </operation>\n        <operation>\n            <search index=\"1\"><![CDATA[$this->db->query(\"UPDATE \" . DB_PREFIX . \"customer SET]]></search>\n            <add position=\"before\"><![CDATA[			// Customer IP Changed?\n			if (!$override) {\n                $customer_ip_query = $this->db->query(\"(SELECT ip FROM \" . DB_PREFIX . \"customer WHERE customer_id = \'\" . (int)$this->customer_id . \"\' AND ip = \'\" . $this->db->escape($this->request->server[\'REMOTE_ADDR\']) . \"\') UNION (SELECT ip FROM \" . DB_PREFIX . \"customer_ip WHERE customer_id = \'\" . (int)$this->customer_id . \"\' AND ip = \'\" . $this->db->escape($this->request->server[\'REMOTE_ADDR\']) . \"\')\");\n\n                if (!$customer_ip_query->num_rows) {\n                    $this->load->controller(\'extension/module/emailtemplate_security/customerIpChanged\', array($this->customer_id));\n                }\n            }\n            ]]></add>\n        </operation>\n    </file>\n</modification>\n', 1, '2021-06-26 09:46:23');
INSERT INTO `modification` (`modification_id`, `extension_install_id`, `name`, `code`, `author`, `version`, `link`, `xml`, `status`, `date_added`) VALUES
(14, 50, 'Email Templates', 'emailtemplates', 'Opencart-Templates', '3.0.5.91', 'https://www.opencart-templates.co.uk/advanced_professional_email_template', '<modification>\r\n	<name>Email Templates</name>\r\n	<code>emailtemplates</code>\r\n	<author>Opencart-Templates</author>\r\n	<version>3.0.5.91</version>\r\n	<link>https://www.opencart-templates.co.uk/advanced_professional_email_template</link>\r\n	<file path=\"admin/controller/mail/affiliate.php\" email_template=\"admin.affiliate_approve\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.affiliate_approve\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n				\'key\' => \'admin.affiliate_approve\',\r\n				\'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n			);\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->addData($customer_info);\r\n\r\n                if (!empty($args[0][\'custom_field\'])) {\r\n                    $this->load->model(\'account/custom_field\');\r\n\r\n                    $custom_fields = $this->model_account_custom_field->getCustomFields($customer_info[\'customer_group_id\']);\r\n\r\n                    foreach ($custom_fields as $custom_field) {\r\n                        if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                            $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                            $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                            $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                            $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                    if (is_array($custom_field_value)) {\r\n                                        if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                            $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n                if ($store_info) {\r\n                    $store_url = $store_info[\'url\'] . \'index.php?route=affiliate/login\';\r\n                } else {\r\n                    $store_url = HTTP_CATALOG . \'index.php?route=affiliate/login\';\r\n                }\r\n\r\n                $template->data[\'account_login\'] = $store_url . \'&amp;email=\' . $customer_info[\'email\'];\r\n\r\n                if (!empty($template->data[\'button_account_login\'])) {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'button_account_login\'];\r\n                } else {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'account_login\'];\r\n                }\r\n			    // Prepared mail: admin.affiliate_approve\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n		// Send mail: admin.affiliate_approve\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n		    $template->hook($mail);\r\n        }\r\n\r\n		$mail->send();\r\n\r\n		$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setText($this->load->view(\'mail/affiliate_approve\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setText($this->load->view(\'mail/affiliate_approve\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setText($this->load->view(\'mail/affiliate_approve\', $data));]]></add>\r\n    </operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/affiliate_approve\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_approve\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_approve\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/affiliate.php\" email_template=\"admin.affiliate_deny\">\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.affiliate_deny\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n				\'key\' => \'admin.affiliate_deny\',\r\n				\'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n			);\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n			    $template->addData($customer_info);\r\n			    // Prepared mail: admin.affiliate_deny\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n		// Send mail: admin.affiliate_deny\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n            $template->hook($mail);\r\n        }\r\n\r\n		$mail->send();\r\n\r\n		$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setText($this->load->view(\'mail/affiliate_deny\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setText($this->load->view(\'mail/affiliate_deny\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setText($this->load->view(\'mail/affiliate_deny\', $data));]]></add>\r\n    </operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/affiliate_deny\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_deny\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_deny\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/customer.php\" email_template=\"admin.customer_approve\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.customer_approve\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n				\'key\' => \'admin.customer_approve\',\r\n				\'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n			);\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->addData($customer_info);\r\n\r\n                if (!empty($args[0][\'custom_field\'])) {\r\n                    $this->load->model(\'account/custom_field\');\r\n\r\n                    $custom_fields = $this->model_account_custom_field->getCustomFields($customer_info[\'customer_group_id\']);\r\n\r\n                    foreach ($custom_fields as $custom_field) {\r\n                        if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                            $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                            $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                            $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                            $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                    if (is_array($custom_field_value)) {\r\n                                        if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                            $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n                $template->data[\'account_login\'] = $store_url . \'&amp;email=\' . $customer_info[\'email\'];\r\n\r\n                if (!empty($template->data[\'button_account_login\'])) {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'button_account_login\'];\r\n                } else {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'account_login\'];\r\n                }\r\n			    // Prepared mail: admin.customer_approve\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n		// Send mail: admin.customer_approve\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n		    $template->hook($mail);\r\n\r\n            $mail->send();\r\n\r\n            $this->model_extension_module_emailtemplate->sent();\r\n        }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/customer_approve\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/customer_approve\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/customer_approve\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/customer/customer.php\" email_template=\"admin.customer_create\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[if (isset($this->request->post[\'status\'])) {]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n		$this->load->language(\'extension/module/emailtemplate/customer\');\r\n\r\n		$data[\'entry_notify\'] = $this->language->get(\'entry_notify\');\r\n\r\n		if (isset($this->request->post[\'notify\'])) {\r\n			$data[\'notify\'] = $this->request->post[\'notify\'];\r\n		} else {\r\n			$data[\'notify\'] = true;\r\n		}\r\n		]]></add>\r\n	</operation>\r\n</file>\r\n\r\n<file path=\"admin/view/template/customer/customer_form.twig\" email_template=\"admin.customer_create\">\r\n	<operation>\r\n        <search index=\"0\"><![CDATA[<legend>{{ text_other }}</legend>]]></search>\r\n		<add position=\"after\"><![CDATA[                          {% if not customer_id %}\r\n                        <div class=\"form-group\">\r\n                          <label class=\"col-sm-2 control-label\" for=\"input-notify\">{{ entry_notify }}</label>\r\n                          <div class=\"col-sm-10\">\r\n                            <div class=\"btn-group btn-group-toggle\" data-toggle=\"buttons\">\r\n                              <label class=\"btn btn-default danger{{ notify == 0 ? \' active\' }}\" data-toggle=\"tooltip\" title=\"{{ text_no }}\">\r\n                                <input type=\"radio\" name=\"notify\" value=\"0\" {{ notify == 0 ? \' checked=\"checked\" \' }}/><i class=\"fa fa-fw fa-times\"></i>\r\n                              </label>\r\n                              <label class=\"btn btn-default success{{ notify == 1 ? \' active\' }}\" data-toggle=\"tooltip\" title=\"{{ text_yes }}\">\r\n                                <input type=\"radio\" name=\"notify\" value=\"1\" {{ notify == 1 ? \' checked=\"checked\" \' }}/><i class=\"fa fa-fw fa-check\"></i>\r\n                              </label>\r\n                            </div>\r\n                          </div>\r\n                        </div>\r\n                      {% endif %}]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/customer.php\" email_template=\"admin.customer_deny\">\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.customer_deny\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n				\'key\' => \'admin.customer_deny\',\r\n				\'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n			);\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n			    $template->addData($customer_info);\r\n			    // Prepared mail: admin.customer_deny\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n		// Send mail: admin.customer_deny\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n            $template->hook($mail);\r\n\r\n            $mail->send();\r\n\r\n            $this->model_extension_module_emailtemplate->sent();\r\n        }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/customer_deny\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/customer_deny\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/customer_deny\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/customer/customer.php\" email_template=\"admin.customer_history\">\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$this->model_customer_customer->addHistory($customer_id, $this->request->post[\'comment\']);]]></search>\r\n        <ignoreif><![CDATA[$this->model_customer_customer->addHistory($customer_id, $this->request->post[\'comment\'], $history_notify]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[$history_notify = !empty($this->request->post[\'history_notify\']) ? true : false;\r\n\r\n                $this->model_customer_customer->addHistory($customer_id, $this->request->post[\'comment\'], $history_notify);]]></add>\r\n    </operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$this->model_customer_customer->addHistory($this->request->get[\'customer_id\'], $this->request->post[\'comment\']);]]></search>\r\n        <ignoreif><![CDATA[$this->model_customer_customer->addHistory($this->request->get[\'customer_id\'], $this->request->post[\'comment\'], $history_notify]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[$history_notify = !empty($this->request->post[\'history_notify\']) ? true : false;\r\n\r\n                $this->model_customer_customer->addHistory($this->request->get[\'customer_id\'], $this->request->post[\'comment\'], $history_notify);]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$customer_info = $this->model_customer_customer->getCustomer($this->request->get[\'customer_id\']);]]></search>\r\n        <add position=\"after\" offset=\"1\"><![CDATA[\r\n        $this->document->addScript(\'view/javascript/summernote/summernote.js\');\r\n		$this->document->addScript(\'view/javascript/summernote/opencart.js\');\r\n		$this->document->addStyle(\'view/javascript/summernote/summernote.css\');\r\n\r\n        $this->load->language(\'extension/module/emailtemplate/customer\');\r\n\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$templates = $this->model_extension_module_emailtemplate->getTemplates(array(\r\n			\'emailtemplate_key\' => \'admin.customer_history\'\r\n		));\r\n\r\n		$data[\'language_id\'] = array();\r\n\r\n		$data[\'template_options\'] = array();\r\n\r\n		foreach($templates as $row) {\r\n			$data[\'template_options\'][] = array(\r\n				\'value\' => $row[\'emailtemplate_id\'],\r\n				\'label\' => $row[\'emailtemplate_label\'] . (!empty($row[\'emailtemplate_default\']) ? \' (\' . strip_tags($this->language->get(\'text_default\')) . \')\': \'\')\r\n			);\r\n		}\r\n\r\n		$data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n\r\n        if (isset($this->request->post[\'language_id\'])) {\r\n			$data[\'language_id\'] = $this->request->post[\'language_id\'];\r\n		} elseif (!empty($customer_info)) {\r\n			$data[\'language_id\'] = $customer_info[\'language_id\'];\r\n		} else {\r\n			$data[\'language_id\'] = $this->config->get(\'config_language_id\');\r\n		}\r\n\r\n        if (isset($this->request->post[\'store_id\'])) {\r\n			$data[\'store_id\'] = $this->request->post[\'store_id\'];\r\n		} elseif (!empty($customer_info)) {\r\n			$data[\'store_id\'] = $customer_info[\'store_id\'];\r\n		} else {\r\n			$data[\'store_id\'] = $this->config->get(\'config_store_id\');\r\n		}\r\n        ]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[\'comment\'    => $result[\'comment\'],]]></search>\r\n        <add position=\"replace\"><![CDATA[\'comment\'    => html_entity_decode($result[\'comment\'], ENT_QUOTES, \'UTF-8\'),\r\n        		\'notify\'    => $this->language->get($result[\'notified\'] ? \'text_yes\' : \'text_no\'),]]></add>\r\n    </operation>\r\n</file>\r\n\r\n<file path=\"admin/model/customer/customer.php\" email_template=\"admin.customer_history\">\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[function addHistory($customer_id, $comment]]></search>\r\n        <ignoreif><![CDATA[function addHistory($customer_id, $comment, $notify = false]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[function addHistory($customer_id, $comment, $notify = false]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$this->db->query(\"INSERT INTO \" . DB_PREFIX . \"customer_history SET]]></search>\r\n        <ignoreif><![CDATA[notified = \'\" . (int)$notify]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[$this->db->query(\"INSERT INTO \" . DB_PREFIX . \"customer_history SET notified = \'\" . (int)$notify . \"\', ]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$this->db->query(\"INSERT INTO \" . DB_PREFIX . \"customer_history]]></search>\r\n        <ignoreif><![CDATA[$customer_history_id = $this->db->getLastId();]]></ignoreif>\r\n        <add position=\"after\"><![CDATA[\r\n        $customer_history_id = $this->db->getLastId();\r\n\r\n        return $customer_history_id;]]></add>\r\n    </operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[comment = \'\" . $this->db->escape(strip_tags($comment)) . \"\']]></search>\r\n        <add position=\"replace\"><![CDATA[comment = \'\" . $this->db->escape((string)$comment) . \"\']]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[SELECT comment, date_added]]></search>\r\n        <add position=\"replace\"><![CDATA[SELECT comment, date_added, notified]]></add>\r\n    </operation>\r\n</file>\r\n\r\n<file path=\"admin/view/template/customer/customer_history.twig\" email_template=\"admin.customer_history\">\r\n<operation>\r\n    <search index=\"0\"><![CDATA[{{ column_comment }}</td>]]></search>\r\n    <add position=\"after\"><![CDATA[        <td class=\"text-left\">{{ column_notify }}</td>]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[{{ history.comment }}</td>]]></search>\r\n    <add position=\"after\"><![CDATA[        <td class=\"text-left\">{{ history.notify }}</td>]]></add>\r\n</operation>\r\n</file>\r\n\r\n<file path=\"admin/view/template/customer/customer_form.twig\" email_template=\"admin.customer_history\">\r\n<operation>\r\n    <search index=\"0\"><![CDATA[id=\"input-comment\" class=\"form-control]]></search>\r\n    <add position=\"replace\"><![CDATA[data-toggle=\"summernote\" id=\"input-comment\" class=\"form-control summernote]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[id=\"input-comment\"]]></search>\r\n    <add position=\"after\"><![CDATA[\r\n                  {% if customer_id %}\r\n                      </div>\r\n                  </div>\r\n                  <div class=\"form-group row\">\r\n                    <label class=\"col-sm-2 col-form-label\" for=\"input-history-notify\">{{ entry_notify }}</label>\r\n                    <div class=\"col-sm-10\">\r\n                      <div class=\"btn-group btn-group-toggle\" data-toggle=\"buttons\">\r\n                        <label class=\"btn btn-default danger active\" data-toggle=\"tooltip\" title=\"{{ text_no }}\">\r\n                          <input type=\"radio\" name=\"history_notify\" value=\"0\" checked=\"checked\" /><i class=\"fa fa-fw fa-times\"></i>\r\n                        </label>\r\n                        <label class=\"btn btn-default success\" data-toggle=\"tooltip\" title=\"{{ text_yes }}\">\r\n                          <input type=\"radio\" name=\"history_notify\" id=\"input-history-notify\" value=\"1\" /><i class=\"fa fa-fw fa-check\"></i>\r\n                        </label>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"row form-group form-group-history-notify\" style=\"display:none\">\r\n                    <label class=\"col-sm-2 col-form-label\" for=\"input-templates\">{{ entry_template }}</label>\r\n                    <div class=\"col-sm-10\">\r\n                      <select id=\"input-templates\" name=\"emailtemplate_id\" class=\"form-control\">\r\n                        <option value=\"\">{{ text_select }}</option>\r\n                        {% for item in template_options %}\r\n                          <option value=\"{{ item.value }}\">{{ item.label }}</option>\r\n                        {% endfor %}\r\n                      </select>\r\n                  {% endif %}\r\n		]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[$(\'#button-history\').on(\'click\']]></search>\r\n    <add position=\"after\"><![CDATA[  if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n  	  if (CKEDITOR.instances[\"input-comment\"]) {\r\n		  CKEDITOR.instances[\"input-comment\"].updateElement();\r\n	  } else {\r\n		  CKEDITOR.instances[\"comment\"].updateElement();\r\n	  }\r\n  }\r\n\r\n  if ($(\"textarea[name=\'comment\']\").val().replace(/(<([^>]+)>)/ig,\"\") == \'\') {\r\n    $(\"textarea[name=\'comment\']\").val(\'\');\r\n  }]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[data: \'comment=\' + encodeURIComponent($(\'#tab-history textarea[name=\\\'comment\\\']\').val()),]]></search>\r\n    <add position=\"replace\"><![CDATA[data: $(\'#tab-history :input\').serialize(),]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[$(\'#tab-history textarea[name=\\\'comment\\\']\').val(\'\');]]></search>\r\n    <add position=\"after\"><![CDATA[if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n			  if (CKEDITOR.instances[\"input-comment\"]) {\r\n				  CKEDITOR.instances[\"input-comment\"].setData(\'\');\r\n			  } else {\r\n				  CKEDITOR.instances[\"comment\"].setData(\'\');\r\n			  }\r\n	        } else if ($.fn.summernote) {\r\n              $(\'#tab-history textarea[name=comment]\').summernote(\'reset\');\r\n            }\r\n\r\n			$(\'select[name=history_notify] > option:selected\').prop(\'selected\', false);\r\n\r\n           	$(\'.form-group-history-notify\').hide().each(function(){\r\n           		$(this).find(\'input[type=checkbox]\').prop(\'checked\', false);\r\n           		$(this).find(\'input[type=radio][value!=0]\').prop(\'selected\', false);\r\n           		$(this).find(\'input[type=radio][value=0]\').prop(\'selected\', true);\r\n           		$(this).find(\'option:selected\').prop(\'selected\', false);\r\n           	});]]></add>\r\n</operation>\r\n<operation>\r\n    <search index=\"0\"><![CDATA[{{ footer }}]]></search>\r\n    <add position=\"before\"><![CDATA[\r\n<script type=\"text/javascript\"><!--\r\n(function($){\r\n  $(document).ready(function(){\r\n    var $comment = $(\'#tab-history textarea[name=comment]\');\r\n\r\n    $(\'input[name=history_notify]\').on(\'change\', function(){\r\n      $(\'.form-group-history-notify\').toggle($(this).val() == 1 ? true : false);\r\n    });\r\n\r\n    $(\'select[name=emailtemplate_id]\').change(function() {\r\n      var val = $(this).val();\r\n\r\n      if (!val || ($comment.val() != \'\' && $comment.val() != \'<p><br></p>\' && !confirm(\"{{ warning_template_content }}\"))) return;\r\n\r\n	  $comment.val(\'\');\r\n\r\n      $.ajax({\r\n        url: \'index.php?route=extension/module/emailtemplate/fetch_template&output=comment&user_token={{ user_token }}\',\r\n        type: \'get\',\r\n        data: \'emailtemplate_id=\' + val + \'&store_id={{ store_id }}\' + \'&language_id={{ language_id }}\' + \'&customer_id={{ customer_id }}\',\r\n        dataType: \'html\',\r\n        success: function(html) {\r\n          if (html) {\r\n            $comment.val(html);\r\n\r\n            if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n              if (CKEDITOR.instances[\"input-comment\"]) {\r\n                CKEDITOR.instances[\"input-comment\"].setData(html);\r\n              } else {\r\n                CKEDITOR.instances[\"comment\"].setData(html);\r\n              }\r\n            } else if ($.fn.summernote) {\r\n				$comment.summernote(\'code\', html);\r\n			}\r\n          }\r\n        },\r\n        error: function(xhr, ajaxOptions, thrownError) {\r\n          console.log(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);\r\n        }\r\n      });\r\n    });\r\n  });\r\n})(jQuery);\r\n//--></script>]]></add>\r\n</operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/reward.php\" email_template=\"admin.customer_reward\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.customer_reward\r\n			$this->load->model(\'customer/customer\');\r\n			$this->load->model(\'sale/order\');\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n			    \'key\' =>\'admin.customer_reward\',\r\n			    \'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n            );\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->addData($customer_info, \'customer\');\r\n\r\n                if ($order_id) {\r\n                	$order_info = $this->model_sale_order->getOrder($order_id);\r\n                	if ($order_info) {\r\n                		$template->addData($order_info, \'order\');\r\n					}\r\n                }\r\n\r\n                $template->data[\'customer_reward_points\'] = $points ? $points : 0;\r\n                $template->data[\'customer_reward_description\'] = $description ? $description : \'\';\r\n                $template->data[\'customer_reward_total\'] = $this->model_customer_customer->getRewardTotal($customer_id);\r\n\r\n                $template->data[\'reward_received\'] = sprintf($template->data[\'text_reward_received\'], $template->data[\'customer_reward_points\']);\r\n                $template->data[\'reward_total\'] = sprintf($template->data[\'text_reward_total\'], $template->data[\'customer_reward_total\']);\r\n\r\n                $template->data[\'text_reward_subject\'] = sprintf($template->data[\'text_reward_subject\'], $store_name);\r\n			    // Prepared mail: admin.customer_reward\r\n			}\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n			// Send mail: admin.customer_reward\r\n            if ($template && $template->check()) {\r\n                $template->build();\r\n			    $template->hook($mail);\r\n\r\n                $mail->send();\r\n\r\n                $this->model_extension_module_emailtemplate->sent();\r\n            }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/reward\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/reward\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/reward\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/transaction.php\" email_template=\"admin.customer_transaction\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: admin.customer_transaction\r\n			$this->load->model(\'customer/customer\');\r\n			$this->load->model(\'sale/order\');\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n			    \'key\' =>\'admin.customer_transaction\',\r\n			    \'customer_id\' => $customer_info[\'customer_id\'],\r\n				\'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n				\'language_id\' => $customer_info[\'language_id\'],\r\n				\'store_id\' => $customer_info[\'store_id\']\r\n            );\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->data[\'amount\'] = $amount;\r\n                $template->data[\'description\'] = $description;\r\n\r\n                $template->addData($customer_info, \'customer\');\r\n\r\n                if ($order_id) {\r\n                    $order_info = $this->model_sale_order->getOrder($order_id);\r\n\r\n                    $template->addData($order_info, \'order\');\r\n                }\r\n\r\n                $affiliate_info = $this->model_customer_customer->getAffiliate($customer_info[\'customer_id\']);\r\n\r\n                if ($affiliate_info) {\r\n                    $template->addData($affiliate_info, \'affiliate\');\r\n                }\r\n\r\n                $template->data[\'customer_transaction_received\'] = $this->currency->format($amount, $this->config->get(\'config_currency\'));\r\n                $template->data[\'customer_transaction_total\'] = $this->currency->format($this->model_customer_customer->getTransactionTotal($customer_id), $this->config->get(\'config_currency\'));\r\n\r\n                $template->data[\'transaction_received\'] = sprintf($template->data[\'text_transaction_received\'], $template->data[\'customer_transaction_received\']);\r\n                $template->data[\'transaction_total\'] = sprintf($template->data[\'text_transaction_total\'], $template->data[\'customer_transaction_total\']);\r\n			    // Prepared mail: admin.customer_transaction\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n			// Send mail: admin.customer_transaction\r\n            if ($template && $template->check()) {\r\n                $template->build();\r\n			    $template->hook($mail);\r\n\r\n                $mail->send();\r\n\r\n                $this->model_extension_module_emailtemplate->sent();\r\n            }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/transaction\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/transaction\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/transaction\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n\r\n	<file path=\"admin/controller/marketing/contact.php\" email_template=\"admin.newsletter\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$data[\'breadcrumbs\'] = array();]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n        $this->document->addScript(\'view/javascript/summernote/summernote.js\');\r\n        $this->document->addScript(\'view/javascript/summernote/opencart.js\');\r\n        $this->document->addStyle(\'view/javascript/summernote/summernote.css\');\r\n\r\n		$this->load->model(\'localisation/language\');\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$this->load->language(\'extension/module/emailtemplate/newsletter\');\r\n\r\n        $templates = $this->model_extension_module_emailtemplate->getTemplates(array(\r\n			\'emailtemplate_key\' => \'admin.newsletter\'\r\n		));\r\n\r\n		$data[\'email_templates\'] = array();\r\n\r\n		foreach($templates as $row) {\r\n			$data[\'email_templates\'][] = array(\r\n				\'value\' => $row[\'emailtemplate_id\'],\r\n				\'label\' => $row[\'emailtemplate_label\'] . (!empty($row[\'emailtemplate_default\']) ? \' (\' . strip_tags($this->language->get(\'text_default\')) . \')\': \'\')\r\n			);\r\n		}\r\n\r\n		$data[\'languages\'] = $this->model_localisation_language->getLanguages();\r\n\r\n        $data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n	]]></add>\r\n	</operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[if (!$this->request->post[\'subject\']) {]]></search>\r\n        <add position=\"replace\" offset=\"6\"><![CDATA[if (empty($json[\'error\'])) {\r\n				$this->load->model(\'localisation/language\');\r\n\r\n				$languages = $this->model_localisation_language->getLanguages();\r\n\r\n				foreach ($languages as $language) {\r\n					if (empty($this->request->post[\'subject\'][$language[\'language_id\']])) {\r\n						$json[\'error\'][\'subject\'][$language[\'language_id\']] = $this->language->get(\'error_subject\');\r\n					}\r\n\r\n					if (empty($this->request->post[\'message\'][$language[\'language_id\']]) || trim(strip_tags(html_entity_decode($this->request->post[\'message\'][$language[\'language_id\']], ENT_QUOTES, \'UTF-8\'))) == \'\') {\r\n						$json[\'error\'][\'message\'][$language[\'language_id\']] = $this->language->get(\'error_message\');\r\n					}\r\n				}\r\n\r\n				if (!empty($json[\'error\'])) {\r\n					$json[\'error\'][\'warning\'] = $this->language->get(\'error_warning\');\r\n				}\r\n			}]]></add>\r\n    </operation>\r\n	<operation info=\"Add extra info into email array. Regex to be backwards compatible with 3.0.1.*\">\r\n		<search regex=\"true\"><![CDATA[~\\$emails\\[.*?\\] = \\$customer_info\\[\'email\'\\];~]]></search>\r\n		<add position=\"replace\"><![CDATA[$email_total = isset($this->request->post[\'customer\']) ? count($this->request->post[\'customer\']) : 1;;\r\n\r\n									$emails[] = array(\r\n										\'customer\' => $customer_info,\r\n										\'email\' => $customer_info[\'email\'],\r\n										\'customer_id\' => $customer_info[\'customer_id\'],\r\n										\'store_id\' => $customer_info[\'store_id\'],\r\n										\'language_id\' => $customer_info[\'language_id\']\r\n									);]]></add>\r\n	</operation>\r\n	<operation info=\"Add extra info into email array\">\r\n		<search><![CDATA[$emails[$result[\'customer_id\']] = $result[\'email\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$emails[] = array(\r\n								\'email\' => $result[\'email\'],\r\n								\'customer_id\' => isset($result[\'customer_id\']) ? $result[\'customer_id\'] : 0,\r\n								\'store_id\' => isset($result[\'store_id\']) ? $result[\'store_id\'] : 0,\r\n								\'language_id\' => isset($result[\'language_id\']) ? $result[\'language_id\'] : 0\r\n							);]]></add>\r\n	</operation>\r\n	<operation info=\"affiliate_all\">\r\n		<search index=\"2\"><![CDATA[$emails[] = $result[\'email\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$emails[] = array(\r\n								\'email\' => $result[\'email\'],\r\n								\'affiliate_id\' => $result[\'affiliate_id\']\r\n							);]]></add>\r\n	</operation>\r\n	<operation info=\"affiliate\">\r\n		<search><![CDATA[$emails[] = $affiliate_info[\'email\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$email_total = 1;\r\n\r\n									$emails[] = array(\r\n										\'affiliate\' => $affiliate_info,\r\n										\'email\' => $affiliate_info[\'email\'],\r\n										\'affiliate_id\' => $affiliate_info[\'affiliate_id\']\r\n									);]]></add>\r\n	</operation>\r\n	<operation info=\"newsletter, customer_all, product\">\r\n		<search><![CDATA[$emails[] = $result[\'email\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$emails[] = array(\r\n								\'email\' => $result[\'email\'],\r\n								\'customer_id\' => isset($result[\'customer_id\']) ? $result[\'customer_id\'] : 0,\r\n								\'store_id\' => isset($result[\'store_id\']) ? $result[\'store_id\'] : 0,\r\n								\'language_id\' => isset($result[\'language_id\']) ? $result[\'language_id\'] : 0\r\n							);]]></add>\r\n	</operation>\r\n\r\n	<operation info=\"Move message into foreach\">\r\n		<search index=\"0\"><![CDATA[foreach ($emails as $email) {]]></search>\r\n		<add/>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$message  = \'<html ]]></search>\r\n		<add position=\"before\"><![CDATA[					if (isset($this->request->get[\'sent_total\'])) {\r\n                        $sent_total = $this->request->get[\'sent_total\'];\r\n                    } else {\r\n                        $sent_total = 0;\r\n                    }\r\n\r\n		            foreach ($emails as $email_info) {\r\n						$email = is_array($email_info) ? $email_info[\'email\'] : $email_info;\r\n\r\n						if (!empty($email_info[\'language_id\'])) {\r\n							$language_id = $email_info[\'language_id\'];\r\n						} else {\r\n							$language_id = $this->config->get(\'config_language_id\');\r\n						}\r\n\r\n						if (isset($email_info[\'store_id\']) && $this->request->post[\'store_id\'] == 0) {\r\n 							$store_id = $email_info[\'store_id\'];\r\n						} else {\r\n							$store_id = $this->request->post[\'store_id\'];\r\n						}\r\n\r\n						// Prepare mail: admin.newsletter\r\n						$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n						$template_load = array(\r\n							\'key\' => \'admin.newsletter\',\r\n							\'language_id\' => $language_id,\r\n							\'email\' => $email,\r\n							\'store_id\' => $store_id\r\n						);\r\n\r\n						if (isset($email_info[\'customer\']) && isset($email_info[\'customer\'][\'customer_id\'])) {\r\n							$template_load[\'customer_id\'] = $email_info[\'customer\'][\'customer_id\'];\r\n						} elseif (!empty($email_info[\'customer_id\'])) {\r\n                            $template_load[\'customer_id\'] = $email_info[\'customer_id\'];\r\n                        } else {\r\n                            $this->load->model(\'customer/customer\');\r\n\r\n                            $customer_info = $this->model_customer_customer->getCustomerByEmail($email);\r\n\r\n                            if ($customer_info) {\r\n                                $template_load[\'customer_id\'] = $email_info[\'customer_id\'];\r\n                            }\r\n						}\r\n\r\n						if (!empty($this->request->post[\'emailtemplate_id\'])) {\r\n                            $template_load[\'emailtemplate_id\'] = $this->request->post[\'emailtemplate_id\'];\r\n                        }\r\n\r\n                        // Disable preference checking if not newsletter\r\n                        $module_status = ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\'));\r\n                        if ($module_status && isset($this->request->post[\'to\']) && in_array($this->request->post[\'to\'], array(\'customer\', \'customer_all\'))) {\r\n                            $template_load[\'disable_newsletter_preference\'] = true;\r\n                        }\r\n\r\n						$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n                        if ($template) {\r\n                            if (isset($email_info[\'customer\'])) {\r\n                                $template->addData($email_info[\'customer\']);\r\n                                unset($email_info[\'customer\']);\r\n                            } elseif (isset($template_load[\'customer_id\'])) {\r\n                                $customer_info = $this->model_customer_customer->getCustomer($template_load[\'customer_id\']);\r\n\r\n                                if ($customer_info) {\r\n                                    $template->addData($customer_info);\r\n                                }\r\n                            }\r\n\r\n                            if (isset($email_info[\'affiliate\'])) {\r\n                                $template->addData($email_info[\'affiliate\']);\r\n                                unset($email_info[\'affiliate\']);\r\n                            } elseif (isset($email_info[\'affiliate_id\'])) {\r\n                                $affiliate_info = $this->model_sale_affiliate->getAffiliate($email_info[\'affiliate_id\']);\r\n                                $template->addData($affiliate_info);\r\n                            }\r\n\r\n                            if (!empty($this->request->post[\'subject\'][$language_id])) {\r\n                                $template->data[\'emailtemplate\'][\'subject\'] = $this->request->post[\'subject\'][$language_id];\r\n                            } else {\r\n                                $template->data[\'emailtemplate\'][\'subject\'] = $this->config->get(\'config_name\');\r\n                            }\r\n\r\n                            if (!empty($this->request->post[\'preview\'][$language_id])) {\r\n                                $template->data[\'emailtemplate\'][\'preheader_preview\'] = $this->request->post[\'preview\'][$language_id];\r\n                            }\r\n\r\n                            if (!empty($this->request->post[\'message\'][$language_id]) && is_array($this->request->post[\'message\'])) {\r\n                                $template->data[\'message\'] = $this->request->post[\'message\'][$language_id];\r\n                            } else {\r\n                                $template->data[\'message\'] = \'\';\r\n                            }\r\n\r\n                            if (is_array($email_info)) {\r\n                                $template->addData($email_info);\r\n                            } else {\r\n                                $template->addData(\'email\', $email_info);\r\n                            }\r\n						    // Prepared mail: admin.newsletter\r\n                        }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[<title>\' . $this->request->post[\'subject\'] . \'</title>]]></search>\r\n		<add position=\"replace\"><![CDATA[<title></title>]]></add>\r\n	</operation>\r\n    <operation>\r\n		<search index=\"0\"><![CDATA[$mail->setSubject(html_entity_decode($this->request->post[\'subject\'], ENT_QUOTES, \'UTF-8\'));]]></search>\r\n		<add position=\"replace\"></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[html_entity_decode($this->request->post[\'message\'],]]></search>\r\n		<add position=\"replace\"><![CDATA[html_entity_decode(($template ? $template->data[\'message\'] : \'\'),]]></add>\r\n	</operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[if ($emails) {]]></search>\r\n        <ignoreif><![CDATA[$json[\'error\'][\'email\'] = $this->language->get(\'error_email\');]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (!$emails) {\r\n                    $json[\'error\'][\'email\'] = $this->language->get(\'error_email\');\r\n                } else {]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n        <add position=\"after\" offset=\"1\"><![CDATA[					if ($json[\'next\'] && $sent_total) {\r\n						$json[\'next\'] .= \'&sent_total=\' . $sent_total;\r\n        			}\r\n\r\n        			$json[\'success\'] = sprintf($this->language->get(\'text_sent\'), $sent_total, $email_total);]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n        <add position=\"replace\"><![CDATA[// Send mail: admin.newsletter\r\n							if ($template && $template->check()) {\r\n								if ($template->data[\'message\']) {\r\n									$template->data[\'message\'] = $template->replaceContent($template->data[\'message\']);\r\n								}\r\n\r\n								$template->build();\r\n\r\n                                // Disable preference checking if not newsletter\r\n                                $module_status = ($this->config->get(\'module_emailtemplate_newsletter_status\') && $this->config->get(\'module_emailtemplate_newsletter_preference\'));\r\n                                if ($module_status && isset($this->request->post[\'to\']) && in_array($this->request->post[\'to\'], array(\'customer\', \'customer_all\'))) {\r\n                                    $template->data[\'emailtemplate\'][\'preference\'] = false;\r\n                                }\r\n\r\n								$mail->setSubject($template->data[\'emailtemplate\'][\'subject\']);\r\n\r\n								if (trim(strip_tags($template->data[\'emailtemplate\'][\'content1\'])) == \'\') {\r\n                                    $template->fetch(null, $template->data[\'message\']);\r\n								}\r\n\r\n								$template->hook($mail);\r\n\r\n								$mail->send();\r\n\r\n								$this->model_extension_module_emailtemplate->sent();\r\n\r\n								$sent_total++;\r\n							}]]></add>\r\n    </operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$this->load->view(\'marketing/contact\']]></search>\r\n		<add position=\"replace\"><![CDATA[$this->load->view(\'extension/module/emailtemplate/marketing_contact\']]></add>\r\n	</operation>\r\n</file>\r\n\r\n<file path=\"catalog/controller/account/newsletter.php\" email_template=\"admin.newsletter\">\r\n	<operation>\r\n	    <search index=\"0\"><![CDATA[class ControllerAccountNewsletter extends Controller {]]></search>\r\n	   	<ignoreif><![CDATA[public function unsubscribe(]]></ignoreif>\r\n	   	<add position=\"after\"><![CDATA[	public function unsubscribe() {\r\n        $this->response->redirect($this->url->link(\'extension/module/emailtemplate_newsletter/unsubscribe\'));\r\n 	}\r\n 	  ]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/mail/return.php\" email_template=\"admin.return_history\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n				// Prepare mail: admin.return_history\r\n				$this->load->model(\'extension/module/emailtemplate\');\r\n				$this->load->model(\'sale/order\');\r\n\r\n				$order_info = $this->model_sale_order->getOrder($return_info[\'order_id\']);\r\n\r\n                $template_load = array(\r\n                    \'key\' => \'admin.return_history\',\r\n                    \'customer_id\' => $return_info[\'customer_id\']\r\n                );\r\n\r\n                if (isset($order_info[\'store_id\'])) {\r\n                    $template_load[\'store_id\'] = $order_info[\'store_id\'];\r\n                    $template_load[\'payment_method\'] = $order_info[\'payment_code\'];\r\n                    $template_load[\'shipping_method\'] = $order_info[\'shipping_code\'];\r\n                }\r\n\r\n                if (!empty($this->request->post[\'emailtemplate_id\'])) {\r\n                    $template_load[\'emailtemplate_id\'] = $this->request->post[\'emailtemplate_id\'];\r\n                }\r\n\r\n                if (isset($order_info[\'language_id\'])) {\r\n					$language_id = $order_info[\'language_id\'];\r\n				} elseif (!empty($return_info[\'customer_id\'])) {\r\n				    $this->load->model(\'customer/customer\');\r\n\r\n		            $customer_info = $this->model_customer_customer->getCustomer($return_info[\'customer_id\']);\r\n\r\n                    $language_id = $customer_info[\'language_id\'];\r\n				} else {\r\n				    $language_id = $this->config->get(\'config_language_id\');\r\n				}\r\n\r\n				$template_load[\'language_id\'] = $language_id;\r\n\r\n				$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n                if ($template) {\r\n                    $this->load->model(\'localisation/language\');\r\n\r\n                    $language_info = $this->model_localisation_language->getLanguage($language_id);\r\n\r\n                    if ($language_info) {\r\n                        $language_code = $language_info[\'code\'];\r\n                    } else {\r\n                        $language_code = $this->config->get(\'config_language\');\r\n                    }\r\n\r\n                    $language = new Language($language_code);\r\n                    $language->load($language_code);\r\n                    $language->load(\'mail/return\');\r\n                    $language->load(\'extension/module/emailtemplate/return\');\r\n\r\n                    $template->addData($return_info);\r\n\r\n                    if ($return_info[\'product_id\']) {\r\n                        $this->load->model(\'catalog/product\');\r\n\r\n                        $product_info = $this->model_catalog_product->getProduct($return_info[\'product_id\']);\r\n\r\n                        $template->addData($product_info, \'product\');\r\n                    }\r\n\r\n                    if ($order_info) {\r\n                        $template->addData($order_info, \'order\');\r\n\r\n                        $template->data[\'order_id\'] = $order_info[\'order_id\'];\r\n\r\n                        $template->data[\'order_total\'] = $this->currency->format($order_info[\'total\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n                        $template->data[\'return_link\'] = $order_info[\'store_url\'] . \'index.php?route=account/return/info&return_id=\' . $return_id;\r\n                    } else {\r\n                        $template->data[\'return_link\'] = HTTP_CATALOG . \'index.php?route=account/return/info&return_id=\' . $return_id;\r\n                    }\r\n\r\n                    if (!empty($template->data[\'button_return_link\'])) {\r\n                        $template->data[\'return_link_text\'] = $template->data[\'button_return_link\'];\r\n                    } else {\r\n                        $template->data[\'return_link_text\'] = $template->data[\'return_link\'];\r\n                    }\r\n\r\n                    $return_reason_query = $this->db->query(\"SELECT * FROM \" . DB_PREFIX . \"return_reason WHERE return_reason_id = \'\" . (int)$return_info[\'return_reason_id\'] . \"\' AND language_id = \'\" . (int)$language_id . \"\'\");\r\n\r\n                    if ($return_reason_query->row) {\r\n                        $template->data[\'reason\'] = $return_reason_query->row[\'name\'];\r\n                    }\r\n\r\n                    $return_status_query = $this->db->query(\"SELECT * FROM \" . DB_PREFIX . \"return_status WHERE return_status_id = \'\" . (int)$return_info[\'return_status_id\'] . \"\' AND language_id = \'\" . (int)$language_id . \"\'\");\r\n\r\n                    if ($return_status_query->row) {\r\n                        $template->data[\'return_status\'] = $return_status_query->row[\'name\'];\r\n                    }\r\n\r\n                    $template->data[\'return_id\'] = $return_id;\r\n\r\n                    $template->data[\'date_added\'] = date($language->get(\'date_format_short\'), strtotime($return_info[\'date_added\']));\r\n\r\n                    $template->data[\'comment\'] = (!empty($comment)) ? (strcmp($comment, strip_tags($html_str = html_entity_decode($comment, ENT_QUOTES, \'UTF-8\'))) == 0) ? nl2br($comment) : $html_str : \'\';\r\n\r\n                    $template->data[\'opened\'] = $return_info[\'opened\'] ? $language->get(\'text_yes\') : $language->get(\'text_no\');\r\n\r\n                    $template->data[\'text_subject\'] = sprintf($language->get(\'text_subject\'), html_entity_decode($this->config->get(\'config_name\'), ENT_QUOTES, \'UTF-8\'), $return_id);\r\n				    // Prepared mail: admin.return_history\r\n                }\r\n			]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n				// Send mail: admin.return_history\r\n				if ($template && $template->check()) {\r\n				    $template->build();\r\n				    $template->hook($mail);\r\n\r\n                    $mail->send();\r\n\r\n                    $this->model_extension_module_emailtemplate->sent();\r\n                }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/return\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/return\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/return\', $data));]]></add>\r\n    </operation>\r\n    <operation error=\"skip\" info=\"Bug fix\">\r\n        <search index=\"0\"><![CDATA[$language_info = $this->model_localisation_language->getLanguage($return_info[\'language_id\']);]]></search>\r\n        <ignoreif><![CDATA[$this->load->model(\'localisation/language\');]]></ignoreif>\r\n        <add position=\"before\"><![CDATA[				$this->load->model(\'localisation/language\');\r\n        ]]></add>\r\n    </operation>\r\n</file>\r\n\r\n<file path=\"admin/controller/sale/return.php\" email_template=\"admin.return_history\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[protected function getForm() {]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n				$this->document->addScript(\'view/javascript/summernote/summernote.js\');\r\n				$this->document->addScript(\'view/javascript/summernote/opencart.js\');\r\n				$this->document->addStyle(\'view/javascript/summernote/summernote.css\');\r\n\r\n				$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n				$this->load->language(\'mail/return\');\r\n				$this->load->language(\'extension/module/emailtemplate/return\');\r\n\r\n				$data[\'entry_summary\'] = $this->language->get(\'entry_summary\');\r\n				$data[\'entry_template\'] = $this->language->get(\'entry_template\');\r\n				$data[\'text_select\'] = $this->language->get(\'text_select\');\r\n				$data[\'warning_template_content\'] = $this->language->get(\'warning_template_content\');\r\n\r\n				$templates = $this->model_extension_module_emailtemplate->getTemplates(array(\r\n					\'emailtemplate_key\' => \'admin.return_history\'\r\n				));\r\n\r\n				$data[\'template_options\'] = array();\r\n\r\n				foreach($templates as $row) {\r\n					$data[\'template_options\'][] = array(\r\n						\'value\' => $row[\'emailtemplate_id\'],\r\n						\'label\' => $row[\'emailtemplate_label\'] . (!empty($row[\'emailtemplate_default\']) ? strip_tags($this->language->get(\'text_default\')) : \'\')\r\n					);\r\n				}\r\n\r\n				$data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search><![CDATA[$data[\'order_id\'] = $return_info[\'order_id\'];]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n				$this->load->model(\'sale/order\');\r\n\r\n				$order_info = $this->model_sale_order->getOrder($return_info[\'order_id\']);\r\n\r\n				if ($order_info) {\r\n					$data[\'language_id\'] = $order_info[\'language_id\'];\r\n					$data[\'store_id\'] = $order_info[\'store_id\'];\r\n				} else {\r\n					$data[\'language_id\'] = $this->config->get(\'config_language_id\');\r\n					$data[\'store_id\'] = 0;\r\n				}]]></add>\r\n	</operation>\r\n	<operation error=\"skip\">\r\n		<search><![CDATA[$data[\'comment\'] = $this->request->post[\'comment\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$data[\'comment\'] = html_entity_decode($this->request->post[\'comment\'], ENT_QUOTES, \'UTF-8\');]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search><![CDATA[$data[\'comment\'] = $return_info[\'comment\'];]]></search>\r\n		<add position=\"replace\"><![CDATA[$data[\'comment\'] = html_entity_decode($return_info[\'comment\'], ENT_QUOTES, \'UTF-8\');]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search><![CDATA[nl2br($result[\'comment\'])]]></search>\r\n		<add position=\"replace\"><![CDATA[html_entity_decode($result[\'comment\'], ENT_QUOTES, \'UTF-8\')]]></add>\r\n	</operation>\r\n</file>\r\n\r\n<file path=\"admin/view/template/sale/return_form.twig\" email_template=\"admin.return_history\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[id=\"input-history-comment\" class=\"form-control\"]]></search>\r\n		<add position=\"replace\"><![CDATA[id=\"input-history-comment\" class=\"form-control summernote\" data-toggle=\"summernote\"]]></add>\r\n	</operation>\r\n	<operation error=\"skip\" info=\"Version conflict\">\r\n		<search index=\"0\"><![CDATA[<input type=\"checkbox\" name=\"notify\" value=\"1\" id=\"input-notify\"/>]]></search>\r\n		<add position=\"replace\"><![CDATA[<input type=\"checkbox\" name=\"notify\" value=\"1\" id=\"input-notify\" />]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[<input type=\"checkbox\" name=\"notify\" value=\"1\" id=\"input-notify\" />]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n          		  <div class=\"checkbox\"><label><input type=\"checkbox\" name=\"notify\" value=\"1\" id=\"input-notify\" data-toggle=\"collapse\" data-target=\".form-group-notify\" autocomplete=\"off\" /></label></div>\r\n                </div>\r\n              </div>\r\n\r\n              <div class=\"form-group form-group-notify collapse\">\r\n                <label class=\"col-sm-2 control-label\" for=\"input-templates\">{{ entry_template }}</label>\r\n                <div class=\"col-sm-10\">\r\n                  <select id=\"input-templates\" name=\"emailtemplate_id\" class=\"form-control\" autocomplete=\"off\">\r\n	 				<option value=\'\'>{{ text_select }}</option>\r\n	            	{% for item in template_options %}\r\n	            		<option value=\"{{ item.value }}\">{{ item.label }}</option>\r\n	            	{% endfor %}\r\n            	  </select>]]></add>\r\n	</operation>\r\n    <operation>\r\n		<search index=\"0\"><![CDATA[{{ footer }}]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n<script type=\"text/javascript\"><!--\r\n			(function($) {\r\n				$(document).ready(function() {\r\n			    	var $comment = $(\'#input-history-comment\');\r\n\r\n					$(\'select[name=emailtemplate_id]\').change(function() {\r\n						var val = $(this).val();\r\n						var $comment = $(\'#input-history-comment\');\r\n\r\n						if (!val || ($comment.val() != \'\' && $comment.val() != \'<p><br /></p>\' && !confirm(\"{{ warning_template_content }}\"))) return;\r\n\r\n						$.ajax({\r\n							url: \'index.php?route=extension/module/emailtemplate/fetch_template&output=comment&user_token={{ user_token }}\',\r\n							type: \'get\',\r\n							data: \'id=\' + val + \'&store_id={{ store_id }}\' + \'&language_id={{ language_id }}\' + \'&order_id={{ order_id }}\' + \'&return_id={{ return_id }}\',\r\n							dataType: \'html\',\r\n							success: function(html) {\r\n								if (typeof CKEDITOR !== \"undefined\" && CKEDITOR.instances[\"input-history-comment\"]) {\r\n								  CKEDITOR.instances[\"input-history-comment\"].setData(html);\r\n								} else if ($.fn.summernote) {\r\n                                    $comment.summernote(\'code\', html);\r\n                                } else {\r\n									$comment.val(html);\r\n								}\r\n							},\r\n							error: function(xhr, ajaxOptions, thrownError) {\r\n								console.log(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);\r\n							}\r\n						});\r\n					});\r\n\r\n				});\r\n			})(jQuery);\r\n		//--></script>\r\n		]]></add>\r\n	</operation>\r\n    <operation>\r\n		<search index=\"0\"><![CDATA[$(\'#button-history\').on(\'click\', function(e) {]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n	if (typeof CKEDITOR !== \"undefined\" && CKEDITOR.instances[\"input-history-comment\"]) {\r\n	  CKEDITOR.instances[\"input-history-comment\"].updateElement();\r\n	}\r\n\r\n	if ($(\"#input-history-comment\").val() == \'<br />\' || $(\"#input-history-comment\").val() == \'<p><br></p>\') {\r\n		$(\"#input-history-comment\").val(\'\');\r\n	}\r\n]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[\'&comment=\' + encodeURIComponent($(\'#tab-history textarea[name=\\\'comment\\\']\').val())]]></search>\r\n		<add position=\"replace\"><![CDATA[\'&comment=\' + encodeURIComponent($(\'#input-history-comment\').val()) + \'&show_summary=0\' + \'&emailtemplate_id=\' + encodeURIComponent($(\'select[name=\\\'emailtemplate_id\\\']\').val())]]></add>\r\n	</operation>\r\n    <operation>\r\n		<search index=\"0\"><![CDATA[$(\'#tab-history textarea[name=\\\'comment\\\']\').val(\'\');]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n	  if (typeof CKEDITOR !== \"undefined\" && CKEDITOR.instances[\"input-history-comment\"]) {\r\n		CKEDITOR.instances[\"input-history-comment\"].setData(\'\');\r\n	  } else if ($.fn.summernote) {\r\n        $(\'#input-history-comment\').summernote(\'reset\');\r\n      }\r\n\r\n	  $(\'#input-templates\').each(function(){ this.selectedIndex = this.defaultSelected });]]></add>\r\n	</operation>\r\n</file>\r\n\r\n<file path=\"catalog/controller/account/return.php\" email_template=\"admin.return_history\">\r\n	<operation>\r\n		<search><![CDATA[nl2br($result[\'comment\'])]]></search>\r\n		<add position=\"replace\"><![CDATA[html_entity_decode($result[\'comment\'], ENT_QUOTES, \'UTF-8\')]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"admin/controller/sale/voucher.php\" email_template=\"admin.voucher\">\r\n	<operation>\r\n	    <search index=\"0,1\"><![CDATA[$mail->setHtml($this->load->view(\'mail/voucher\', $data));]]></search>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/voucher\', $data));]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n	    <add position=\"before\"><![CDATA[							// Prepare mail: admin.voucher\r\n	    					$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n							$template_load = array(\r\n							    \'key\' => \'admin.voucher\',\r\n							    \'customer_id\' => $order_info[\'customer_id\'],\r\n							    \'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n							    \'language_id\' => $order_info[\'language_id\'],\r\n							    \'store_id\' => $order_info[\'store_id\'],\r\n                                \'payment_method\' => $order_info[\'payment_code\'],\r\n                                \'shipping_method\' => $order_info[\'shipping_code\']\r\n                            );\r\n\r\n							$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n                            if ($template) {\r\n                                $template->addData($order_info);\r\n\r\n                                if (!empty($data)) $template->addData($data);\r\n\r\n                                $template->data[\'store_id\'] = $order_info[\'store_id\'];\r\n\r\n                                $template->data[\'language_id\'] = $order_info[\'language_id\'];\r\n\r\n                                $template->addData($voucher_info);\r\n\r\n                                $template->addData($voucher_theme_info);\r\n\r\n                                if ($voucher_theme_info[\'image\'] && file_exists(DIR_IMAGE . $voucher_theme_info[\'image\'])) {\r\n                                    $template->data[\'image\'] = $template->data[\'store_url\'] . \'image/\' . $voucher_theme_info[\'image\'];\r\n\r\n                                    list($template->data[\'image_width\'], $template->data[\'image_height\']) = getimagesize(DIR_IMAGE . $voucher_theme_info[\'image\']);\r\n                                }\r\n\r\n                                $template->data[\'amount\'] = $this->currency->format($voucher_info[\'amount\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n                                $template->data[\'text_heading\'] = sprintf($template->data[\'text_heading\'], $template->data[\'store_name\']);\r\n\r\n                                $template->data[\'voucher_url\'] = $template->data[\'store_url\'];\r\n\r\n                                if (!empty($template->data[\'button_voucher_url\'])) {\r\n                                    $template->data[\'voucher_url_text\'] = $template->data[\'button_voucher_url\'];\r\n                                } else {\r\n                                    $template->data[\'voucher_url_text\'] = $template->data[\'voucher_url\'];\r\n                                }\r\n							}]]></add>\r\n	</operation>\r\n	<operation>\r\n	    <search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n	    <add position=\"replace\"><![CDATA[// Send mail: admin.voucher\r\n	    					if ($template && $template->check()) {\r\n	    					    $template->build();\r\n							    $template->hook($mail);\r\n                            }\r\n\r\n							$mail->send();\r\n\r\n							$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n	<operation>\r\n	    <search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n	    <add position=\"before\"><![CDATA[	    					$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n							$template_load = array(\'key\' => \'admin.voucher\');\r\n\r\n							$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n							if ($template) {\r\n                                if (!empty($data)) $template->addData($data);\r\n\r\n                                $template->addData($voucher_info);\r\n\r\n                                $template->addData($voucher_theme_info);\r\n\r\n                                if ($voucher_theme_info[\'image\'] && file_exists(DIR_IMAGE . $voucher_theme_info[\'image\'])) {\r\n                                    $template->data[\'image\'] = $template->data[\'store_url\'] . \'image/\' . $voucher_theme_info[\'image\'];\r\n\r\n                                    list($template->data[\'image_width\'], $template->data[\'image_height\']) = getimagesize(DIR_IMAGE . $voucher_theme_info[\'image\']);\r\n                                }\r\n\r\n                                $template->data[\'amount\'] = $this->currency->format($voucher_info[\'amount\'], $this->config->get(\'config_currency\'), $this->currency->getValue($this->config->get(\'config_currency\')));\r\n\r\n                                $template->data[\'text_heading\'] = sprintf($template->data[\'text_heading\'], $template->data[\'store_name\']);\r\n\r\n                                $template->data[\'voucher_url\'] = $template->data[\'store_url\'];\r\n\r\n                                if (!empty($template->data[\'button_voucher_url\'])) {\r\n                                    $template->data[\'voucher_url_text\'] = $template->data[\'button_voucher_url\'];\r\n                                } else {\r\n                                    $template->data[\'voucher_url_text\'] = $template->data[\'voucher_url\'];\r\n                                }\r\n							    // Prepared mail: admin.voucher\r\n							}\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n	    <search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n	    <add position=\"replace\"><![CDATA[if ($template) {\r\n	                            $template->build();\r\n							    $template->hook($mail);\r\n\r\n                                $mail->send();\r\n\r\n                                $this->model_extension_module_emailtemplate->sent();\r\n				            }]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/affiliate.php\" email_template=\"affiliate.register\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n		// Prepare mail: affiliate.register\r\n		$this->load->model(\'account/customer\');\r\n\r\n		if ($this->customer && $this->customer->isLogged()) {\r\n			$customer_id = $this->customer->getId();\r\n		} else {\r\n			$customer_id = $args[0];\r\n		}\r\n\r\n		$customer_info = $this->model_account_customer->getCustomer($customer_id);\r\n\r\n		if (!$customer_info) {\r\n			trigger_error(\'Unable to find customer: \' . $args[0][\'customer_id\']);\r\n			return false;\r\n		}\r\n\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$template_load = array(\r\n		    \'key\' => \'affiliate.register\',\r\n		    \'customer_id\' => $customer_info[\'customer_id\'],\r\n		    \'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n		    \'language_id\' => $customer_info[\'language_id\'],\r\n		    \'store_id\' => $customer_info[\'store_id\']\r\n        );\r\n\r\n		$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n        if ($template) {\r\n            if (!empty($data)) $template->addData($data);\r\n\r\n            $template->addData($args[1], \'affiliate\');\r\n\r\n            $template->addData($customer_info, \'customer\');\r\n\r\n            $template->data[\'affiliate_login\'] = $this->url->link(\'affiliate/login\');\r\n\r\n            if (!empty($template->data[\'button_affiliate_login\'])) {\r\n                $template->data[\'affiliate_login_text\'] = $template->data[\'button_affiliate_login\'];\r\n            } else {\r\n                $template->data[\'affiliate_login_text\'] = $template->data[\'affiliate_login\'];\r\n            }\r\n\r\n            if (!empty($args[0][\'custom_field\'])) {\r\n                $this->load->model(\'account/custom_field\');\r\n\r\n                $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                foreach ($custom_fields as $custom_field) {\r\n                        if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                            $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                            $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                            $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                            $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                    if (is_array($custom_field_value)) {\r\n                                        if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                            $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                            }\r\n                        }\r\n                    }\r\n            }\r\n\r\n            $template->data[\'customer_group\'] = $customer_group_info[\'name\'];\r\n\r\n            if ($customer_group_info && ($this->config->get(\'config_affiliate_approval\') || $customer_group_info[\'approval\'])) {\r\n                $template->data[\'affiliate_text\'] = $this->language->get(\'text_approval\');\r\n            } else {\r\n                $template->data[\'affiliate_text\'] = $this->language->get(\'text_login\');\r\n            }\r\n            // Prepared mail: affiliate.register\r\n        }\r\n]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: affiliate.register\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n		    $template->hook($mail);\r\n        }\r\n\r\n		$mail->send();\r\n\r\n		$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$mail->setHtml($this->load->view(\'mail/affiliate\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/affiliate.php\" email_template=\"affiliate.register\">\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n		// Prepare mail: affiliate.register_admin\r\n		$affiliate_info = $args[1];\r\n\r\n		if ($this->customer && $this->customer->isLogged()) {\r\n			$customer_id = $this->customer->getId();\r\n		} else {\r\n			$customer_id = $args[0];\r\n		}\r\n\r\n		$customer_info = $this->model_account_customer->getCustomer($customer_id);\r\n\r\n		if (!$customer_info) {\r\n			trigger_error(\'Unable to find customer: \' . $args[0][\'customer_id\']);\r\n			return false;\r\n		}\r\n\r\n		// Load template\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$template_load = array(\r\n		    \'key\' => \'affiliate.register_admin\',\r\n		    \'customer_id\' => $customer_info[\'customer_id\'],\r\n		    \'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n		    \'language_id\' => $customer_info[\'language_id\'],\r\n		    \'store_id\' => $customer_info[\'store_id\']\r\n        );\r\n\r\n		$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n        if ($template) {\r\n            // Add data to: affiliate.register_admin\r\n            $template->addData($args[1], \'affiliate\');\r\n\r\n            $template->addData($customer_info, \'customer\');\r\n\r\n            if (!empty($data)) $template->addData($data);\r\n\r\n            $template->data[\'affiliate_login\'] = $this->url->link(\'affiliate/login\');\r\n\r\n            if (!empty($template->data[\'button_affiliate_login\'])) {\r\n                $template->data[\'affiliate_login_text\'] = $template->data[\'button_affiliate_login\'];\r\n            } else {\r\n                $template->data[\'affiliate_login_text\'] = $template->data[\'affiliate_login\'];\r\n            }\r\n\r\n            if (!empty($args[0][\'custom_field\'])) {\r\n                $this->load->model(\'account/custom_field\');\r\n\r\n                $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                foreach ($custom_fields as $custom_field) {\r\n                    if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                        $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                        $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                        $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                        $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                if (is_array($custom_field_value)) {\r\n                                    if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                        $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                        $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n            $template->data[\'customer_group\'] = $customer_group_info[\'name\'];\r\n\r\n            if (defined(\'HTTP_ADMIN\')) {\r\n                $admin_url = HTTP_ADMIN;\r\n            } elseif ($this->config->get(\'config_ssl\')) {\r\n                $admin_url = $this->config->get(\'config_ssl\') . \'admin/\';\r\n            } else {\r\n                $admin_url = $this->config->get(\'config_url\') . \'admin/\';\r\n            }\r\n\r\n            if ($customer_group_info && ($this->config->get(\'config_affiliate_approval\') || $customer_group_info[\'approval\'])) {\r\n                $template->data[\'subject\'] = $template->data[\'text_approve_subject_admin\'];\r\n\r\n                $template->data[\'affiliate_link\'] = $admin_url . \'index.php?route=customer/customer_approval&filter_type=affiliate&filter_email=\' . $customer_info[\'email\'];\r\n\r\n                $template->data[\'status\'] = $template->data[\'text_admin_approve\'];\r\n            } else {\r\n                $template->data[\'subject\'] = $template->data[\'text_subject_admin\'];\r\n\r\n                $template->data[\'affiliate_link\'] = $admin_url . \'index.php?route=customer/customer/edit&customer_id=\' . $affiliate_info[\'customer_id\'];\r\n\r\n                $template->data[\'status\'] = $template->data[$affiliate_info[\'status\'] ? \'text_enabled\' : \'text_disabled\'];\r\n            }\r\n\r\n            if (isset($template->data[\'button_affiliate_link\']) && $template->data[\'button_affiliate_link\'] != \'button_affiliate_link\') {\r\n                $template->data[\'affiliate_link_text\'] =  $template->data[\'button_affiliate_link\'];\r\n            } else {\r\n                $template->data[\'affiliate_link_text\'] =  $template->data[\'affiliate_link\'];\r\n            }\r\n		    // Prepared mail: affiliate.register_admin\r\n		}\r\n]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: affiliate.register_admin\r\n			if ($template && $template->check()) {\r\n			    $template->build();\r\n			    $template->hook($mail);\r\n            }\r\n\r\n			$mail->send();\r\n\r\n			$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$mail->setHtml($this->load->view(\'mail/affiliate_alert\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_alert\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/affiliate_alert\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/forgotten.php\" email_template=\"customer.forgotten\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[			// Prepare mail: customer.forgotten\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$this->load->model(\'account/customer\');\r\n\r\n			$customer_info = $this->model_account_customer->getCustomerByEmail($args[0]);\r\n\r\n			$template_load = array(\'key\' => \'customer.forgotten\');\r\n\r\n			if ($customer_info) {\r\n				$template_load[\'customer_id\'] = $customer_info[\'customer_id\'];\r\n				$template_load[\'customer_group_id\'] = $customer_info[\'customer_group_id\'];\r\n				$template_load[\'language_id\'] = $customer_info[\'language_id\'];\r\n			}\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                if (!empty($data)) {\r\n                    $template->addData($data);\r\n                }\r\n\r\n                if (isset($this->request->post[\'email\'])) {\r\n                    $template->addData($this->request->post[\'email\']);\r\n                }\r\n\r\n                if ($customer_info) {\r\n                    $template->addData($customer_info, \'customer\');\r\n                }\r\n\r\n                if (!empty($template->data[\'text_greeting\'])) {\r\n                    $template->data[\'text_greeting\'] = sprintf($template->data[\'text_greeting\'], $template->data[\'store_name\']);\r\n                }\r\n\r\n                if (isset($template->data[\'text_ip\'])) {\r\n                    $template->data[\'text_ip\'] = sprintf($template->data[\'text_ip\'], $this->request->server[\'REMOTE_ADDR\']);\r\n                }\r\n\r\n                $template->data[\'password_link\'] = $this->url->link(\'account/reset\', \'email=\' . urlencode($args[0]) . \'&code=\' . $args[1]);\r\n\r\n                if (!empty($template->data[\'button_password_link\'])) {\r\n                    $template->data[\'password_link_text\'] = $template->data[\'button_password_link\'];\r\n                } else {\r\n                    $template->data[\'password_link_text\'] = $template->data[\'password_link\'];\r\n                }\r\n\r\n                $template->data[\'account_login\'] = $this->url->link(\'account/login\');\r\n\r\n                if (!empty($template->data[\'button_account_login\'])) {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'button_account_login\'];\r\n                } else {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'account_login\'];\r\n                }\r\n			    // Prepared mail: customer.forgotten\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: customer.forgotten\r\n			if ($template && $template->check()) {\r\n			    $template->build();\r\n			    $template->hook($mail);\r\n\r\n                $mail->send();\r\n\r\n                $this->model_extension_module_emailtemplate->sent();\r\n            }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$mail->setHtml($this->load->view(\'mail/forgotten\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/forgotten\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/forgotten\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/register.php\" email_template=\"customer.register\">\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[public function index(]]></search>\r\n        <ignoreif><![CDATA[if ($this->request->get[\'route\'] == \'affiliate/register\') {]]></ignoreif>\r\n        <add position=\"after\"><![CDATA[        if ($this->request->get[\'route\'] == \'affiliate/register\') {\r\n            return null;\r\n        }\r\n        ]]></add>\r\n    </operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: customer.register\r\n			$this->load->model(\'account/customer\');\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$this->load->language(\'extension/module/emailtemplate/customer\');\r\n\r\n			if (!empty($args[0][\'customer_id\'])) {\r\n				$customer_info = $this->model_account_customer->getCustomer($args[0][\'customer_id\']);\r\n			} else {\r\n				$customer_info = $this->model_account_customer->getCustomerByEmail($args[0][\'email\']);\r\n			}\r\n\r\n			if (empty($customer_info)) {\r\n                trigger_error(\'Unable to find customer by email: \' . $args[0][\'email\']);\r\n                return false;\r\n            }\r\n\r\n			$template_load = array(\r\n			    \'key\' => \'customer.register\',\r\n			    \'customer_id\' => $customer_info[\'customer_id\'],\r\n			    \'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n			    \'language_id\' => $customer_info[\'language_id\'],\r\n			    \'store_id\' => $customer_info[\'store_id\']\r\n            );\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->addData($args[0]);\r\n\r\n                $template->addData($customer_info, \'customer\');\r\n\r\n                $template->data[\'newsletter\'] = $this->language->get((isset($args[0][\'newsletter\']) && $args[0][\'newsletter\'] == 1) ? \'text_yes\' : \'text_no\');\r\n\r\n                $template->data[\'account_login\'] = $this->url->link(\'account/login\');\r\n\r\n                if (!empty($template->data[\'button_account_login\'])) {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'button_account_login\'];\r\n                } else {\r\n                    $template->data[\'account_login_text\'] = $template->data[\'account_login\'];\r\n                }\r\n\r\n                if (!empty($args[0][\'custom_field\'])) {\r\n                    $this->load->model(\'account/custom_field\');\r\n\r\n                    $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                    foreach ($custom_fields as $custom_field) {\r\n                        if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                            $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                            $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                            $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                            $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                    if (is_array($custom_field_value)) {\r\n                                        if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                            $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n                $template->data[\'customer_group\'] = $customer_group_info[\'name\'];\r\n\r\n                if ($customer_group_info[\'approval\']) {\r\n                    $template->data[\'customer_text\'] = $this->language->get(\'text_approval\');\r\n                } else {\r\n                    $template->data[\'customer_text\'] = $this->language->get(\'text_login\');\r\n                }\r\n\r\n                if (!empty($customer_info[\'address_id\'])) {\r\n                    $this->load->model(\'account/address\');\r\n\r\n                    $address = $this->model_account_address->getAddress($customer_info[\'address_id\']);\r\n\r\n                    if ($address) {\r\n                        $country = \'\';\r\n                        $iso_code_2 = \'\';\r\n                        $iso_code_3 = \'\';\r\n                        $address_format = \'\';\r\n                        $zone = \'\';\r\n                        $zone_code = \'\';\r\n\r\n                        if (!empty($address[\'country_id\'])) {\r\n                            $this->load->model(\'localisation/country\');\r\n\r\n                            $country_info = $this->model_localisation_country->getCountry($address[\'country_id\']);\r\n\r\n                            if ($country_info) {\r\n                                $country = $country_info[\'name\'];\r\n                                $iso_code_2 = $country_info[\'iso_code_2\'];\r\n                                $iso_code_3 = $country_info[\'iso_code_3\'];\r\n                                $address_format = $country_info[\'address_format\'];\r\n                            }\r\n                        }\r\n\r\n                        if (!empty($address[\'zone_id\'])) {\r\n                            $this->load->model(\'localisation/zone\');\r\n\r\n                            $zone_info = $this->model_localisation_zone->getZone($address[\'zone_id\']);\r\n\r\n                            if ($zone_info) {\r\n                                $zone = $zone_info[\'name\'];\r\n                                $zone_code = $zone_info[\'code\'];\r\n                            }\r\n                        }\r\n\r\n                        $address_data = array(\r\n                            \'address_id\'     => $customer_info[\'address_id\'],\r\n                            \'firstname\'      => $address[\'firstname\'],\r\n                            \'lastname\'       => $address[\'lastname\'],\r\n                            \'company\'        => $address[\'company\'],\r\n                            \'address_1\'      => $address[\'address_1\'],\r\n                            \'address_2\'      => $address[\'address_2\'],\r\n                            \'postcode\'       => $address[\'postcode\'],\r\n                            \'city\'           => $address[\'city\'],\r\n                            \'zone_id\'        => $address[\'zone_id\'],\r\n                            \'zone\'           => $zone,\r\n                            \'zone_code\'      => $zone_code,\r\n                            \'country_id\'     => $address[\'country_id\'],\r\n                            \'country\'        => $country,\r\n                            \'iso_code_2\'     => $iso_code_2,\r\n                            \'iso_code_3\'     => $iso_code_3\r\n                        );\r\n\r\n                        $find = array();\r\n                        $replace = array();\r\n\r\n                        foreach(array_keys($address_data) as $key) {\r\n                            $find[$key] = \'{\'.$key.\'}\';\r\n                            $replace[$key] =  $address_data[$key];\r\n                        }\r\n\r\n                        if (isset($address[\'custom_field\']) && is_array($address[\'custom_field\'])) {\r\n                            foreach ($address[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                                $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                                $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                            }\r\n                        }\r\n\r\n                        if (!$address_format) {\r\n                            $address_format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                        }\r\n\r\n                        $template->data[\'address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $address_format))));\r\n                        $template->data[\'address_zone\'] = $zone;\r\n                        $template->data[\'address_country\'] = $country;\r\n                    }\r\n                }\r\n			    // Prepared mail: customer.register\r\n			}\r\n	]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: customer.register\r\n			if ($template && $template->check()) {\r\n			    $template->build();\r\n			    $template->hook($mail);\r\n\r\n                $mail->send();\r\n\r\n                $this->model_extension_module_emailtemplate->sent();\r\n            }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/register\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/register\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/register\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/register.php\" email_template=\"customer.register_admin\">\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[public function index(]]></search>\r\n        <ignoreif><![CDATA[if ($this->request->get[\'route\'] == \'affiliate/register\') {]]></ignoreif>\r\n        <add position=\"after\"><![CDATA[        if ($this->request->get[\'route\'] == \'affiliate/register\') {\r\n            return null;\r\n        }\r\n        ]]></add>\r\n    </operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[		// Prepare mail: customer.register_admin\r\n		$this->load->model(\'account/customer\');\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$this->load->language(\'extension/module/emailtemplate/customer\');\r\n\r\n		if (!empty($args[0][\'customer_id\'])) {\r\n			$customer_info = $this->model_account_customer->getCustomer($args[0][\'customer_id\']);\r\n		} else {\r\n			$customer_info = $this->model_account_customer->getCustomerByEmail($args[0][\'email\']);\r\n		}\r\n\r\n		if (empty($customer_info)) {\r\n            trigger_error(\'Unable to find customer by email: \' . $args[0][\'email\']);\r\n            return false;\r\n        }\r\n\r\n		$template_load = array(\r\n		    \'key\' => \'customer.register_admin\',\r\n            \'customer_id\' => $customer_info[\'customer_id\'],\r\n            \'customer_group_id\' => $customer_info[\'customer_group_id\'],\r\n            \'language_id\' => $customer_info[\'language_id\'],\r\n            \'store_id\' => $customer_info[\'store_id\']\r\n        );\r\n\r\n		$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n        if ($template) {\r\n            $template->addData($args[0]);\r\n\r\n            $template->addData($customer_info, \'customer\');\r\n\r\n            $template->data[\'newsletter\'] = $this->language->get((isset($args[0][\'newsletter\']) && $args[0][\'newsletter\'] == 1) ? \'text_yes\' : \'text_no\');\r\n\r\n            if (!empty($args[0][\'custom_field\'])) {\r\n                $this->load->model(\'account/custom_field\');\r\n\r\n                $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                foreach ($custom_fields as $custom_field) {\r\n                    if (isset($args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']])) {\r\n                        $custom_field_key = \'custom_field_\' . ($custom_field[\'location\'] != \'account\' ? $custom_field[\'location\'] . \'_\' : \'\') . $custom_field[\'custom_field_id\'];\r\n                        $custom_field_value = $args[0][\'custom_field\'][$custom_field[\'location\']][$custom_field[\'custom_field_id\']];\r\n\r\n                        $template->data[$custom_field_key . \'_name\'] = $custom_field[\'name\'];\r\n                        $template->data[$custom_field_key . \'_value\'] = \'\';\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value_info) {\r\n                                if (is_array($custom_field_value)) {\r\n                                    if (in_array($custom_field_value_info[\'custom_field_value_id\'], $custom_field_value)) {\r\n                                        $template->data[$custom_field_key . \'_value_\' . $custom_field_value_info[\'custom_field_value_id\']] = $custom_field_value_info[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value_info[\'custom_field_value_id\'] == $custom_field_value) {\r\n                                        $template->data[$custom_field_key . \'_value\'] = $custom_field_value_info[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[$custom_field_key . \'_value\'] = $custom_field_value;\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n            if (!empty($args[0][\'address_1\'])) {\r\n                $country = \'\';\r\n                $iso_code_2 = \'\';\r\n                $iso_code_3 = \'\';\r\n                $address_format = \'\';\r\n                $zone = \'\';\r\n                $zone_code = \'\';\r\n\r\n                if (!empty($args[0][\'country_id\'])) {\r\n                    $this->load->model(\'localisation/country\');\r\n\r\n                    $country_info = $this->model_localisation_country->getCountry($args[0][\'country_id\']);\r\n\r\n                    if ($country_info) {\r\n                        $country = $country_info[\'name\'];\r\n                        $iso_code_2 = $country_info[\'iso_code_2\'];\r\n                        $iso_code_3 = $country_info[\'iso_code_3\'];\r\n                        $address_format = $country_info[\'address_format\'];\r\n                    }\r\n                }\r\n\r\n                if (!empty($args[0][\'zone_id\'])) {\r\n                    $this->load->model(\'localisation/zone\');\r\n\r\n                    $zone_info = $this->model_localisation_zone->getZone($args[0][\'zone_id\']);\r\n\r\n                    if ($zone_info) {\r\n                        $zone = $zone_info[\'name\'];\r\n                        $zone_code = $zone_info[\'code\'];\r\n                    }\r\n                }\r\n\r\n                $address_data = array(\r\n                    \'firstname\'      => $args[0][\'firstname\'],\r\n                    \'lastname\'       => $args[0][\'lastname\'],\r\n                    \'company\'        => $args[0][\'company\'],\r\n                    \'address_1\'      => $args[0][\'address_1\'],\r\n                    \'address_2\'      => $args[0][\'address_2\'],\r\n                    \'postcode\'       => $args[0][\'postcode\'],\r\n                    \'city\'           => $args[0][\'city\'],\r\n                    \'zone_id\'        => $args[0][\'zone_id\'],\r\n                    \'zone\'           => $zone,\r\n                    \'zone_code\'      => $zone_code,\r\n                    \'country_id\'     => $args[0][\'country_id\'],\r\n                    \'country\'        => $country,\r\n                    \'iso_code_2\'     => $iso_code_2,\r\n                    \'iso_code_3\'     => $iso_code_3\r\n                );\r\n\r\n                $find = array();\r\n                $replace = array();\r\n\r\n                foreach(array_keys($address_data) as $key) {\r\n                    $find[$key] = \'{\'.$key.\'}\';\r\n                    $replace[$key] =  $address_data[$key];\r\n                }\r\n\r\n                if (isset($address[\'custom_field\']) && is_array($address[\'custom_field\'])) {\r\n                    foreach ($address[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                        $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                        $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                    }\r\n                }\r\n\r\n                if (!$address_format) {\r\n                    $address_format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                }\r\n\r\n                $template->data[\'address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $address_format))));\r\n                $template->data[\'address_zone\'] = $zone;\r\n                $template->data[\'address_country\'] = $country;\r\n            }\r\n\r\n            if (!empty($customer_info[\'address_id\'])) {\r\n                $this->load->model(\'account/address\');\r\n\r\n                $address = $this->model_account_address->getAddress($customer_info[\'address_id\']);\r\n\r\n                if ($address) {\r\n                    $country = \'\';\r\n                    $iso_code_2 = \'\';\r\n                    $iso_code_3 = \'\';\r\n                    $address_format = \'\';\r\n                    $zone = \'\';\r\n                    $zone_code = \'\';\r\n\r\n                    if (!empty($address[\'country_id\'])) {\r\n                        $this->load->model(\'localisation/country\');\r\n\r\n                        $country_info = $this->model_localisation_country->getCountry($address[\'country_id\']);\r\n\r\n                        if ($country_info) {\r\n                            $country = $country_info[\'name\'];\r\n                            $iso_code_2 = $country_info[\'iso_code_2\'];\r\n                            $iso_code_3 = $country_info[\'iso_code_3\'];\r\n                            $address_format = $country_info[\'address_format\'];\r\n                        }\r\n                    }\r\n\r\n                    if (!empty($address[\'zone_id\'])) {\r\n                        $this->load->model(\'localisation/zone\');\r\n\r\n                        $zone_info = $this->model_localisation_zone->getZone($address[\'zone_id\']);\r\n\r\n                        if ($zone_info) {\r\n                            $zone = $zone_info[\'name\'];\r\n                            $zone_code = $zone_info[\'code\'];\r\n                        }\r\n                    }\r\n\r\n                    $address_data = array(\r\n                        \'address_id\'     => $customer_info[\'address_id\'],\r\n                        \'firstname\'      => $address[\'firstname\'],\r\n                        \'lastname\'       => $address[\'lastname\'],\r\n                        \'company\'        => $address[\'company\'],\r\n                        \'address_1\'      => $address[\'address_1\'],\r\n                        \'address_2\'      => $address[\'address_2\'],\r\n                        \'postcode\'       => $address[\'postcode\'],\r\n                        \'city\'           => $address[\'city\'],\r\n                        \'zone_id\'        => $address[\'zone_id\'],\r\n                        \'zone\'           => $zone,\r\n                        \'zone_code\'      => $zone_code,\r\n                        \'country_id\'     => $address[\'country_id\'],\r\n                        \'country\'        => $country,\r\n                        \'iso_code_2\'     => $iso_code_2,\r\n                        \'iso_code_3\'     => $iso_code_3\r\n                    );\r\n\r\n                    $find = array();\r\n                    $replace = array();\r\n\r\n                    foreach(array_keys($address_data) as $key) {\r\n                        $find[$key] = \'{\'.$key.\'}\';\r\n                        $replace[$key] =  $address_data[$key];\r\n                    }\r\n\r\n                    if (isset($address[\'custom_field\']) && is_array($address[\'custom_field\'])) {\r\n                        foreach ($address[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                            $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                            $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                        }\r\n                    }\r\n\r\n                    if (!$address_format) {\r\n                        $address_format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                    }\r\n\r\n                    $template->data[\'address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $address_format))));\r\n                    $template->data[\'address_zone\'] = $zone;\r\n                    $template->data[\'address_country\'] = $country;\r\n                }\r\n            }\r\n\r\n            $template->data[\'customer_group\'] = $customer_group_info[\'name\'];\r\n\r\n            if (defined(\'HTTP_ADMIN\')) {\r\n                $admin_url = HTTP_ADMIN;\r\n            } elseif ($this->config->get(\'config_ssl\')) {\r\n                $admin_url = $this->config->get(\'config_ssl\') . \'admin/\';\r\n            } else {\r\n                $admin_url = $this->config->get(\'config_url\') . \'admin/\';\r\n            }\r\n\r\n            if ($customer_group_info[\'approval\']) {\r\n                $template->data[\'customer_link\'] = $admin_url . \'index.php?route=customer/customer_approval&filter_email=\' . $customer_info[\'email\'];\r\n\r\n                $template->data[\'text_register_subject_admin\'] = $template->data[\'text_register_approve_subject_admin\'];\r\n\r\n                $template->data[\'text_admin_heading\'] = $template->data[\'text_customer_approve\'];\r\n\r\n                $template->data[\'status\'] = $this->language->get(\'text_admin_approve\');\r\n            } else {\r\n                $template->data[\'customer_link\'] = $admin_url . \'index.php?route=customer/customer/edit&customer_id=\' . $customer_info[\'customer_id\'];\r\n\r\n                $template->data[\'text_register_subject_admin\'] = $template->data[\'text_register_subject_admin\'];\r\n\r\n                $template->data[\'text_admin_heading\'] = $template->data[\'text_new_customer\'];\r\n\r\n                $template->data[\'status\'] = $this->language->get($customer_info[\'status\'] ? \'text_enabled\' : \'text_disabled\');\r\n            }\r\n\r\n            $template->data[\'text_customer_link\'] = $template->data[\'text_customer_link\'];\r\n\r\n            if (isset($template->data[\'button_customer_link\']) && $template->data[\'button_customer_link\'] != \'button_customer_link\') {\r\n                $template->data[\'customer_link_text\'] =  $template->data[\'button_customer_link\'];\r\n            } else {\r\n                $template->data[\'customer_link_text\'] =  $template->data[\'customer_link\'];\r\n            }\r\n		    // Prepared mail: customer.register_admin\r\n		}\r\n	]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: customer.register_admin\r\n			if ($template && $template->check()) {\r\n			    $template->build();\r\n			    $template->fetch();\r\n			    $template->hook($mail);\r\n            }\r\n\r\n			$mail->send();\r\n\r\n			$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/register_alert\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/register_alert\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/register_alert\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/information/contact.php\" email_template=\"information.contact\">\r\n  <operation>\r\n    <search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n    <add position=\"before\"><![CDATA[			// Prepare mail: information.contact\r\n          $this->load->model(\'extension/module/emailtemplate\');\r\n\r\n          $template_load = array(\r\n            \'key\' => \'information.contact\',\r\n            \'email\' => $this->request->post[\'email\']\r\n          );\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n				//$template->addData($this->request->post);\r\n\r\n				$template->data[\'name\'] = html_entity_decode($this->request->post[\'name\'], ENT_QUOTES, \'UTF-8\');\r\n\r\n				$template->data[\'email\'] = $this->request->post[\'email\'];\r\n\r\n				if (!empty($this->request->post[\'enquiry\'])) {\r\n				  $template->data[\'enquiry\'] = html_entity_decode(str_replace(\"\\n\", \"<br />\", $this->request->post[\'enquiry\']), ENT_QUOTES, \'UTF-8\');\r\n				}\r\n\r\n				if (isset($template->data[\'text_ip\'])) {\r\n                    $template->data[\'text_ip\'] = sprintf($template->data[\'text_ip\'], $this->request->server[\'REMOTE_ADDR\']);\r\n                }\r\n\r\n				if (!empty($customer_info)) {\r\n				  $template->data[\'customer\'] = $customer_info;\r\n				}\r\n\r\n				if (defined(\'HTTP_ADMIN\')) {\r\n					$admin_url = HTTP_ADMIN;\r\n				} else {\r\n					$admin_url = HTTPS_SERVER . \'admin/\';\r\n				}\r\n\r\n				if (!empty($customer_info[\'customer_id\'])) {\r\n				  $template->data[\'admin_customer_url\'] = $admin_url . \'index.php?route=customer/customer/edit&customer_id=\' . $customer_info[\'customer_id\'];\r\n				}\r\n                // Prepared mail: information.contact\r\n    ]]></add>\r\n  </operation>\r\n  <operation>\r\n    <search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n    <add position=\"replace\"><![CDATA[// Send mail: information.contact\r\n			    if ($template && $template->check()) {\r\n			      $mail->setReplyTo($template->data[\'email\'], $template->data[\'name\']);\r\n\r\n			      $template->build();\r\n			      $template->hook($mail);\r\n\r\n                  $mail->send();\r\n\r\n                  $this->model_extension_module_emailtemplate->sent();\r\n                }\r\n            }]]></add>\r\n  </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/information/contact.php\" email_template=\"information.contact_customer\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$this->response->redirect($this->url->link(\'information/contact/success\']]></search>\r\n		<add position=\"before\"><![CDATA[			// Prepare mail: information.contact_customer\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n			    \'key\' => \'information.contact_customer\',\r\n			    \'email\' => $this->request->post[\'email\']\r\n            );\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n			if ($template) {\r\n				//$template->addData($this->request->post);\r\n\r\n				$template->data[\'name\'] = html_entity_decode($this->request->post[\'name\'], ENT_QUOTES, \'UTF-8\');\r\n\r\n				$template->data[\'email\'] = $this->request->post[\'email\'];\r\n\r\n				if (!empty($this->request->post[\'enquiry\'])) {\r\n					$template->data[\'enquiry\'] = html_entity_decode(str_replace(\"\\n\", \"<br />\", $this->request->post[\'enquiry\']), ENT_QUOTES, \'UTF-8\');\r\n				}\r\n\r\n				if (!empty($customer_info)) {\r\n					$template->data[\'customer\'] = $customer_info;\r\n				}\r\n				// Prepared mail: information.contact_customer\r\n\r\n				// Send mail: information.contact_customer\r\n                if ($template && $template->check()) {\r\n                	$template->build();\r\n                	$template->hook($mail);\r\n\r\n					$mail->send();\r\n\r\n					$this->model_extension_module_emailtemplate->sent();\r\n				}\r\n			}\r\n		]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/journal3/form.php\" error=\"skip\">\n    <operation>\n        <search index=\"0\"><![CDATA[$params = array(]]></search>\n        <add position=\"after\"><![CDATA[					\'emailtemplate_key\' => \'journal.form.\' . $this->module_id,\n					\'email_data\' => $email_data,]]></add>\n    </operation>\n    <operation>\n        <search index=\"0\"><![CDATA[$this->load->controller(\'journal3/mail/send\', $params);]]></search>\n        <add position=\"after\"><![CDATA[\n				// Admin mail\n				$admin_template_key = \'journal.form_admin.\' . $this->module_id;\n				$admin_template = $this->model_extension_module_emailtemplate->load($admin_template_key);\n\n				if ($admin_template) {\n					$params[\'emailtemplate_key\'] = $admin_template_key;\n					\n					$this->load->controller(\'journal3/mail/send\', $params);\n				}]]></add>\n    </operation>\n</file>\n\n<file path=\"catalog/controller/journal3/mail.php\" error=\"skip\">\n<operation>\n    <search index=\"0\"><![CDATA[$mail->setTo(]]></search>\n    <ignoreif><![CDATA[$this->load->model(\'extension/module/emailtemplate\');]]></ignoreif>\n    <add position=\"before\"><![CDATA[        if (!empty($data[\'emailtemplate_key\'])) {\n            $this->load->model(\'extension/module/emailtemplate\');\n\n            $template = $this->model_extension_module_emailtemplate->load($data[\'emailtemplate_key\']);\n\n            if (!$template) {\n                // Remove key .index\n                $emailtemplate_key = preg_replace(\'/.[0-9]*$/\', \'\', $data[\'emailtemplate_key\']);\n\n                if ($emailtemplate_key && $emailtemplate_key != $data[\'emailtemplate_key\']) {\n                    $template = $this->model_extension_module_emailtemplate->load($emailtemplate_key);\n                }\n            }\n\n            if ($template) {\n                if (isset($data[\'email_data\'])) {\n                    $template->addData($data[\'email_data\']);\n                } else {\n                    $template->addData($data);\n                }\n            }\n        }\n        ]]></add>\n</operation>\n<operation>\n    <search index=\"0\"><![CDATA[$mail->send();]]></search>\n    <ignoreif><![CDATA[$this->model_extension_module_emailtemplate->sent();]]></ignoreif>\n    <add position=\"replace\"><![CDATA[\n        if (!empty($data[\'emailtemplate_key\']) && $template) {\n    			$template->hook($mail);\n    		}\n\n        $mail->send();\n\n        if (!empty($data[\'emailtemplate_key\']) && $template) {\n            $this->model_extension_module_emailtemplate->sent();\n        }\n        ]]></add>\n</operation>\n</file>\n\r\n	<file path=\"catalog/controller/journal3/newsletter.php\" error=\"skip\">\n    <operation>\n        <search index=\"0\"><![CDATA[$this->load->controller(\'journal3/mail/send\', array(]]></search>\n        <add position=\"after\"><![CDATA[					\'emailtemplate_key\' => \'journal.newsletter.\' . $this->module_id,\n    \'subscribed\' => 1,]]></add>\n    </operation>\n    <operation>\n        <search index=\"1\"><![CDATA[$this->load->controller(\'journal3/mail/send\', array(]]></search>\n        <add position=\"after\"><![CDATA[					\'emailtemplate_key\' => \'journal.newsletter_admin.\' . $this->module_id,\n    \'subscribed\' => 1,]]></add>\n    </operation>\n    <operation>\n        <search index=\"2\"><![CDATA[$this->load->controller(\'journal3/mail/send\', array(]]></search>\n        <add position=\"after\"><![CDATA[					\'emailtemplate_key\' => \'journal.newsletter.\' . $this->module_id,\n    \'subscribed\' => 0,]]></add>\n    </operation>\n    <operation>\n        <search index=\"3\"><![CDATA[$this->load->controller(\'journal3/mail/send\', array(]]></search>\n        <add position=\"after\"><![CDATA[					\'emailtemplate_key\' => \'journal.newsletter_admin.\' . $this->module_id,\n    \'subscribed\' => 0,]]></add>\n    </operation>\n</file>\n\n<file path=\"catalog/controller/journal3/mail.php\" error=\"skip\">\n<operation>\n    <search index=\"0\"><![CDATA[$mail->setTo(]]></search>\n    <ignoreif><![CDATA[$this->load->model(\'extension/module/emailtemplate\');]]></ignoreif>\n    <add position=\"before\"><![CDATA[        if (!empty($data[\'emailtemplate_key\'])) {\n            $this->load->model(\'extension/module/emailtemplate\');\n\n            $template = $this->model_extension_module_emailtemplate->load($data[\'emailtemplate_key\']);\n\n            if (!$template) {\n                // Remove key .index\n                $emailtemplate_key = preg_replace(\'/.[0-9]*$/\', \'\', $data[\'emailtemplate_key\']);\n\n                if ($emailtemplate_key && $emailtemplate_key != $data[\'emailtemplate_key\']) {\n                    $template = $this->model_extension_module_emailtemplate->load($emailtemplate_key);\n                }\n            }\n\n            if ($template) {\n                $template->addData($data);\n            }\n        }\n        ]]></add>\n</operation>\n<operation>\n    <search index=\"0\"><![CDATA[$mail->send();]]></search>\n    <ignoreif><![CDATA[$this->model_extension_module_emailtemplate->sent();]]></ignoreif>\n    <add position=\"replace\"><![CDATA[\n        if (!empty($data[\'emailtemplate_key\']) && $template) {\n            $template->hook($mail);\n        }\n\n        $mail->send();\n\n        if (!empty($data[\'emailtemplate_key\']) && $template) {\n            $this->model_extension_module_emailtemplate->sent();\n        }\n        ]]></add>\n</operation>\n</file>\n\r\n	<file path=\"catalog/controller/mail/order.php\" email_template=\"order.admin\">\r\n    <operation>\r\n        <search index=\"1\"><![CDATA[$data[\'products\'][] = array(]]></search>\r\n        <add position=\"after\"><![CDATA[				\'product_id\'  => $order_product[\'product_id\'],\r\n				\'order_product_id\'  => $order_product[\'order_product_id\'],]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"1\"><![CDATA[\'name\'  => $order_option[\'name\'],]]></search>\r\n        <add position=\"before\"><![CDATA[					\'order_option_id\'  => $order_option[\'order_option_id\'],]]></add>\r\n    </operation>\r\n    <operation>\r\n		<search index=\"2\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n			// Prepare mail: order.admin\r\n			$this->load->language(\'product/product\'); // required for stock status\r\n			$this->load->language(\'mail/order_alert\');\r\n			$this->load->language(\'extension/module/emailtemplate/order\');\r\n\r\n			$this->load->model(\'tool/image\');\r\n            $this->load->model(\'catalog/product\');\r\n            $this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\r\n				\'key\' => \'order.admin\',\r\n				\'customer_id\' => $order_info[\'customer_id\'],\r\n				\'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n				\'language_id\' => $order_info[\'language_id\'],\r\n				\'order_status_id\' => $order_status_id,\r\n				\'store_id\' => $order_info[\'store_id\'],\r\n                \'payment_method\' => $order_info[\'payment_code\'],\r\n                \'shipping_method\' => $order_info[\'shipping_code\']\r\n			);\r\n\r\n			$template_filter = array();\r\n\r\n			if (!empty($order_info[\'customer_id\']) && !isset($total_customer_orders)) {\r\n				$total_customer_orders_query = $this->db->query(\"SELECT count(1) as total FROM `\" . DB_PREFIX . \"order` WHERE customer_id = \'\" . (int)$order_info[\'customer_id\'] . \"\'\");\r\n\r\n				if ($total_customer_orders_query->row) {\r\n					$total_customer_orders = $total_customer_orders_query->row[\'total\'];\r\n\r\n					$template_filter[\'total_customer_orders\'] = $total_customer_orders;\r\n				}\r\n			}\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load, $template_filter);\r\n\r\n            if ($template) {\r\n                $template->addData($order_info);\r\n\r\n                if (!empty($data)) $template->addData($data);\r\n\r\n                $template->data[\'total_customer_orders\'] = isset($total_customer_orders) ? $total_customer_orders : 0;\r\n\r\n                $template->data[\'date_added\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_added\']));\r\n\r\n                $template->data[\'date_modified\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_modified\']));\r\n\r\n                if ($order_info[\'invoice_no\']) {\r\n                    $template->data[\'invoice_no\'] = $order_info[\'invoice_prefix\'] . $order_info[\'invoice_no\'];\r\n                } else {\r\n                    $template->data[\'invoice_no\'] = \'\';\r\n                }\r\n\r\n                // Address\r\n                foreach(array(\'payment\', \'shipping\') as $var) {\r\n                    if ($order_info[$var . \'_address_format\']) {\r\n                        $format = $order_info[$var . \'_address_format\'];\r\n                    } else {\r\n                        $format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                    }\r\n\r\n                    $find = array(\r\n                        \'{firstname}\',\r\n                        \'{lastname}\',\r\n                        \'{company}\',\r\n                        \'{address_1}\',\r\n                        \'{address_2}\',\r\n                        \'{city}\',\r\n                        \'{postcode}\',\r\n                        \'{zone}\',\r\n                        \'{zone_code}\',\r\n                        \'{country}\'\r\n                    );\r\n\r\n                    $replace = array(\r\n                        \'firstname\' => $order_info[$var . \'_firstname\'],\r\n                        \'lastname\'  => $order_info[$var . \'_lastname\'],\r\n                        \'company\'   => $order_info[$var . \'_company\'],\r\n                        \'address_1\' => $order_info[$var . \'_address_1\'],\r\n                        \'address_2\' => $order_info[$var . \'_address_2\'],\r\n                        \'city\'      => $order_info[$var . \'_city\'],\r\n                        \'postcode\'  => $order_info[$var . \'_postcode\'],\r\n                        \'zone\'      => $order_info[$var . \'_zone\'],\r\n                        \'zone_code\' => $order_info[$var . \'_zone_code\'],\r\n                        \'country\'   => $order_info[$var . \'_country\']\r\n                    );\r\n\r\n                    if (isset($order_info[\'custom_field\'])) {\r\n                        foreach ($order_info[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                            $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                            $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                        }\r\n                    }\r\n\r\n                    if (isset($order_info[$var . \'_custom_field\'])) {\r\n                        foreach ($order_info[$var . \'_custom_field\'] as $custom_field_id => $custom_field) {\r\n                            $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                            $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : $custom_field;\r\n                        }\r\n                    }\r\n\r\n                    $template->data[$var . \'_address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $format))));\r\n                }\r\n\r\n                if (!empty($order_info[\'customer_group_id\'])) {\r\n                    $this->load->model(\'account/customer_group\');\r\n\r\n                    $customer_group = $this->model_account_customer_group->getCustomerGroup($order_info[\'customer_group_id\']);\r\n\r\n                    $template->data[\'customer_group\'] = array(\r\n                        \'name\' => $customer_group[\'name\'],\r\n                        \'description\' => $customer_group[\'description\']\r\n                    );\r\n                }\r\n\r\n                if (!empty($order_info[\'affiliate_id\']) && file_exists(DIR_APPLICATION . \'model/account/affiliate.php\')) {\r\n                    $this->load->model(\'account/affiliate\');\r\n\r\n                    $affiliate_info = $this->model_account_affiliate->getAffiliate($order_info[\'affiliate_id\']);\r\n\r\n                    if ($affiliate_info) {\r\n                        $template->data[\'affiliate\'] = $affiliate_info;\r\n                    }\r\n                }\r\n\r\n                // Custom fields\r\n                if (!empty($order_info[\'custom_field\']) || !empty($order_info[\'payment_custom_field\'])) {\r\n                    $this->load->model(\'account/custom_field\');\r\n\r\n                    // Cleanup\r\n					foreach(array(\'custom_field\', \'payment_custom_field\', \'shipping_custom_field\') as $var) {\r\n						if (isset($template->data[$var])) {\r\n							unset($template->data[$var]);\r\n						}\r\n					}\r\n\r\n                    if (!empty($order_info[\'customer_group_id\'])) {\r\n                        $customer_group_id = $order_info[\'customer_group_id\'];\r\n                    } else {\r\n                        $customer_group_id = $this->config->get(\'config_customer_group_id\');\r\n                    }\r\n\r\n                    $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                    foreach ($custom_fields as $custom_field) {\r\n                        if (isset($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                    if (is_array($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']];\r\n                            }\r\n                        } elseif (isset($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                            if ($custom_field[\'custom_field_value\']) {\r\n                                foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                    if (is_array($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                        }\r\n                                    } else {\r\n                                        if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                        }\r\n                                    }\r\n                                }\r\n                            } else {\r\n                                $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']];\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n                $order_status_query = $this->db->query(\"SELECT `name` FROM \" . DB_PREFIX . \"order_status WHERE order_status_id = \'\" . (int)$order_status_id . \"\' AND language_id = \'\" . (int)$order_info[\'language_id\'] . \"\' LIMIT 1\");\r\n\r\n                if ($order_status_query->row) {\r\n                    $order_status = $order_status_query->row[\'name\'];\r\n\r\n                    $template->data[\'order_status\'] = $order_status;\r\n                }\r\n\r\n                    if ($this->config->get(\'config_processing_status\') && in_array($order_status_id, $this->config->get(\'config_processing_status\'))) {\r\n                        $template->data[\'order_processing_status\'] = true;\r\n                    } elseif ($this->config->get(\'config_complete_status\') && in_array($order_status_id, $this->config->get(\'config_complete_status\'))) {\r\n                        $template->data[\'order_complete_status\'] = true;\r\n                    }\r\n\r\n                $template->data[\'date_added\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_added\']));\r\n\r\n                if (defined(\'HTTP_ADMIN\')) {\r\n                    $admin_url = HTTP_ADMIN;\r\n                } elseif (!empty($order_info[\'store_ssl\'])) {\r\n                    $admin_url = $order_info[\'store_ssl\'] . \'admin/\';\r\n                } else {\r\n                    $admin_url = $order_info[\'store_url\'] . \'admin/\';\r\n                }\r\n\r\n                $template->data[\'admin_order_link\'] = $admin_url . \'index.php?route=sale/order/info&order_id=\' . $order_info[\'order_id\'];\r\n\r\n                if ($this->language->get(\'button_order_link\') && $this->language->get(\'button_order_link\') != \'button_order_link\') {\r\n                    $template->data[\'admin_order_link_text\'] =  $this->language->get(\'button_order_link\');\r\n                } else {\r\n                    $template->data[\'admin_order_link_text\'] =  $template->data[\'admin_order_link\'];\r\n                }\r\n\r\n                if (!empty($order_info[\'weight\'])) {\r\n                    $template->data[\'order_weight\'] = $this->weight->format($order_info[\'weight\'], $this->config->get(\'config_weight_class_id\'), $this->language->get(\'decimal_point\'), $this->language->get(\'thousand_point\'));\r\n                }\r\n\r\n                $template->data[\'order_comment\'] = nl2br($order_info[\'comment\']);\r\n\r\n                if ($order_info[\'comment\'] != $comment) {\r\n                    $template->data[\'comment\'] = nl2br($order_info[\'comment\']);\r\n\r\n                    $template->data[\'instruction\'] = nl2br($comment);\r\n                } else {\r\n                    $template->data[\'comment\'] = nl2br($comment);\r\n\r\n                    $template->data[\'instruction\'] = \'\';\r\n                }\r\n\r\n                $template->data[\'order_total\'] = $this->currency->format($order_info[\'total\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n                $products_stock = array();\r\n\r\n                if (!empty($template->data[\'config\'][\'order_products\'][\'option_length\'])) {\r\n                    $option_length = $template->data[\'config\'][\'order_products\'][\'option_length\'];\r\n                } else {\r\n                    $option_length = 120;\r\n                }\r\n\r\n                // Add extra data to products array\r\n                $template->data[\'products\'] = $data[\'products\'];\r\n\r\n                foreach ($template->data[\'products\'] as $i => $product) {\r\n                    $order_product = false;\r\n                    foreach ($order_products as $row) {\r\n                        if ($product[\'order_product_id\'] == $row[\'order_product_id\']) {\r\n                            $order_product = $row;\r\n                            break;\r\n                        }\r\n                    }\r\n\r\n                    $product_data = $this->model_catalog_product->getProduct($order_product[\'product_id\']);\r\n\r\n                    if ($product_data) {\r\n                        if ($product[\'option\']) {\r\n                            $order_options = $this->model_checkout_order->getOrderOptions($order_info[\'order_id\'], $order_product[\'order_product_id\']);\r\n\r\n                            foreach ($product[\'option\'] as $ii => $product_option) {\r\n                                $order_option = false;\r\n                                foreach ($order_options as $order_option) {\r\n                                    if ($order_option[\'order_option_id\'] == $product_option[\'order_option_id\']) {\r\n                                        break;\r\n                                    }\r\n                                }\r\n\r\n                                if ($order_option && $order_option[\'type\'] != \'file\') {\r\n                                    $value = $order_option[\'value\'];\r\n                                    $template->data[\'products\'][$i][\'option\'][$ii][\'value\'] = utf8_strlen($value) > $option_length ? utf8_substr($value, 0, $option_length) . \'..\' : $value;\r\n                                }\r\n                            }\r\n\r\n                            $product_data[\'option_value\'] = array();\r\n\r\n                            $order_option_query = $this->db->query(\"SELECT oo.* FROM \" . DB_PREFIX . \"order_option oo WHERE oo.order_product_id = \'\" . (int)$product[\'order_product_id\'] . \"\' AND oo.order_id = \'\" . (int)$order_info[\'order_id\'] . \"\'\");\r\n\r\n                            if ($order_option_query->rows) {\r\n                                foreach ($order_option_query->rows as $order_option) {\r\n                                    $order_option_value_query = $this->db->query(\"SELECT pov.*, ov.image FROM \" . DB_PREFIX . \"product_option_value pov LEFT JOIN \" . DB_PREFIX . \"option_value ov ON (pov.option_value_id = ov.option_value_id) WHERE pov.product_option_value_id = \'\" . (int)$order_option[\'product_option_value_id\'] . \"\'\");\r\n\r\n                                    if ($order_option_value_query->rows) {\r\n                                        foreach ($order_option_value_query->rows as $order_option_value) {\r\n                                            $product_data[\'option_value\'][] = array(\r\n                                                \'order_option_id\' => $order_option[\'order_option_id\'],\r\n                                                \'product_option_value_id\' => $order_option[\'product_option_value_id\'],\r\n                                                \'type\' => $order_option[\'type\'],\r\n                                                \'image\' => $order_option_value[\'image\'],\r\n                                                \'price\' => $order_option_value[\'price\'],\r\n                                                \'price_prefix\' => $order_option_value[\'price_prefix\'],\r\n                                                \'stock_quantity\' => $order_option_value[\'quantity\'],\r\n                                                \'value\' => $order_option[\'value\']\r\n                                            );\r\n                                        }\r\n                                    }\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        $image = \'\';\r\n\r\n                        if (!empty($template->data[\'config\'][\'order_products\'][\'image\'])) {\r\n                            $image = $product_data[\'image\'];\r\n\r\n                            if (!empty($product_data[\'option_value\']) && !empty($template->data[\'config\'][\'order_products\'][\'option_image\'])) {\r\n                                foreach($product_data[\'option_value\'] as $product_option_value) {\r\n                                    if ($product_option_value[\'image\']) {\r\n                                        $image = $product_option_value[\'image\'];\r\n                                        break;\r\n                                    }\r\n                                }\r\n                            }\r\n\r\n                            if ($image) {\r\n                                $image_width = isset($template->data[\'config\'][\'order_products\'][\'image_width\']) ? $template->data[\'config\'][\'order_products\'][\'image_width\']: 100;\r\n                                $image_height = isset($template->data[\'config\'][\'order_products\'][\'image_height\']) ? $template->data[\'config\'][\'order_products\'][\'image_height\']: 100;\r\n\r\n                                if ($image_width && $image_height) {\r\n                                    $image = $this->model_tool_image->resize($image, $image_width, $image_height);\r\n                                    if (substr($image, 0, 4) != \'http\') {\r\n                                        $image = $order_info[\'store_url\'] . ltrim($image, \'/\');\r\n                                    }\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        $url = $this->url->link(\'product/product\', \'product_id=\'.$order_product[\'product_id\']);\r\n\r\n                        if (!empty($template->data[\'config\'][\'order_products\'][\'admin_stock\'])) {\r\n                            if (!isset($products_stock[$order_product[\'product_id\']][\'stock_quantity\'])) {\r\n                                $products_stock[$order_product[\'product_id\']][\'stock_quantity\'] = (int)$product_data[\'quantity\'];\r\n                            }\r\n\r\n                            if ($product_data[\'subtract\']) {\r\n                                $products_stock[$order_product[\'product_id\']][\'stock_quantity\'] -= (int)$product[\'quantity\'];\r\n                            }\r\n                        }\r\n\r\n                        if (!empty($product_data[\'option_value\']) && $template->data[\'products\'][$i][\'option\']) {\r\n                            foreach ($product_data[\'option_value\'] as $product_option_value) {\r\n                                if ($product_option_value[\'stock_quantity\']) {\r\n                                    foreach($template->data[\'products\'][$i][\'option\'] as $ii => $product_option) {\r\n                                        if ($product_option_value[\'order_option_id\'] == $product_option[\'order_option_id\']) {\r\n                                            if ($product_option_value[\'type\'] != \'file\') {\r\n                                                $value = $product_option_value[\'value\'];\r\n                                            } else {\r\n                                                $value = utf8_substr($product_option_value[\'value\'], 0, utf8_strrpos($product_option_value[\'value\'], \'.\'));\r\n                                            }\r\n\r\n                                            $template->data[\'products\'][$i][\'option\'][$ii] = array_merge($template->data[\'products\'][$i][\'option\'][$ii], array(\r\n                                                \'value\' => utf8_strlen($value) > $option_length ? utf8_substr($value, 0, $option_length) . \'..\' : $value,\r\n                                                \'price\' => (float)$product_option_value[\'price\'] ? $this->currency->format($this->tax->calculate($product_option_value[\'price\'], $product_data[\'tax_class_id\'], $this->config->get(\'config_tax\') ? \'P\' : false), $this->session->data[\'currency\']) : 0,\r\n                                                \'price_value\' => (float)$product_option_value[\'price\'],\r\n                                                \'price_prefix\' => isset($product_option_value[\'price_prefix\']) ? $product_option_value[\'price_prefix\'] : \'\',\r\n                                                \'stock_quantity\' => isset($product_option_value[\'quantity\']) ? ((int)$product_option_value[\'quantity\'] - (int)$product[\'quantity\']) : \'\',\r\n                                                \'stock_subtract\' => isset($product_option_value[\'subtract\']) ? $product_option_value[\'subtract\'] : \'\'\r\n                                            ));\r\n\r\n                                            break 2;\r\n                                        }\r\n                                    }\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        if ($product_data[\'quantity\'] <= 0) {\r\n                            $stock_status = $product_data[\'stock_status\'];\r\n                        } elseif ($this->config->get(\'config_stock_display\')) {\r\n                            $stock_status = $product_data[\'quantity\'];\r\n                        } else {\r\n                            $stock_status = $this->language->get(\'text_instock\');\r\n                        }\r\n\r\n                        $template->data[\'products\'][$i] = array_merge($template->data[\'products\'][$i], array(\r\n                            \'product_id\' => $product_data[\'product_id\'],\r\n                            \'url\' => $url,\r\n                            \'image\' => !empty($image) ? $image : \'\',\r\n                            \'weight\' => ($product_data[\'weight\'] > 0) ? $this->weight->format($product_data[\'weight\'], $product_data[\'weight_class_id\']) : 0,\r\n                            \'price\'    => $this->currency->format($order_product[\'price\'] + ($this->config->get(\'config_tax\') ? $order_product[\'tax\'] : 0), $order_info[\'currency_code\'], $order_info[\'currency_value\']),\r\n                            \'manufacturer\' => $product_data[\'manufacturer\'],\r\n                            \'stock_status\' => $stock_status\r\n                        ));\r\n\r\n                        if (!empty($template->data[\'config\'][\'order_products\'][\'model\'])) {\r\n                            $template->data[\'products\'][$i][\'model\'] = $product_data[\'model\'];\r\n                        } elseif (isset($template->data[\'products\'][$i][\'model\'])) {\r\n                            unset($template->data[\'products\'][$i][\'model\']);\r\n                        }\r\n\r\n                        if (!empty($template->data[\'config\'][\'order_products\'][\'sku\'])) {\r\n                            $template->data[\'products\'][$i][\'sku\'] = $product_data[\'sku\'];\r\n                        } elseif (isset($template->data[\'products\'][$i][\'sku\'])) {\r\n                            unset($template->data[\'products\'][$i][\'sku\']);\r\n                        }\r\n\r\n                        if (!empty($template->data[\'config\'][\'order_products\'][\'description\']) && $product_data[\'description\']) {\r\n                            $template->data[\'products\'][$i][\'description\'] = utf8_substr(strip_tags(html_entity_decode($product_data[\'description\'], ENT_QUOTES, \'UTF-8\')), 0, 200) . \'..\';\r\n                        }\r\n                    }\r\n                }\r\n\r\n                // Products Stock\r\n                if (!empty($template->data[\'config\'][\'order_products\'][\'admin_stock\'])) {\r\n                    foreach ($template->data[\'products\'] as $i => $product) {\r\n                        if (isset($products_stock[$product[\'product_id\']][\'stock_quantity\'])) {\r\n                            $template->data[\'products\'][$i][\'stock_quantity\'] = $products_stock[$product[\'product_id\']][\'stock_quantity\'];\r\n                        }\r\n                    }\r\n                }\r\n\r\n                // Vouchers\r\n                $template->data[\'vouchers\'] = array();\r\n\r\n                $order_vouchers = $this->model_checkout_order->getOrderVouchers($order_info[\'order_id\']);\r\n\r\n                foreach ($order_vouchers as $order_voucher) {\r\n                    $template->data[\'vouchers\'][] = array(\r\n                        \'description\' => $order_voucher[\'description\'],\r\n                        \'amount\'      => $this->currency->format($order_voucher[\'amount\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']),\r\n                    );\r\n                }\r\n\r\n                // Order Totals\r\n                $template->data[\'totals\'] = array();\r\n\r\n                $order_totals = $this->model_checkout_order->getOrderTotals($order_info[\'order_id\']);\r\n\r\n                foreach ($order_totals as $order_total) {\r\n                    $template->data[\'totals\'][] = array(\r\n                        \'title\' => $order_total[\'title\'],\r\n                        \'text\'  => $this->currency->format($order_total[\'value\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']),\r\n                    );\r\n                }\r\n\r\n                $template->data[\'order_subject_products\'] = \'\';\r\n\r\n                if (!empty($template->data[\'products\'])) {\r\n                    foreach ($template->data[\'products\'] as $order_product) {\r\n                        if (strpos($template->data[\'order_subject_products\'], $order_product[\'name\']) === false) {\r\n                            $template->data[\'order_subject_products\'] .= ($template->data[\'order_subject_products\'] ? \', \' : \'\') . strip_tags($order_product[\'name\']);\r\n                        }\r\n                    }\r\n                }\r\n\r\n                if (!empty($template->data[\'vouchers\'])) {\r\n                    foreach ($template->data[\'vouchers\'] as $order_voucher) {\r\n                        if (strpos($template->data[\'order_subject_products\'], $order_voucher[\'description\']) === false) {\r\n                            $template->data[\'order_subject_products\'] .= ($template->data[\'order_subject_products\'] ? \', \' : \'\') . strip_tags($order_voucher[\'description\']);\r\n                        }\r\n                    }\r\n                }\r\n\r\n                if ($template->data[\'order_subject_products\']) {\r\n                    $template->data[\'order_subject_products\'] = trim(html_entity_decode($template->data[\'order_subject_products\'], ENT_QUOTES, \'UTF-8\'));\r\n\r\n                    $length = 32;\r\n\r\n                    if (strlen($template->data[\'order_subject_products\']) > $length) {\r\n                        $template->data[\'order_subject_products\'] = substr($template->data[\'order_subject_products\'], 0, strrpos(substr($template->data[\'order_subject_products\'], 0, $length), \' \')) . \'...\';\r\n                    }\r\n                }\r\n			    // Prepared mail: order.admin\r\n            }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"2\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: order.admin\r\n			if ($template && $template->check()) {\r\n			    $template->build();\r\n			    $template->hook($mail);\r\n            }\r\n\r\n			$mail->send();\r\n\r\n			$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/order_alert\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_alert\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_alert\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/order.php\" email_template=\"order.customer\">\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[$data[\'products\'][] = array(]]></search>\r\n        <add position=\"after\"><![CDATA[				\'product_id\'  => $order_product[\'product_id\'],\r\n				\'order_product_id\'  => $order_product[\'order_product_id\'],]]></add>\r\n    </operation>\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[\'name\'  => $order_option[\'name\'],]]></search>\r\n        <add position=\"before\"><![CDATA[					\'order_option_id\'  => $order_option[\'order_option_id\'],]]></add>\r\n    </operation>\r\n    <operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n		// Prepare mail: order.customer\r\n		$language->load(\'product/product\'); // required for stock status\r\n		$language->load(\'extension/module/emailtemplate/order\');\r\n\r\n		$this->load->model(\'tool/image\');\r\n		$this->load->model(\'catalog/product\');\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$template_load = array(\r\n			\'key\' => \'order.customer\',\r\n			\'customer_id\' => $order_info[\'customer_id\'],\r\n            \'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n            \'language_id\' => $order_info[\'language_id\'],\r\n            \'order_status_id\' => $order_status_id,\r\n            \'store_id\' => $order_info[\'store_id\'],\r\n            \'payment_method\' => $order_info[\'payment_code\'],\r\n            \'shipping_method\' => $order_info[\'shipping_code\']\r\n		);\r\n\r\n		$template_filter = array();\r\n\r\n		if (!empty($order_info[\'customer_id\']) && !isset($total_customer_orders)) {\r\n			$total_customer_orders_query = $this->db->query(\"SELECT count(1) as total FROM `\" . DB_PREFIX . \"order` WHERE customer_id = \'\" . (int)$order_info[\'customer_id\'] . \"\'\");\r\n\r\n			if ($total_customer_orders_query->row) {\r\n				$total_customer_orders = $total_customer_orders_query->row[\'total\'];\r\n				$template_filter[\'total_customer_orders\'] = $total_customer_orders;\r\n			}\r\n		}\r\n\r\n		$template = $this->model_extension_module_emailtemplate->load($template_load, $template_filter);\r\n\r\n        if ($template) {\r\n            $template->addData($order_info);\r\n\r\n            if (!empty($data)) $template->addData($data);\r\n\r\n            if (!empty($order_info[\'customer_group_id\'])) {\r\n                $this->load->model(\'account/customer_group\');\r\n\r\n                $customer_group = $this->model_account_customer_group->getCustomerGroup($order_info[\'customer_group_id\']);\r\n\r\n                $template->data[\'customer_group\'] = array(\r\n                    \'name\' => $customer_group[\'name\'],\r\n                    \'description\' => $customer_group[\'description\']\r\n                );\r\n            }\r\n\r\n            if (!empty($order_info[\'affiliate_id\']) && file_exists(DIR_APPLICATION . \'model/account/affiliate.php\')) {\r\n                $this->load->model(\'account/affiliate\');\r\n\r\n                $affiliate_info = $this->model_account_affiliate->getAffiliate($order_info[\'affiliate_id\']);\r\n\r\n                if ($affiliate_info) {\r\n                    $template->data[\'affiliate\'] = $affiliate_info;\r\n                }\r\n            }\r\n\r\n            // Custom fields\r\n            if (!empty($order_info[\'custom_field\']) || !empty($order_info[\'payment_custom_field\'])) {\r\n                $this->load->model(\'account/custom_field\');\r\n\r\n                // Cleanup\r\n                foreach(array(\'custom_field\', \'payment_custom_field\', \'shipping_custom_field\') as $var) {\r\n                    if (isset($template->data[$var])) {\r\n                        unset($template->data[$var]);\r\n                    }\r\n                }\r\n\r\n                if (!empty($order_info[\'customer_group_id\'])) {\r\n                    $customer_group_id = $order_info[\'customer_group_id\'];\r\n                } else {\r\n                    $customer_group_id = $this->config->get(\'config_customer_group_id\');\r\n                }\r\n\r\n                $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                foreach ($custom_fields as $custom_field) {\r\n                    if (isset($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                if (is_array($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                    if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']];\r\n                        }\r\n                    } elseif (isset($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                if (is_array($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                    if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']];\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n            // Address\r\n            foreach(array(\'payment\', \'shipping\') as $var) {\r\n                if ($order_info[$var . \'_address_format\']) {\r\n                    $format = $order_info[$var . \'_address_format\'];\r\n                } else {\r\n                    $format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                }\r\n\r\n                $find = array(\r\n                    \'{firstname}\',\r\n                    \'{lastname}\',\r\n                    \'{company}\',\r\n                    \'{address_1}\',\r\n                    \'{address_2}\',\r\n                    \'{city}\',\r\n                    \'{postcode}\',\r\n                    \'{zone}\',\r\n                    \'{zone_code}\',\r\n                    \'{country}\'\r\n                );\r\n\r\n                $replace = array(\r\n                    \'firstname\' => $order_info[$var . \'_firstname\'],\r\n                    \'lastname\'  => $order_info[$var . \'_lastname\'],\r\n                    \'company\'   => $order_info[$var . \'_company\'],\r\n                    \'address_1\' => $order_info[$var . \'_address_1\'],\r\n                    \'address_2\' => $order_info[$var . \'_address_2\'],\r\n                    \'city\'      => $order_info[$var . \'_city\'],\r\n                    \'postcode\'  => $order_info[$var . \'_postcode\'],\r\n                    \'zone\'      => $order_info[$var . \'_zone\'],\r\n                    \'zone_code\' => $order_info[$var . \'_zone_code\'],\r\n                    \'country\'   => $order_info[$var . \'_country\']\r\n                );\r\n\r\n                if (isset($order_info[\'custom_field\'])) {\r\n                    foreach ($order_info[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                        $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                        $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                    }\r\n                }\r\n\r\n                if (isset($order_info[$var . \'_custom_field\'])) {\r\n                    foreach ($order_info[$var . \'_custom_field\'] as $custom_field_id => $custom_field) {\r\n                        $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                        $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : $custom_field;\r\n                    }\r\n                }\r\n\r\n                $template->data[$var . \'_address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $format))));\r\n            }\r\n\r\n            $order_status_query = $this->db->query(\"SELECT `name` FROM \" . DB_PREFIX . \"order_status WHERE order_status_id = \'\" . (int)$order_status_id . \"\' AND language_id = \'\" . (int)$order_info[\'language_id\'] . \"\' LIMIT 1\");\r\n\r\n            if ($order_status_query->row) {\r\n                $order_status = $order_status_query->row[\'name\'];\r\n\r\n                $template->data[\'order_status\'] = $order_status;\r\n            }\r\n\r\n            if ($this->config->get(\'config_processing_status\') && in_array($order_status_id, $this->config->get(\'config_processing_status\'))) {\r\n                $template->data[\'order_processing_status\'] = true;\r\n            } elseif ($this->config->get(\'config_complete_status\') && in_array($order_status_id, $this->config->get(\'config_complete_status\'))) {\r\n                $template->data[\'order_complete_status\'] = true;\r\n            }\r\n\r\n            $template->data[\'total_customer_orders\'] = isset($total_customer_orders) ? $total_customer_orders : 0;\r\n\r\n            $products_stock = array();\r\n\r\n            if (!empty($template->data[\'config\'][\'order_products\'][\'option_length\'])) {\r\n                $option_length = $template->data[\'config\'][\'order_products\'][\'option_length\'];\r\n            } else {\r\n                $option_length = 120;\r\n            }\r\n\r\n            // Add extra data to products array\r\n            $template->data[\'products\'] = $data[\'products\'];\r\n\r\n            foreach ($template->data[\'products\'] as $i => $product) {\r\n                $order_product = false;\r\n                foreach ($order_products as $row) {\r\n                    if ($product[\'order_product_id\'] == $row[\'order_product_id\']) {\r\n                        $order_product = $row;\r\n                        break;\r\n                    }\r\n                }\r\n\r\n                $product_data = $this->model_catalog_product->getProduct($order_product[\'product_id\']);\r\n\r\n                if ($product_data) {\r\n                    if ($product[\'option\']) {\r\n                        $order_options = $this->model_checkout_order->getOrderOptions($order_info[\'order_id\'], $order_product[\'order_product_id\']);\r\n\r\n                        foreach ($product[\'option\'] as $ii => $product_option) {\r\n                            $order_option = false;\r\n                            foreach ($order_options as $order_option) {\r\n                                if ($order_option[\'order_option_id\'] == $product_option[\'order_option_id\']) {\r\n                                    break;\r\n                                }\r\n                            }\r\n\r\n                            if ($order_option && $order_option[\'type\'] != \'file\') {\r\n                                $value = $order_option[\'value\'];\r\n                                $template->data[\'products\'][$i][\'option\'][$ii][\'value\'] = utf8_strlen($value) > $option_length ? utf8_substr($value, 0, $option_length) . \'..\' : $value;\r\n                            }\r\n                        }\r\n\r\n                        $product_data[\'option_value\'] = array();\r\n\r\n                        $order_option_query = $this->db->query(\"SELECT oo.* FROM \" . DB_PREFIX . \"order_option oo WHERE oo.order_product_id = \'\" . (int)$product[\'order_product_id\'] . \"\' AND oo.order_id = \'\" . (int)$order_info[\'order_id\'] . \"\'\");\r\n\r\n                        if ($order_option_query->rows) {\r\n                            foreach ($order_option_query->rows as $order_option) {\r\n                                $order_option_value_query = $this->db->query(\"SELECT pov.*, ov.image FROM \" . DB_PREFIX . \"product_option_value pov LEFT JOIN \" . DB_PREFIX . \"option_value ov ON (pov.option_value_id = ov.option_value_id) WHERE pov.product_option_value_id = \'\" . (int)$order_option[\'product_option_value_id\'] . \"\'\");\r\n\r\n                                if ($order_option_value_query->rows) {\r\n                                    foreach ($order_option_value_query->rows as $order_option_value) {\r\n                                        $product_data[\'option_value\'][] = array(\r\n                                            \'order_option_id\' => $order_option[\'order_option_id\'],\r\n                                            \'product_option_value_id\' => $order_option[\'product_option_value_id\'],\r\n                                            \'type\' => $order_option[\'type\'],\r\n                                            \'image\' => $order_option_value[\'image\'],\r\n                                            \'price\' => $order_option_value[\'price\'],\r\n                                            \'price_prefix\' => $order_option_value[\'price_prefix\'],\r\n                                            //\'stock_quantity\' => $order_option_value[\'quantity\'],\r\n                                            \'value\' => $order_option[\'value\']\r\n                                        );\r\n                                    }\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n\r\n                    $image = \'\';\r\n\r\n                    if (!empty($template->data[\'config\'][\'order_products\'][\'image\'])) {\r\n                        $image = $product_data[\'image\'];\r\n\r\n                        if (!empty($product_data[\'option_value\']) && !empty($template->data[\'config\'][\'order_products\'][\'option_image\'])) {\r\n                            foreach($product_data[\'option_value\'] as $product_option_value) {\r\n                                if ($product_option_value[\'image\']) {\r\n                                    $image = $product_option_value[\'image\'];\r\n                                    break;\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        if ($image) {\r\n                            $image_width = isset($template->data[\'config\'][\'order_products\'][\'image_width\']) ? $template->data[\'config\'][\'order_products\'][\'image_width\']: 100;\r\n                            $image_height = isset($template->data[\'config\'][\'order_products\'][\'image_height\']) ? $template->data[\'config\'][\'order_products\'][\'image_height\']: 100;\r\n\r\n                            if ($image_width && $image_height) {\r\n                                $image = $this->model_tool_image->resize($image, $image_width, $image_height);\r\n                                if (substr($image, 0, 4) != \'http\') {\r\n                                    $image = $order_info[\'store_url\'] . ltrim($image, \'/\');\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n\r\n                    $url = $this->url->link(\'product/product\', \'product_id=\'.$order_product[\'product_id\']);\r\n\r\n                    // Products Stock\r\n                    /*if (!isset($products_stock[$order_product[\'product_id\']][\'stock_quantity\'])) {\r\n                        $products_stock[$order_product[\'product_id\']][\'stock_quantity\'] = (int)$product_data[\'quantity\'];\r\n                    }\r\n\r\n                    if ($product_data[\'subtract\']) {\r\n                        $products_stock[$order_product[\'product_id\']][\'stock_quantity\'] -= (int)$product[\'quantity\'];\r\n                    }*/\r\n\r\n                    if ($product_data[\'quantity\'] <= 0) {\r\n                        $stock_status = $product_data[\'stock_status\'];\r\n                    } elseif ($this->config->get(\'config_stock_display\')) {\r\n                        $stock_status = $product_data[\'quantity\'];\r\n                    } else {\r\n                        $stock_status = $this->language->get(\'text_instock\');\r\n                    }\r\n\r\n                    $template->data[\'products\'][$i] = array_merge($template->data[\'products\'][$i], array(\r\n                        \'url\' => $url,\r\n                        \'image\' => !empty($image) ? $image : \'\',\r\n                        \'weight\' => ($product_data[\'weight\'] > 0) ? $this->weight->format($product_data[\'weight\'], $product_data[\'weight_class_id\']) : 0,\r\n                        \'manufacturer\' => $product_data[\'manufacturer\'],\r\n                        \'stock_status\' => $stock_status\r\n                    ));\r\n\r\n                    if (!empty($template->data[\'config\'][\'order_products\'][\'description\']) && $product_data[\'description\']) {\r\n                        $template->data[\'products\'][$i][\'description\'] = utf8_substr(strip_tags(html_entity_decode($product_data[\'description\'], ENT_QUOTES, \'UTF-8\')), 0, 200) . \'..\';\r\n                    }\r\n\r\n                    if (!empty($template->data[\'config\'][\'order_products\'][\'model\'])) {\r\n                        $template->data[\'products\'][$i][\'model\'] = $product_data[\'model\'];\r\n                    } elseif (isset($template->data[\'products\'][$i][\'model\'])) {\r\n                        unset($template->data[\'products\'][$i][\'model\']);\r\n                    }\r\n\r\n                    if (!empty($template->data[\'config\'][\'order_products\'][\'sku\'])) {\r\n                        $template->data[\'products\'][$i][\'sku\'] = $product_data[\'sku\'];\r\n                    } elseif (isset($template->data[\'products\'][$i][\'sku\'])) {\r\n                        unset($template->data[\'products\'][$i][\'sku\']);\r\n                    }\r\n\r\n                    if (!empty($template->data[\'config\'][\'order_products\'][\'rating\'])) {\r\n                        $template->data[\'products\'][$i][\'rating\'] = $product_data[\'rating\'];\r\n                        $template->data[\'products\'][$i][\'reviews\'] = $product_data[\'reviews\'];\r\n                    }\r\n                }\r\n            }\r\n\r\n            // Products Stock\r\n            /*foreach ($template->data[\'products\'] as $i => $product) {\r\n                if (isset($products_stock[$product[\'product_id\']][\'stock_quantity\'])) {\r\n                    $template->data[\'products\'][$i][\'stock_quantity\'] = $products_stock[$product[\'product_id\']][\'stock_quantity\'];\r\n                }\r\n            }*/\r\n\r\n            $template->data[\'order_comment\'] = nl2br($order_info[\'comment\']);\r\n\r\n            if ($order_info[\'comment\'] != $comment) {\r\n                $template->data[\'comment\'] = nl2br($order_info[\'comment\']);\r\n\r\n                $template->data[\'instruction\'] = nl2br($comment);\r\n            } else {\r\n                $template->data[\'comment\'] = nl2br($comment);\r\n\r\n                $template->data[\'instruction\'] = \'\';\r\n            }\r\n\r\n            $template->data[\'date_added\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_added\']));\r\n\r\n            $template->data[\'date_modified\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_modified\']));\r\n\r\n            if ($order_info[\'invoice_no\']) {\r\n                $template->data[\'invoice_no\'] = $order_info[\'invoice_prefix\'] . $order_info[\'invoice_no\'];\r\n            } else {\r\n                $template->data[\'invoice_no\'] = \'\';\r\n            }\r\n\r\n            $template->data[\'order_total\'] = $this->currency->format($order_info[\'total\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n            $template->data[\'order_subject_products\'] = \'\';\r\n\r\n            if (!empty($template->data[\'products\'])) {\r\n                foreach ($template->data[\'products\'] as $order_product) {\r\n                    if (strpos($template->data[\'order_subject_products\'], $order_product[\'name\']) === false) {\r\n                        $template->data[\'order_subject_products\'] .= ($template->data[\'order_subject_products\'] ? \', \' : \'\') . strip_tags($order_product[\'name\']);\r\n                    }\r\n                }\r\n            }\r\n\r\n            if (!empty($template->data[\'vouchers\'])) {\r\n                foreach ($template->data[\'vouchers\'] as $order_voucher) {\r\n                    if (strpos($template->data[\'order_subject_products\'], $order_voucher[\'description\']) === false) {\r\n                        $template->data[\'order_subject_products\'] .= ($template->data[\'order_subject_products\'] ? \', \' : \'\') . strip_tags($order_voucher[\'description\']);\r\n                    }\r\n                }\r\n            }\r\n\r\n            if ($template->data[\'order_subject_products\']) {\r\n                $template->data[\'order_subject_products\'] = trim(html_entity_decode($template->data[\'order_subject_products\'], ENT_QUOTES, \'UTF-8\'));\r\n\r\n                $length = 32;\r\n\r\n                if (strlen($template->data[\'order_subject_products\']) > $length) {\r\n                    $template->data[\'order_subject_products\'] = substr($template->data[\'order_subject_products\'], 0, strrpos(substr($template->data[\'order_subject_products\'], 0, $length), \' \')) . \'...\';\r\n                }\r\n            }\r\n\r\n            if ($order_info[\'customer_id\']) {\r\n                $template->data[\'order_link\'] = $order_info[\'store_url\'] . \'index.php?route=account/order/info&order_id=\' . $order_info[\'order_id\'];\r\n\r\n                if ($this->language->get(\'button_order_link\') && $this->language->get(\'button_order_link\') != \'button_order_link\') {\r\n                    $template->data[\'order_link_text\'] = $this->language->get(\'button_order_link\');\r\n                } else {\r\n                    $template->data[\'order_link_text\'] = $order_info[\'store_url\'] . \'index.php?route=account/order/info&order_id=\' . $order_info[\'order_id\'];\r\n                }\r\n            }\r\n\r\n            if ($download_status) {\r\n                $template->data[\'download_link\'] = $order_info[\'store_url\'] . \'index.php?route=account/download\';\r\n\r\n                if ($this->language->get(\'button_download_link\') && $this->language->get(\'button_download_link\') != \'button_download_link\') {\r\n                    $template->data[\'download_link_text\'] = $this->language->get(\'button_download_link\');\r\n                } else {\r\n                    $template->data[\'download_link_text\'] = $template->data[\'download_link\'];\r\n                }\r\n            }\r\n		    // Prepared mail: order.customer\r\n		}\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[\r\n		// Send mail: order.customer\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n		    $template->hook($mail);\r\n        }\r\n\r\n		$mail->send();\r\n\r\n		$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/order_add\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_add\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_add\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/mail/order.php\" email_template=\"order.update\">\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n		// Prepare mail: order.update\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$language->load(\'extension/module/emailtemplate/order\');\r\n\r\n		$template_load = array(\r\n			\'key\' => \'order.update\',\r\n			\'customer_id\' => $order_info[\'customer_id\'],\r\n            \'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n            \'language_id\' => $order_info[\'language_id\'],\r\n            \'order_status_id\' => $order_status_id,\r\n            \'store_id\' => $order_info[\'store_id\'],\r\n            \'payment_method\' => $order_info[\'payment_code\'],\r\n            \'shipping_method\' => $order_info[\'shipping_code\']\r\n		);\r\n\r\n		if (!empty($this->request->post[\'emailtemplate_id\'])) {\r\n			$template_load[\'emailtemplate_id\'] = $this->request->post[\'emailtemplate_id\'];\r\n		}\r\n\r\n		$template_filter = array();\r\n\r\n		if (!empty($order_info[\'customer_id\']) && !isset($total_customer_orders)) {\r\n			$total_customer_orders_query = $this->db->query(\"SELECT count(1) as total FROM `\" . DB_PREFIX . \"order` WHERE customer_id = \'\" . (int)$order_info[\'customer_id\'] . \"\'\");\r\n\r\n			if ($total_customer_orders_query->row) {\r\n				$total_customer_orders = $total_customer_orders_query->row[\'total\'];\r\n				$template_filter[\'total_customer_orders\'] = $total_customer_orders;\r\n			}\r\n		}\r\n\r\n		$template = $this->model_extension_module_emailtemplate->load($template_load, $template_filter);\r\n\r\n        if ($template) {\r\n            $template->addData($order_info);\r\n\r\n            if (!empty($data)) $template->addData($data);\r\n\r\n            if (!empty($order_info[\'customer_group_id\'])) {\r\n                $this->load->model(\'account/customer_group\');\r\n\r\n                $customer_group = $this->model_account_customer_group->getCustomerGroup($order_info[\'customer_group_id\']);\r\n\r\n                $template->data[\'customer_group\'] = array(\r\n                    \'name\' => $customer_group[\'name\'],\r\n                    \'description\' => $customer_group[\'description\']\r\n                );\r\n            }\r\n\r\n            if (!empty($order_info[\'affiliate_id\']) && file_exists(DIR_APPLICATION . \'model/account/affiliate.php\')) {\r\n                $this->load->model(\'account/affiliate\');\r\n\r\n                $template->data[\'affiliate\'] = $this->model_account_affiliate->getAffiliate($order_info[\'affiliate_id\']);\r\n            }\r\n\r\n            $template->data[\'order_status\'] = $data[\'order_status\'];\r\n\r\n            $template->data[\'order_status_id\'] = $order_status_id;\r\n\r\n            $template->data[\'total_customer_orders\'] = isset($total_customer_orders) ? $total_customer_orders : 0;\r\n\r\n            $template->data[\'date_added\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_added\']));\r\n\r\n            $template->data[\'date_modified\'] = date($this->language->get(\'date_format_short\'), strtotime($order_info[\'date_modified\']));\r\n\r\n            $template->data[\'date_relative_hours\'] = floor((time() - strtotime($order_info[\'date_added\'])) / 3600);\r\n\r\n            if ($order_info[\'invoice_no\']) {\r\n                $template->data[\'invoice_no\'] = $order_info[\'invoice_prefix\'] . $order_info[\'invoice_no\'];\r\n            } else {\r\n                $template->data[\'invoice_no\'] = \'\';\r\n            }\r\n\r\n            if ($order_info[\'order_status_id\'] != $order_status_id){\r\n                $template->data[\'prev_order_status_id\'] = $order_info[\'order_status_id\'];\r\n            }\r\n\r\n            $template->data[\'order_total\'] = $this->currency->format($order_info[\'total\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n            $comment = html_entity_decode($comment, ENT_QUOTES, \'UTF-8\');\r\n\r\n            $template->data[\'comment\'] = (trim(strip_tags($comment)) != \'\') ? $comment : \'\';\r\n\r\n            if ($order_info[\'comment\']) {\r\n                $template->data[\'order_comment\'] = nl2br($order_info[\'comment\']);\r\n            }\r\n\r\n            if ($order_info[\'comment\'] != $comment) {\r\n                $template->data[\'instruction\'] = nl2br($comment);\r\n            } else {\r\n                $template->data[\'instruction\'] = \'\';\r\n            }\r\n\r\n            if ($order_info[\'customer_id\']) {\r\n                $template->data[\'order_link\'] = $order_info[\'store_url\'] . \'index.php?route=account/order/info&order_id=\' . $order_info[\'order_id\'];\r\n\r\n                if (!empty($template->data[\'button_order_link\'])) {\r\n                    $template->data[\'order_link_text\'] = $template->data[\'button_order_link\'];\r\n                } else {\r\n                    $template->data[\'order_link_text\'] = $template->data[\'order_link\'];\r\n                }\r\n            }\r\n\r\n            // Custom fields\r\n            if (!empty($order_info[\'custom_field\']) || !empty($order_info[\'payment_custom_field\'])) {\r\n                $this->load->model(\'account/custom_field\');\r\n\r\n				// Cleanup\r\n				foreach(array(\'custom_field\', \'payment_custom_field\', \'shipping_custom_field\') as $var) {\r\n					if (isset($template->data[$var])) {\r\n						unset($template->data[$var]);\r\n					}\r\n				}\r\n\r\n                if (!empty($order_info[\'customer_group_id\'])) {\r\n                    $customer_group_id = $order_info[\'customer_group_id\'];\r\n                } else {\r\n                    $customer_group_id = $this->config->get(\'config_customer_group_id\');\r\n                }\r\n\r\n                $custom_fields = $this->model_account_custom_field->getCustomFields($customer_group_id);\r\n\r\n                foreach ($custom_fields as $custom_field) {\r\n                    if (isset($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                if (is_array($order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                    if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'payment_custom_field\'][$custom_field[\'custom_field_id\']];\r\n                        }\r\n                    } elseif (isset($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_name\'] = $custom_field[\'name\'];\r\n\r\n                        if ($custom_field[\'custom_field_value\']) {\r\n                            foreach ($custom_field[\'custom_field_value\'] as $custom_field_value) {\r\n                                if (is_array($order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                    if (in_array($custom_field_value[\'custom_field_value_id\'], $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']])) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value_\' . $custom_field_value[\'custom_field_value_id\']] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                } else {\r\n                                    if ($custom_field_value[\'custom_field_value_id\'] == $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']]) {\r\n                                        $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $custom_field_value[\'name\'];\r\n                                    }\r\n                                }\r\n                            }\r\n                        } else {\r\n                            $template->data[\'custom_field_\' . $custom_field[\'custom_field_id\'] . \'_value\'] = $order_info[\'custom_field\'][$custom_field[\'custom_field_id\']];\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n			// Address\r\n            foreach(array(\'payment\', \'shipping\') as $var) {\r\n                if ($order_info[$var . \'_address_format\']) {\r\n                    $format = $order_info[$var . \'_address_format\'];\r\n                } else {\r\n                    $format = \'{firstname} {lastname}\' . \"\\n\" . \'{company}\' . \"\\n\" . \'{address_1}\' . \"\\n\" . \'{address_2}\' . \"\\n\" . \'{city} {postcode}\' . \"\\n\" . \'{zone}\' . \"\\n\" . \'{country}\';\r\n                }\r\n\r\n                $find = array(\r\n                    \'{firstname}\',\r\n                    \'{lastname}\',\r\n                    \'{company}\',\r\n                    \'{address_1}\',\r\n                    \'{address_2}\',\r\n                    \'{city}\',\r\n                    \'{postcode}\',\r\n                    \'{zone}\',\r\n                    \'{zone_code}\',\r\n                    \'{country}\'\r\n                );\r\n\r\n                $replace = array(\r\n                    \'firstname\' => $order_info[$var . \'_firstname\'],\r\n                    \'lastname\'  => $order_info[$var . \'_lastname\'],\r\n                    \'company\'   => $order_info[$var . \'_company\'],\r\n                    \'address_1\' => $order_info[$var . \'_address_1\'],\r\n                    \'address_2\' => $order_info[$var . \'_address_2\'],\r\n                    \'city\'      => $order_info[$var . \'_city\'],\r\n                    \'postcode\'  => $order_info[$var . \'_postcode\'],\r\n                    \'zone\'      => $order_info[$var . \'_zone\'],\r\n                    \'zone_code\' => $order_info[$var . \'_zone_code\'],\r\n                    \'country\'   => $order_info[$var . \'_country\']\r\n                );\r\n\r\n                if (isset($order_info[\'custom_field\'])) {\r\n                    foreach ($order_info[\'custom_field\'] as $custom_field_id => $custom_field) {\r\n                        $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                        $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : \'\';\r\n                    }\r\n                }\r\n\r\n                if (isset($order_info[$var . \'_custom_field\'])) {\r\n                    foreach ($order_info[$var . \'_custom_field\'] as $custom_field_id => $custom_field) {\r\n                        $find[] = \'{custom_field_\' . $custom_field_id . \'}\';\r\n                        $replace[] = isset($custom_field[\'value\']) ? $custom_field[\'value\'] : $custom_field;\r\n                    }\r\n                }\r\n\r\n                $template->data[$var . \'_address\'] = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \'<br />\', preg_replace(array(\"/\\s\\s+/\", \"/\\r\\r+/\", \"/\\n\\n+/\"), \'<br />\', trim(str_replace($find, $replace, $format))));\r\n            }\r\n\r\n		    // Prepared mail: order.update\r\n        }\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"1\"><![CDATA[$mail->send();]]></search>\r\n        <ignoreif><![CDATA[// Send mail: order.update]]></ignoreif>\r\n		<add position=\"replace\"><![CDATA[// Send mail: order.update\r\n		if ($template && $template->check()) {\r\n		    $template->build();\r\n		    $template->hook($mail);\r\n        }\r\n\r\n		$mail->send();\r\n\r\n		$this->model_extension_module_emailtemplate->sent();]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[$mail->setHtml($this->load->view(\'mail/order_edit\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_edit\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/order_edit\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n<file path=\"admin/controller/sale/order.php\" email_template=\"order.update\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$data[\'text_ip_add\'] = ]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n		$this->load->language(\'extension/module/emailtemplate/order\');\r\n\r\n		$data[\'user_token\'] = $this->session->data[\'user_token\'];\r\n\r\n		$data[\'entry_template\'] = $this->language->get(\'entry_template\');\r\n		$data[\'entry_order_summary\'] = $this->language->get(\'entry_order_summary\');\r\n\r\n		$data[\'text_select\'] = $this->language->get(\'text_select\');\r\n\r\n		$data[\'warning_template_content\'] = $this->language->get(\'warning_template_content\');\r\n\r\n		$data[\'language_id\'] = $order_info[\'language_id\'];\r\n		$data[\'store_id\'] = $order_info[\'store_id\'];\r\n\r\n		$this->load->model(\'localisation/language\');\r\n		$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n		$templates = $this->model_extension_module_emailtemplate->getTemplates(array(\r\n			\'emailtemplate_key\' => \'order.update\',\r\n			\'sort\' => \'default\',\r\n			\'order\' => \'ASC\'\r\n		));\r\n\r\n		$data[\'template_options\'] = array();\r\n\r\n		// Select most appropriate template matching most conditions\r\n			$keys = array(\r\n			\'store_id\' => $order_info[\'store_id\'],\r\n			\'language_id\' => $order_info[\'language_id\'],\r\n			\'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n			\'order_status_id\' => $order_info[\'order_status_id\'],\r\n			\'payment_method\' => $order_info[\'payment_code\'],\r\n			\'shipping_method\' => $order_info[\'shipping_code\'],\r\n		);\r\n\r\n		// Give all templates a \'power\'\r\n		$i = 0;\r\n		foreach ($templates as $template) {\r\n			$i++;\r\n			$data[\'template_options\'][$i] = array(\r\n				\'value\' => $template[\'emailtemplate_id\'],\r\n				\'label\' => $template[\'emailtemplate_label\'] . (!empty($template[\'emailtemplate_default\']) ? \' (\' . strip_tags($this->language->get(\'text_default\')) . \')\': \'\'),\r\n				\'order_status_id\' => $template[\'order_status_id\'],\r\n				\'selected\' => false,\r\n				\'power\' => 0,\r\n			);\r\n\r\n			foreach ($keys as $_key => $_value) {\r\n				$data[\'template_options\'][$i][\'power\'] = $data[\'template_options\'][$i][\'power\'] << 1;\r\n\r\n				if (isset($template[$_key]) && $template[$_key] !== \'\' && $template[$_key] == $_value) {\r\n					$data[\'template_options\'][$i][\'power\'] += 1;\r\n				}\r\n			}\r\n		}\r\n\r\n		// Select template with max \'power\'\r\n		if (count($data[\'template_options\']) > 1) {\r\n			$templates_option_power = 0;\r\n\r\n			foreach ($data[\'template_options\'] as $i => $templates_option) {\r\n				if ($templates_option[\'power\'] > $templates_option_power) {\r\n					$templates_option_selected = $i;\r\n				}\r\n				unset($data[\'template_options\'][$i][\'power\']);\r\n			}\r\n\r\n			if (isset($templates_option_selected)) {\r\n				$data[\'template_options\'][$templates_option_selected][\'selected\'] = true;\r\n			}\r\n		}\r\n\r\n		$this->document->addScript(\'view/javascript/summernote/summernote.js\');\r\n		$this->document->addScript(\'view/javascript/summernote/opencart.js\');\r\n		$this->document->addStyle(\'view/javascript/summernote/summernote.css\');\r\n]]></add>\r\n	</operation>\r\n	<operation error=\"skip\">\r\n		<search><![CDATA[nl2br($result[\'comment\'])]]></search>\r\n		<add position=\"replace\"><![CDATA[html_entity_decode($result[\'comment\'], ENT_QUOTES, \'UTF-8\')]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search><![CDATA[nl2br($order_info[\'comment\'])]]></search>\r\n        <add position=\"replace\"><![CDATA[html_entity_decode($order_info[\'comment\'], ENT_QUOTES, \'UTF-8\')]]></add>\r\n    </operation>\r\n	<operation>\r\n		<search><![CDATA[$data[\'vouchers\'][] = array(]]></search>\r\n		<add position=\"after\"><![CDATA[					\'voucher_id\'  => $voucher[\'voucher_id\'],]]></add>\r\n	</operation>\r\n</file>\r\n\r\n<file path=\"admin/view/template/sale/order_info.twig\" email_template=\"order.update\">\r\n    <operation>\r\n        <search index=\"0\"><![CDATA[id=\"input-comment\" class=\"form-control]]></search>\r\n        <add position=\"replace\"><![CDATA[data-toggle=\"summernote\" id=\"input-comment\" class=\"form-control summernote]]></add>\r\n    </operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[id=\"input-notify\"]]></search>\r\n		<add position=\"after\"><![CDATA[                    </div>\r\n                  </div>\r\n                </div>\r\n                <div class=\"form-group form-group-notify\" style=\"display:none\">\r\n                  <label class=\"col-sm-2 control-label\" for=\"input-templates\">{{ entry_template }}</label>\r\n                  <div class=\"col-sm-10\">\r\n                    <select id=\"input-templates\" name=\"emailtemplate_id\" class=\"form-control\">\r\n                      <option value=\"\">{{ text_select }}</option>\r\n                      {% for item in template_options %}\r\n                        <option value=\"{{ item.value }}\" data-order-status=\"{{ item.order_status_id }}\"{{ (item.selected or template_options|length == 1) ? \' selected=\"selected\"\' }}>{{ item.label }}</option>\r\n                      {% endfor %}\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n\r\n                <div class=\"form-group form-group-notify\" style=\"display:none\">\r\n                  <label class=\"col-sm-2 control-label\" for=\"input-order-summary\">{{ entry_order_summary }}</label>\r\n                  <div class=\"col-sm-10\">\r\n                      <div class=\"btn-group btn-group-toggle\" data-toggle=\"buttons\">\r\n                        <label class=\"btn btn-default\">\r\n                          <input type=\"radio\" name=\"order_summary\" value=\"1\"> {{ text_yes }}\r\n                        </label>\r\n                        <label class=\"btn btn-default\">\r\n                          <input type=\"radio\" name=\"order_summary\" value=\"0\"> {{ text_no }}\r\n                        </label>\r\n                      </div>\r\n\r\n                      <div class=\"form-group-order-summary\" style=\"display:none\">\r\n                        <hr />\r\n                        {% for product in products %}\r\n                        <div class=\"checkbox\"><label>\r\n                            <input type=\"checkbox\" name=\"order_summary_products[]\" value=\"{{ product.product_id }}\" checked=\"checked\" />\r\n                            {{ product.name }}\r\n                            {% for option in product.option %}\r\n                            <br />\r\n                            {% if option.type != \'file\' %}\r\n                            &nbsp;<small> - {{ option.name }}: {{ option.value }}</small>\r\n                            {% else %}\r\n                            &nbsp;<small> - {{ option.name }}: <a href=\"{{ option.href }}\">{{ option.value }}</a></small>\r\n                            {% endif %}\r\n                            {% endfor %}\r\n                          </label></div>\r\n                        {% endfor %}\r\n                        {% for voucher in vouchers %}\r\n                        <div class=\"checkbox\"><label>\r\n                            <input type=\"checkbox\" name=\"order_summary_vouchers[]\" value=\"{{ voucher.voucher_id }}\" checked=\"checked\" />\r\n                            {{ voucher.description }}\r\n                          </label>\r\n                        </div>\r\n                        {% endfor %}\r\n                      ]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$(\'#button-history\').on(\'click\', function() {]]></search>\r\n		<add position=\"after\"><![CDATA[  if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n  	  if (CKEDITOR.instances[\"input-comment\"]) {\r\n		  CKEDITOR.instances[\"input-comment\"].updateElement();\r\n	  } else {\r\n		  CKEDITOR.instances[\"comment\"].updateElement();\r\n	  }\r\n  }\r\n\r\n  if ($(\"textarea[name=\'comment\']\").val().replace(/(<([^>]+)>)/ig,\"\") == \'\') {\r\n    $(\"textarea[name=\'comment\']\").val(\'\');\r\n  }]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search><![CDATA[\'&comment=\' +]]></search>\r\n		<add position=\"replace\"><![CDATA[($(\'input[name=\\\'order_summary\\\']:checked\').length ? (\'&order_summary=\' + $(\'input[name=\\\'order_summary\\\']:checked\').val()) : \'\') + (\'&order_summary_products=\' + $(\'input[name=\\\'order_summary_products[]\\\']:checked\').map(function() { return $(this).val(); }).toArray()) + (\'&order_summary_vouchers=\' + $(\'input[name=\\\'order_summary_vouchers[]\\\']:checked\').map(function() { return $(this).val(); }).toArray()) + \'&emailtemplate_id=\' + encodeURIComponent($(\'select[name=\\\'emailtemplate_id\\\']\').val()) + \'&comment=\' +]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search><![CDATA[$(\'textarea[name=\\\'comment\\\']\').val(\'\');]]></search>\r\n		<add position=\"after\"><![CDATA[\r\n			if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n			  if (CKEDITOR.instances[\"input-comment\"]) {\r\n				  CKEDITOR.instances[\"input-comment\"].setData(\'\');\r\n			  } else {\r\n				  CKEDITOR.instances[\"comment\"].setData(\'\');\r\n			  }\r\n	        } else if ($.fn.summernote) {\r\n				$(\'textarea[name=\\\'comment\\\']\').summernote(\'reset\');\r\n			}\r\n\r\n			$(\'input[name=notify]\').prop(\'checked\', false).parent().removeClass(\'active\');\r\n			$(\'input[name=notify][value=\"0\"]\').parent().addClass(\'active\');\r\n\r\n			$(\'.form-group-notify\').hide().each(function(){\r\n              $(this).find(\'input[type=radio][value!=\"0\"]\').prop(\'checked\', false).parent().removeClass(\'active\');\r\n			  $(this).find(\'input[type=radio][value=\"0\"]\').prop(\'checked\', true).change().parent().addClass(\'active\');\r\n			});\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[{{ footer }}]]></search>\r\n		<add position=\"before\"><![CDATA[\r\n<script type=\"text/javascript\"><!--\r\n(function($){\r\n  $(document).ready(function(){\r\n    var $comment = $(\'textarea[name=comment]\');\r\n\r\n    function fetchTemplateComment(id, callback) {\r\n    	if (!id) return false;\r\n\r\n		if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n			var editorName = CKEDITOR.instances[\"input-comment\"] ? \'input-comment\' : \'comment\';\r\n			CKEDITOR.instances[editorName].setData(\'\');\r\n			CKEDITOR.instances[editorName].setReadOnly(true);\r\n		} else if ($.fn.summernote) {\r\n			$comment.summernote(\'code\', \'\');\r\n			$comment.summernote(\'disable\');\r\n		} else {\r\n			$comment.val(\'\');\r\n		}\r\n\r\n        $.ajax({\r\n            url: \'index.php?route=extension/module/emailtemplate/fetch_template&output=comment&user_token={{ user_token }}\',\r\n            type: \'get\',\r\n            data: \'emailtemplate_id=\' + id + \'&store_id={{ store_id }}\' + \'&language_id={{ language_id }}\' + \'&order_id={{ order_id }}\' + \'&order_status_id=\' + $(\'#input-order-status\').val(),\r\n            dataType: \'html\',\r\n            success: function(html) {\r\n                if (html) {\r\n                    $comment.val(html);\r\n\r\n					if (typeof CKEDITOR !== \"undefined\" && (CKEDITOR.instances[\"input-comment\"] || CKEDITOR.instances[\"comment\"])) {\r\n						var editorName = CKEDITOR.instances[\"input-comment\"] ? \'input-comment\' : \'comment\';\r\n						CKEDITOR.instances[editorName].setData(html);\r\n						CKEDITOR.instances[editorName].setReadOnly(false);\r\n					} else if ($.fn.summernote) {\r\n						$comment.summernote(\'code\', html);\r\n						$comment.summernote(\'enable\');\r\n					}\r\n\r\n                    if (callback) callback();\r\n                }\r\n            },\r\n            error: function(xhr, ajaxOptions, thrownError) {\r\n                console.log(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);\r\n            }\r\n        })\r\n    }\r\n\r\n    var $notify_group = $(\'.form-group-notify\');\r\n	var $notify_checkbox = $(\'#input-notify\');\r\n    var $order_status = $(\'#input-order-status\');\r\n    var $template_options = $(\'#input-templates\');\r\n\r\n    $notify_checkbox.on(\'change\', function(){\r\n      if ($notify_checkbox.is(\':checked\')) {\r\n        $notify_group.show();\r\n\r\n        if ($order_status.val()) {\r\n          $order_status.trigger(\'change\');\r\n        }\r\n      } else {\r\n        $notify_group.hide();\r\n      }\r\n    });\r\n\r\n    $order_status.on(\'change\', function(){\r\n      var $template_option = $template_options.find(\'option[data-order-status=\"\' + $order_status.val() + \'\"]:eq(0)\');\r\n      // Select default template\r\n      if ($template_option.length == 0) {\r\n        $template_option = $template_options.find(\':nth-child(2)\');\r\n      }\r\n\r\n      var emailtemplate_id = $template_option.val()\r\n\r\n      if ($notify_checkbox.is(\':checked\')) {\r\n        fetchTemplateComment(emailtemplate_id, function () {\r\n          $template_option.prop(\'selected\', true);\r\n        });\r\n      } else {\r\n        $template_options.val(\'\');\r\n      }\r\n    });\r\n\r\n    $(\'input[name=order_summary]\').on(\'change\', function(){\r\n      $(\'.form-group-order-summary\').toggle($(this).val() == 1 ? true : false);\r\n    });\r\n\r\n    $template_options.on(\'change\', function() {\r\n        var id = $(this).val();\r\n        if (!id) {\r\n          $comment.val(\'\')\r\n        } else {\r\n          if ($comment.val() != \'\' && $comment.val() != \'<p><br></p>\' && !confirm(\"{{ warning_template_content }}\")) {\r\n            $(this).val($.data(this, \'current\'));\r\n            return false;\r\n          }\r\n          $.data(this, \'current\', $(this).val());\r\n          fetchTemplateComment(id);\r\n        }\r\n    });\r\n  });\r\n})(jQuery);\r\n//--></script>]]></add>\r\n	</operation>\r\n</file>\r\n\r\n	<file path=\"catalog/controller/extension/total/voucher.php\" email_template=\"order.voucher\">\r\n	<operation>\r\n	    <search index=\"0\"><![CDATA[$data[\'message\'] = ]]></search>\r\n	    <add position=\"after\"><![CDATA[\r\n	    			// Prepare mail: order.voucher\r\n					$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n					$template_load = array(\r\n					    \'key\' => \'order.voucher\',\r\n					    \'customer_id\' => $order_info[\'customer_id\'],\r\n					    \'customer_group_id\' => $order_info[\'customer_group_id\'],\r\n					    \'language_id\' => $order_info[\'language_id\'],\r\n					    \'store_id\' => $order_info[\'store_id\'],\r\n                        \'payment_method\' => $order_info[\'payment_code\'],\r\n                        \'shipping_method\' => $order_info[\'shipping_code\']\r\n                    );\r\n\r\n					$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n                    if ($template) {\r\n                        $template->addData($voucher);\r\n\r\n                        $template_data = $data;\r\n                        unset($template_data[\'store_name\']);\r\n                        unset($template_data[\'store_url\']);\r\n                        $template->addData($template_data);\r\n\r\n                        $template->addData($order_info, \'order\');\r\n\r\n                        $template->data[\'store_id\'] = $order_info[\'store_id\'];\r\n\r\n                        $template->data[\'language_id\'] = $order_info[\'language_id\'];\r\n\r\n                        $template->data[\'amount\'] = $this->currency->format($voucher[\'amount\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n                        $template->data[\'order_total\'] = $this->currency->format($order_info[\'total\'], $order_info[\'currency_code\'], $order_info[\'currency_value\']);\r\n\r\n                        if ($voucher[\'image\'] && file_exists(DIR_IMAGE . $voucher[\'image\'])) {\r\n                            $template->data[\'image\'] = $template->data[\'store_url\'] . \'image/\' . $voucher[\'image\'];\r\n\r\n                            list($template->data[\'image_width\'], $template->data[\'image_height\']) = getimagesize(DIR_IMAGE . $voucher[\'image\']);\r\n                        }\r\n\r\n                        $template->data[\'text_heading\'] = sprintf($template->data[\'text_heading\'], $template->data[\'store_name\']);\r\n                        $template->data[\'text_subject\'] = sprintf($template->data[\'text_subject\'], $template->data[\'store_name\']);\r\n\r\n                        $template->data[\'voucher_url\'] = $template->data[\'store_url\'];\r\n\r\n                        if (!empty($template->data[\'button_voucher_url\'])) {\r\n                            $template->data[\'voucher_url_text\'] = $template->data[\'button_voucher_url\'];\r\n                        } else {\r\n                            $template->data[\'voucher_url_text\'] = $template->data[\'voucher_url\'];\r\n                        }\r\n					    // Prepared mail: order.voucher\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n	    <search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n	    <add position=\"replace\"><![CDATA[// Send mail: order.voucher\r\n                        if ($template && $template->check()) {\r\n                        	$template->build();\r\n                        	$template->hook($mail);\r\n\r\n                        	$mail->send();\r\n\r\n                        	$this->model_extension_module_emailtemplate->sent();\r\n						}\r\n                    }]]></add>\r\n	</operation>\r\n    <operation error=\"skip\">\r\n        <search index=\"0\"><![CDATA[$mail->setHtml($this->load->view(\'mail/voucher\', $data));]]></search>\r\n        <ignoreif><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/voucher\', $data));]]></ignoreif>\r\n        <add position=\"replace\"><![CDATA[if (empty($template)) $mail->setHtml($this->load->view(\'mail/voucher\', $data));]]></add>\r\n    </operation>\r\n</file>\r\n\r\n	<file path=\"catalog/model/catalog/review.php\" email_template=\"product.review\">\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail = new Mail(]]></search>\r\n		<add position=\"before\"><![CDATA[			// Prepare mail: product.review\r\n			$this->load->model(\'extension/module/emailtemplate\');\r\n\r\n			$template_load = array(\'key\' => \'product.review\');\r\n\r\n			$template = $this->model_extension_module_emailtemplate->load($template_load);\r\n\r\n            if ($template) {\r\n                $template->addData($data, \'review\');\r\n\r\n                $template->addData($product_info, \'product\');\r\n\r\n                if (defined(\'HTTP_ADMIN\')) {\r\n                    $admin_url = HTTP_ADMIN;\r\n                } elseif ($this->config->get(\'config_ssl\')) {\r\n                    $admin_url = $this->config->get(\'config_ssl\') . \'admin/\';\r\n                } else {\r\n                    $admin_url = $this->config->get(\'config_url\') . \'admin/\';\r\n                }\r\n\r\n                $template->data[\'review_approve\'] = $admin_url . \'index.php?route=catalog/review/edit&review_id=\' . $review_id;\r\n\r\n				if ($this->language->get(\'button_review_approve\') && $this->language->get(\'button_review_approve\') != \'button_review_approve\') {\r\n					$template->data[\'review_approve_text\'] =  $this->language->get(\'button_review_approve\');\r\n				} else {\r\n					$template->data[\'review_approve_text\'] =  $template->data[\'review_approve\'];\r\n				}\r\n\r\n                $template->data[\'customer_link\'] = $admin_url . \'index.php?route=customer/customer/edit&filter_name=\' . urlencode($data[\'name\']);\r\n\r\n                if ($this->language->get(\'button_customer_link\') && $this->language->get(\'button_customer_link\') != \'button_customer_link\') {\r\n                    $template->data[\'customer_link_text\'] =  $this->language->get(\'button_customer_link\');\r\n                } else {\r\n                    $template->data[\'customer_link_text\'] =  $template->data[\'customer_link\'];\r\n                }\r\n\r\n				$template->data[\'product_link\'] = $this->url->link(\'product/product\', \'product_id=\' . $product_id);\r\n			    // Prepared mail: product.review\r\n		]]></add>\r\n	</operation>\r\n	<operation>\r\n		<search index=\"0\"><![CDATA[$mail->send();]]></search>\r\n		<add position=\"replace\"><![CDATA[// Send mail: product.review\r\n			    if ($template && $template->check()) {\r\n			    	$template->build();\r\n			    	$template->hook($mail);\r\n\r\n					if ($this->customer && $this->customer->isLogged()) {\r\n						$mail->setReplyTo($this->customer->getEmail());\r\n					}\r\n\r\n					$mail->send();\r\n\r\n					$this->model_extension_module_emailtemplate->sent();\r\n                }\r\n            }]]></add>\r\n	</operation>\r\n</file>\r\n\r\n</modification>', 1, '2021-06-26 09:46:56');
