M2 - Add coupon codes for the same ruleMagento coupon codes - only one coupon / guest customerCoupon code isn't workingMagento 2 - There is an event or method to “plug-in” when the coupon is removed from the cart/quote in the checkout flow?In Magento 2, what determines the path used for requirejs?In Magento 2, how to create promo rule for buy one get one in backend for specific custom attribute?Custom Cart Price Rule Actions in Magento 2.2 (Trigger somewhen when a coupon code is redeemd)Can a product's attribute store several values for the same product or do I have to do something else (Magento 1.9)?Magento 2 Item (MagentoVersionsCmsModelHierarchyNode) with the same ID “1” already existsMagento 2 : Coupon codes - auto generateMagneto 2.3.1 'Quantity source' becomes null when create product with the same name
How can an advanced civilization forget how to manufacture its technology?
Cubic programming and beyond?
I quit, and boss offered me 3 month "grace period" where I could still come back
Referring to different instances of the same character in time travel
How do Windows version numbers work?
What is this welding tool I found in my attic?
Matchmaker, Matchmaker, make me a match
Was adding milk to tea started to reduce employee tea break time?
Why would guns not work in the dungeon?
Cops: The Hidden OEIS Substring
QGIS Welcome page: What is 'pin to list' for?
How did the hit man miss?
How to query contacts with no cases, opportunities etc
I have a ruthless DM and I'm considering leaving the party. What are my options to minimize the negative impact to the rest of the group?
Why are they 'nude photos'?
Redirect https to fqdn
Dropping outliers based on "2.5 times the RMSE"
Why did the Japanese attack the Aleutians at the same time as Midway?
Science writing - exact, precise, or accurate
Is Trump personally blocking people on Twitter?
Machine learning and operations research projects
Supporting developers who insist on using their pet language
Keep milk (or milk alternative) for a day without a fridge
Correlation of independent random processes
M2 - Add coupon codes for the same rule
Magento coupon codes - only one coupon / guest customerCoupon code isn't workingMagento 2 - There is an event or method to “plug-in” when the coupon is removed from the cart/quote in the checkout flow?In Magento 2, what determines the path used for requirejs?In Magento 2, how to create promo rule for buy one get one in backend for specific custom attribute?Custom Cart Price Rule Actions in Magento 2.2 (Trigger somewhen when a coupon code is redeemd)Can a product's attribute store several values for the same product or do I have to do something else (Magento 1.9)?Magento 2 Item (MagentoVersionsCmsModelHierarchyNode) with the same ID “1” already existsMagento 2 : Coupon codes - auto generateMagneto 2.3.1 'Quantity source' becomes null when create product with the same name
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database I can see it has created multiple codes which are connected to the same rule.
Is there a way to use existing codes and connect them to a specific rule_id so I don't have to add them piece by piece?
This is how it looks when you add a new rule which creates multiple codes by itself.

magento2 database coupon rules
add a comment |
For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database I can see it has created multiple codes which are connected to the same rule.
Is there a way to use existing codes and connect them to a specific rule_id so I don't have to add them piece by piece?
This is how it looks when you add a new rule which creates multiple codes by itself.

magento2 database coupon rules
add a comment |
For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database I can see it has created multiple codes which are connected to the same rule.
Is there a way to use existing codes and connect them to a specific rule_id so I don't have to add them piece by piece?
This is how it looks when you add a new rule which creates multiple codes by itself.

magento2 database coupon rules
For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database I can see it has created multiple codes which are connected to the same rule.
Is there a way to use existing codes and connect them to a specific rule_id so I don't have to add them piece by piece?
This is how it looks when you add a new rule which creates multiple codes by itself.

magento2 database coupon rules
magento2 database coupon rules
asked Jul 4 at 14:50
n00blyn00bly
1881 silver badge16 bronze badges
1881 silver badge16 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280859%2fm2-add-coupon-codes-for-the-same-rule%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280859%2fm2-add-coupon-codes-for-the-same-rule%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown