Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new setting for order complete title, change default texts #547

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/components/forms/summit-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SummitForm extends React.Component {
this.toggleSection = this.toggleSection.bind(this);
}

componentDidUpdate(prevProps, prevState, snapshot) {
componentDidUpdate(prevProps) {
const state = {};
const {
errors,
Expand Down Expand Up @@ -1240,6 +1240,22 @@ class SummitForm extends React.Component {
</div>
</div>
</div>
<div className="row form-group">
<div className="col-md-6">
<label htmlFor="REG_LITE_ORDER_COMPLETE_TITLE">
{T.translate("edit_summit.reg_lite_order_complete_title")}
</label>
<TextInputWithCounter
className="form-control"
maxLength={50}
id="REG_LITE_ORDER_COMPLETE_TITLE"
value={
regLiteMarketingSettings?.REG_LITE_ORDER_COMPLETE_TITLE?.value
}
onChange={this.handleChange}
/>
</div>
</div>
<div className="row form-group">
<div className="col-md-6">
<label htmlFor="REG_LITE_INITIAL_ORDER_COMPLETE_STEP_1ST_PARAGRAPH">
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
"reg_lite_initial_order_complete_step_2nd_paragraph_info": "2nd Paragraph shown on Order Complete Step When is the first order of the Buyer.",
"reg_lite_initial_order_complete_btn_label": "Initial Order Complete Button",
"reg_lite_initial_order_complete_btn_label_info": "Order Complete Button Text shown on Order Complete Step When is the first order of the Buyer.",
"reg_lite_order_complete_title": "Order Complete Title",
"reg_lite_order_complete_step_1st_paragraph": "Order Complete 1st Paragraph",
"reg_lite_order_complete_step_1st_paragraph_info": "1st Paragraph shown on Order Complete Step When is not the first order of the Buyer.",
"reg_lite_order_complete_step_2nd_paragraph": "Order Complete 2nd Paragraph",
Expand Down
8 changes: 6 additions & 2 deletions src/reducers/summits/current-summit-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,21 @@ const DEFAULT_REG_LITE_MARKETING_SETTINGS = {
REG_LITE_SHOW_COMPANY_INPUT: { id: 0, value: true },
REG_LITE_COMPANY_DDL_PLACEHOLDER: { id: 0, value: "Select a company" },
REG_LITE_SHOW_COMPANY_INPUT_DEFAULT_OPTIONS: { id: 0, value: false },
REG_LITE_ORDER_COMPLETE_TITLE: {
id: 0,
value: "Payment Processed"
},
REG_LITE_INITIAL_ORDER_COMPLETE_STEP_1ST_PARAGRAPH: {
id: 0,
value:
"A ticket has been assigned to you. To complete your additional ticket details, please click the \"{button}\" button."
"Ticket(s) have been assigned to you. To activate your ticket(s) you must answer your attendee questions. Click the \"{button}\" button below."
},
REG_LITE_INITIAL_ORDER_COMPLETE_STEP_2ND_PARAGRAPH: {
id: 0,
value:
"If you wish to transfer your assigned ticket, close this window and visit the \"My Orders/Tickets\" tab in the top navigation bar. "
},
REG_LITE_INITIAL_ORDER_COMPLETE_BTN_LABEL: { id: 0, value: "Finish Now" },
REG_LITE_INITIAL_ORDER_COMPLETE_BTN_LABEL: { id: 0, value: "Activate Now" },
REG_LITE_ORDER_COMPLETE_STEP_1ST_PARAGRAPH: {
id: 0,
value:
Expand Down
Loading