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}
|
||||
successClicked={successPageClosed}
|
||||
newsletter={newsletter}
|
||||
isWoocommerceActive={window.mailpoet_woocommerce_active}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@@ -8,8 +8,9 @@ function Success(props) {
|
||||
if (!window.has_premium_key) {
|
||||
return (
|
||||
<PitchMss
|
||||
MSS_pitch_illustration_url={props.MSS_pitch_illustration_url}
|
||||
MSSPitchIllustrationUrl={props.MSSPitchIllustrationUrl}
|
||||
onFinish={props.successClicked}
|
||||
isWoocommerceActive={props.isWoocommerceActive}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -25,11 +26,12 @@ function Success(props) {
|
||||
Success.propTypes = {
|
||||
successClicked: PropTypes.func.isRequired,
|
||||
illustrationImageUrl: PropTypes.string.isRequired,
|
||||
MSS_pitch_illustration_url: PropTypes.string.isRequired,
|
||||
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
||||
newsletter: PropTypes.shape({
|
||||
status: PropTypes.string.isRequired,
|
||||
type: PropTypes.string.isRequired,
|
||||
}).isRequired,
|
||||
isWoocommerceActive: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
|
||||
|
@@ -17,7 +17,7 @@ function PitchMss(props) {
|
||||
next={props.onFinish}
|
||||
subscribersCount={25}
|
||||
mailpoetAccountUrl="http://xxx"
|
||||
isWoocommerceActive={true}
|
||||
isWoocommerceActive={props.isWoocommerceActive}
|
||||
/>
|
||||
</WelcomeWizardStepLayoutBody>
|
||||
</div>
|
||||
@@ -27,6 +27,7 @@ function PitchMss(props) {
|
||||
PitchMss.propTypes = {
|
||||
MSSPitchIllustrationUrl: PropTypes.string.isRequired,
|
||||
onFinish: PropTypes.func.isRequired,
|
||||
isWoocommerceActive: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
|
||||
|
@@ -24,8 +24,10 @@
|
||||
var mailpoet_date_storage_format = "Y-m-d";
|
||||
var mailpoet_tracking_enabled = <%= json_encode(tracking_enabled) %>;
|
||||
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
|
||||
|
||||
var has_premium_key = <%= json_encode(has_premium_key) %>;
|
||||
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_automatic_emails = <%= json_encode(automatic_emails) %>;
|
||||
var mailpoet_feature_announcement_has_news = <%= json_encode(feature_announcement_has_news) %>;
|
||||
|
Reference in New Issue
Block a user