Pass if woocommerce is active to MSS pitch
[MAILPOET-2142]
This commit is contained in:
committed by
Jack Kitterhing
parent
08f564b459
commit
bedde4994a
@@ -33,6 +33,7 @@ function renderSuccess(newsletter, testingPassed) {
|
|||||||
MSSPitchIllustrationUrl={window.MSS_pitch_illustration_url}
|
MSSPitchIllustrationUrl={window.MSS_pitch_illustration_url}
|
||||||
successClicked={successPageClosed}
|
successClicked={successPageClosed}
|
||||||
newsletter={newsletter}
|
newsletter={newsletter}
|
||||||
|
isWoocommerceActive={window.mailpoet_woocommerce_active}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -8,8 +8,9 @@ function Success(props) {
|
|||||||
if (!window.has_premium_key) {
|
if (!window.has_premium_key) {
|
||||||
return (
|
return (
|
||||||
<PitchMss
|
<PitchMss
|
||||||
MSS_pitch_illustration_url={props.MSS_pitch_illustration_url}
|
MSSPitchIllustrationUrl={props.MSSPitchIllustrationUrl}
|
||||||
onFinish={props.successClicked}
|
onFinish={props.successClicked}
|
||||||
|
isWoocommerceActive={props.isWoocommerceActive}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -25,11 +26,12 @@ function Success(props) {
|
|||||||
Success.propTypes = {
|
Success.propTypes = {
|
||||||
successClicked: PropTypes.func.isRequired,
|
successClicked: PropTypes.func.isRequired,
|
||||||
illustrationImageUrl: PropTypes.string.isRequired,
|
illustrationImageUrl: PropTypes.string.isRequired,
|
||||||
MSS_pitch_illustration_url: PropTypes.string.isRequired,
|
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
||||||
newsletter: PropTypes.shape({
|
newsletter: PropTypes.shape({
|
||||||
status: PropTypes.string.isRequired,
|
status: PropTypes.string.isRequired,
|
||||||
type: PropTypes.string.isRequired,
|
type: PropTypes.string.isRequired,
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
|
isWoocommerceActive: PropTypes.bool.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ function PitchMss(props) {
|
|||||||
next={props.onFinish}
|
next={props.onFinish}
|
||||||
subscribersCount={25}
|
subscribersCount={25}
|
||||||
mailpoetAccountUrl="http://xxx"
|
mailpoetAccountUrl="http://xxx"
|
||||||
isWoocommerceActive={true}
|
isWoocommerceActive={props.isWoocommerceActive}
|
||||||
/>
|
/>
|
||||||
</WelcomeWizardStepLayoutBody>
|
</WelcomeWizardStepLayoutBody>
|
||||||
</div>
|
</div>
|
||||||
@@ -27,6 +27,7 @@ function PitchMss(props) {
|
|||||||
PitchMss.propTypes = {
|
PitchMss.propTypes = {
|
||||||
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
||||||
onFinish: PropTypes.func.isRequired,
|
onFinish: PropTypes.func.isRequired,
|
||||||
|
isWoocommerceActive: PropTypes.bool.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -24,8 +24,10 @@
|
|||||||
var mailpoet_date_storage_format = "Y-m-d";
|
var mailpoet_date_storage_format = "Y-m-d";
|
||||||
var mailpoet_tracking_enabled = <%= json_encode(tracking_enabled) %>;
|
var mailpoet_tracking_enabled = <%= json_encode(tracking_enabled) %>;
|
||||||
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
|
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
|
||||||
|
|
||||||
var has_premium_key = <%= json_encode(has_premium_key) %>;
|
var has_premium_key = <%= json_encode(has_premium_key) %>;
|
||||||
var MSS_pitch_illustration_url = '<%= cdn_url('welcome-wizard/illu-pitch-mss.20190912.png') %>';
|
var MSS_pitch_illustration_url = '<%= cdn_url('welcome-wizard/illu-pitch-mss.20190912.png') %>';
|
||||||
|
|
||||||
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
||||||
var mailpoet_automatic_emails = <%= json_encode(automatic_emails) %>;
|
var mailpoet_automatic_emails = <%= json_encode(automatic_emails) %>;
|
||||||
var mailpoet_feature_announcement_has_news = <%= json_encode(feature_announcement_has_news) %>;
|
var mailpoet_feature_announcement_has_news = <%= json_encode(feature_announcement_has_news) %>;
|
||||||
|
Reference in New Issue
Block a user