How can we make purchase order optional in magento 2.1?Purchase order carrier: show even if order amount is zeroMagento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”How to disable purchase order for guest checkout?Magento 2 make purchase order number optionalRestore deleted purchase orderchange Purchase order to dropdown menuhow to display purchase order number in customer dashboard frontend?How to send a purchase email to the suppliers manually by clicking a button on order detail page in Magento 2?
How will losing mobility of one hand affect my career as a programmer?
Hide Select Output from T-SQL
Go Pregnant or Go Home
Is expanding the research of a group into machine learning as a PhD student risky?
Understanding "audieritis" in Psalm 94
Modify casing of marked letters
Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
Using parameter substitution on a Bash array
What defines a dissertation?
is this a spam?
Failed to fetch jessie backports repository
Increase performance creating Mandelbrot set in python
Can somebody explain Brexit in a few child-proof sentences?
Is it correct to write "is not focus on"?
What is the oldest known work of fiction?
Bash method for viewing beginning and end of file
Curses work by shouting - How to avoid collateral damage?
Is there a problem with hiding "forgot password" until it's needed?
Can a monster with multiattack use this ability if they are missing a limb?
Why is delta-v is the most useful quantity for planning space travel?
How do I define a right arrow with bar in LaTeX?
How does residential electricity work?
Is there any easy technique written in Bhagavad GITA to control lust?
How can we make purchase order optional in magento 2.1?
Purchase order carrier: show even if order amount is zeroMagento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”How to disable purchase order for guest checkout?Magento 2 make purchase order number optionalRestore deleted purchase orderchange Purchase order to dropdown menuhow to display purchase order number in customer dashboard frontend?How to send a purchase email to the suppliers manually by clicking a button on order detail page in Magento 2?
Is there a way to make the purchase order number in the checkout page optional?
without filling purchase order number text field, I want to place an order.
magento-2.1 payment-methods purchase-order
add a comment |
Is there a way to make the purchase order number in the checkout page optional?
without filling purchase order number text field, I want to place an order.
magento-2.1 payment-methods purchase-order
add a comment |
Is there a way to make the purchase order number in the checkout page optional?
without filling purchase order number text field, I want to place an order.
magento-2.1 payment-methods purchase-order
Is there a way to make the purchase order number in the checkout page optional?
without filling purchase order number text field, I want to place an order.
magento-2.1 payment-methods purchase-order
magento-2.1 payment-methods purchase-order
asked Dec 4 '18 at 21:11
kirankiran
10011
10011
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
For this you need to remove the data-validate="required:true" from the input field.
File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.
add a comment |
You need to override the Model,
in your di.xml
preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"
namespace VendorModuleModel;
class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder
public function validate()
//parent::validate();
if (empty($this->getInfoInstance()->getPoNumber()))
//throw new LocalizedException(__('Purchase order number is a required field.'));
return $this;
and in your ca
New contributor
add a comment |
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%2f252441%2fhow-can-we-make-purchase-order-optional-in-magento-2-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For this you need to remove the data-validate="required:true" from the input field.
File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.
add a comment |
For this you need to remove the data-validate="required:true" from the input field.
File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.
add a comment |
For this you need to remove the data-validate="required:true" from the input field.
File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.
For this you need to remove the data-validate="required:true" from the input field.
File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.
answered Mar 8 at 5:59
tanutanu
11
11
add a comment |
add a comment |
You need to override the Model,
in your di.xml
preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"
namespace VendorModuleModel;
class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder
public function validate()
//parent::validate();
if (empty($this->getInfoInstance()->getPoNumber()))
//throw new LocalizedException(__('Purchase order number is a required field.'));
return $this;
and in your ca
New contributor
add a comment |
You need to override the Model,
in your di.xml
preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"
namespace VendorModuleModel;
class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder
public function validate()
//parent::validate();
if (empty($this->getInfoInstance()->getPoNumber()))
//throw new LocalizedException(__('Purchase order number is a required field.'));
return $this;
and in your ca
New contributor
add a comment |
You need to override the Model,
in your di.xml
preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"
namespace VendorModuleModel;
class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder
public function validate()
//parent::validate();
if (empty($this->getInfoInstance()->getPoNumber()))
//throw new LocalizedException(__('Purchase order number is a required field.'));
return $this;
and in your ca
New contributor
You need to override the Model,
in your di.xml
preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"
namespace VendorModuleModel;
class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder
public function validate()
//parent::validate();
if (empty($this->getInfoInstance()->getPoNumber()))
//throw new LocalizedException(__('Purchase order number is a required field.'));
return $this;
and in your ca
New contributor
New contributor
answered yesterday
codealliance_devcodealliance_dev
1
1
New contributor
New contributor
add a comment |
add a comment |
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%2f252441%2fhow-can-we-make-purchase-order-optional-in-magento-2-1%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