Magento2 : Data Not saving in Custom TableCreate custom category attribute - Changes not savingJoining Custom flat table with EAV table not WorkingCustom module not saving to Databasemagento2 saving data via observerImport custom csv to custom table with entity_id not savingCustom Attribute is not saving data in databaseI have created an extension to show Customer Company Name in Order grid. But when creating new order, order is not showing in order gridmagento2 : copy sales_order table custom data to sales_order_gridI have created one field using product form field for my price i want save my field value at product creation time from backend magento2Saving Form Data to Custom Table Magento2
Does Lufthansa weigh your carry on luggage?
Why are they 'nude photos'?
Can fluent English speakers distinguish “steel”, “still” and “steal”?
Would dual wielding daggers be a viable choice for a covert bodyguard?
Referring to different instances of the same character in time travel
Misspelling my name on my mathematical publications
For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?
Is anyone advocating the promotion of homosexuality in UK schools?
Are randomly-generated passwords starting with "a" less secure?
Using Newton's shell theorem to accelerate a spaceship
How can I effectively communicate to recruiters that a phone call is not possible?
Why did Harry Potter get a bedroom?
Terry Pratchett book with a lawyer dragon and sheep
Why are all my yellow 2V/20mA LEDs burning out with 330k Ohm resistor?
Integer Lists of Noah
Are neural networks prone to catastrophic forgetting?
Has anyone in space seen or photographed a simple laser pointer from Earth?
Why weren't bootable game disks ever common on the IBM PC?
Graduate student with abysmal English writing skills, how to help
How would vampires avoid contracting diseases?
If a non-friend comes across my Steam Wishlist, how easily can he gift me one of the games?
Confirming the Identity of a (Friendly) Reviewer After the Reviews
Print the last, middle and first character of your code
What steps should I take to lawfully visit the United States as a tourist immediately after visiting on a B-1 visa?
Magento2 : Data Not saving in Custom Table
Create custom category attribute - Changes not savingJoining Custom flat table with EAV table not WorkingCustom module not saving to Databasemagento2 saving data via observerImport custom csv to custom table with entity_id not savingCustom Attribute is not saving data in databaseI have created an extension to show Customer Company Name in Order grid. But when creating new order, order is not showing in order gridmagento2 : copy sales_order table custom data to sales_order_gridI have created one field using product form field for my price i want save my field value at product creation time from backend magento2Saving Form Data to Custom Table Magento2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have created a custom module and trying to save data but not saved data into custom_table
. I don't know why? I compared same code with my previous Modules Everything is same.
Here is my installSchema.php
public function install(MagentoFrameworkSetupSchemaSetupInterface $setup, MagentoFrameworkSetupModuleContextInterface $context)
$installer = $setup;
$installer->startSetup();
if (!$installer->tableExists('table_name'))
$table = $installer->getConnection()->newTable(
$installer->getTable('table_name')
)->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'primary' => true,
'nullable' => false,
'unsigned' => false,
],
'Missing Order ID'
)->addColumn(
'entity_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Qoute ID'
)->addColumn(
'reserved_order_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Reserved Order ID'
)->addColumn(
'customer_email',
MagentoFrameworkDBDdlTable::TYPE_TEXT,
100,
[
'nullable' => false,
],
'Costumer Email'
)->addColumn(
'created_at',
MagentoFrameworkDBDdlTable::TYPE_DATE,
null,
[
'nullable' => false,
],
'Order Date'
)->addColumn(
'base_grand_total',
MagentoFrameworkDBDdlTable::TYPE_DECIMAL,
null,
[
'nullable' => false,
],
'Grand Total'
)->setComment('Missing Orders');
$installer->getConnection()->createTable($table);
$installer->endSetup();
here is my code to save data
public function execute(Observer $observer)
$orderIds = $observer->getEvent()->getOrderIds();
$order = $this->orderFactory->create()->load($orderIds[0]);
$quote = $this->_quoteFactory->create()->load($order->getQuoteId());
$order = null;
if (empty($order))
try
$rowData = $this->_missingOrdersFactory->create();
$rowData->setEntityId($quote->getEntityId());
$rowData->setReservedOrderId($quote->getReservedOrderId());
$rowData->setCustomerEmail($quote->getCustomerEmail());
$rowData->setCreatedAt($quote->getCreatedAt());
$rowData->setBaseGrandTotal($quote->getBaseGrandTotal());
$rowData->save();
echo "<pre>";
print_r($rowData->getData());
exit;
catch (Exception $e)
echo $e->getMessage();
print_r($rowData->getDdata) is returning me
Array
(
[entity_id] => 200
[reserved_order_id] => 000000168
[customer_email] => waqarcui@gmail.com
[created_at] => 2019-07-03 04:29:03
[base_grand_total] => 105.0000
)
Thanks.
magento2 database custom
add a comment |
I have created a custom module and trying to save data but not saved data into custom_table
. I don't know why? I compared same code with my previous Modules Everything is same.
Here is my installSchema.php
public function install(MagentoFrameworkSetupSchemaSetupInterface $setup, MagentoFrameworkSetupModuleContextInterface $context)
$installer = $setup;
$installer->startSetup();
if (!$installer->tableExists('table_name'))
$table = $installer->getConnection()->newTable(
$installer->getTable('table_name')
)->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'primary' => true,
'nullable' => false,
'unsigned' => false,
],
'Missing Order ID'
)->addColumn(
'entity_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Qoute ID'
)->addColumn(
'reserved_order_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Reserved Order ID'
)->addColumn(
'customer_email',
MagentoFrameworkDBDdlTable::TYPE_TEXT,
100,
[
'nullable' => false,
],
'Costumer Email'
)->addColumn(
'created_at',
MagentoFrameworkDBDdlTable::TYPE_DATE,
null,
[
'nullable' => false,
],
'Order Date'
)->addColumn(
'base_grand_total',
MagentoFrameworkDBDdlTable::TYPE_DECIMAL,
null,
[
'nullable' => false,
],
'Grand Total'
)->setComment('Missing Orders');
$installer->getConnection()->createTable($table);
$installer->endSetup();
here is my code to save data
public function execute(Observer $observer)
$orderIds = $observer->getEvent()->getOrderIds();
$order = $this->orderFactory->create()->load($orderIds[0]);
$quote = $this->_quoteFactory->create()->load($order->getQuoteId());
$order = null;
if (empty($order))
try
$rowData = $this->_missingOrdersFactory->create();
$rowData->setEntityId($quote->getEntityId());
$rowData->setReservedOrderId($quote->getReservedOrderId());
$rowData->setCustomerEmail($quote->getCustomerEmail());
$rowData->setCreatedAt($quote->getCreatedAt());
$rowData->setBaseGrandTotal($quote->getBaseGrandTotal());
$rowData->save();
echo "<pre>";
print_r($rowData->getData());
exit;
catch (Exception $e)
echo $e->getMessage();
print_r($rowData->getDdata) is returning me
Array
(
[entity_id] => 200
[reserved_order_id] => 000000168
[customer_email] => waqarcui@gmail.com
[created_at] => 2019-07-03 04:29:03
[base_grand_total] => 105.0000
)
Thanks.
magento2 database custom
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
yes i really did this
– Waqar Ali
Jul 3 at 4:58
add a comment |
I have created a custom module and trying to save data but not saved data into custom_table
. I don't know why? I compared same code with my previous Modules Everything is same.
Here is my installSchema.php
public function install(MagentoFrameworkSetupSchemaSetupInterface $setup, MagentoFrameworkSetupModuleContextInterface $context)
$installer = $setup;
$installer->startSetup();
if (!$installer->tableExists('table_name'))
$table = $installer->getConnection()->newTable(
$installer->getTable('table_name')
)->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'primary' => true,
'nullable' => false,
'unsigned' => false,
],
'Missing Order ID'
)->addColumn(
'entity_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Qoute ID'
)->addColumn(
'reserved_order_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Reserved Order ID'
)->addColumn(
'customer_email',
MagentoFrameworkDBDdlTable::TYPE_TEXT,
100,
[
'nullable' => false,
],
'Costumer Email'
)->addColumn(
'created_at',
MagentoFrameworkDBDdlTable::TYPE_DATE,
null,
[
'nullable' => false,
],
'Order Date'
)->addColumn(
'base_grand_total',
MagentoFrameworkDBDdlTable::TYPE_DECIMAL,
null,
[
'nullable' => false,
],
'Grand Total'
)->setComment('Missing Orders');
$installer->getConnection()->createTable($table);
$installer->endSetup();
here is my code to save data
public function execute(Observer $observer)
$orderIds = $observer->getEvent()->getOrderIds();
$order = $this->orderFactory->create()->load($orderIds[0]);
$quote = $this->_quoteFactory->create()->load($order->getQuoteId());
$order = null;
if (empty($order))
try
$rowData = $this->_missingOrdersFactory->create();
$rowData->setEntityId($quote->getEntityId());
$rowData->setReservedOrderId($quote->getReservedOrderId());
$rowData->setCustomerEmail($quote->getCustomerEmail());
$rowData->setCreatedAt($quote->getCreatedAt());
$rowData->setBaseGrandTotal($quote->getBaseGrandTotal());
$rowData->save();
echo "<pre>";
print_r($rowData->getData());
exit;
catch (Exception $e)
echo $e->getMessage();
print_r($rowData->getDdata) is returning me
Array
(
[entity_id] => 200
[reserved_order_id] => 000000168
[customer_email] => waqarcui@gmail.com
[created_at] => 2019-07-03 04:29:03
[base_grand_total] => 105.0000
)
Thanks.
magento2 database custom
I have created a custom module and trying to save data but not saved data into custom_table
. I don't know why? I compared same code with my previous Modules Everything is same.
Here is my installSchema.php
public function install(MagentoFrameworkSetupSchemaSetupInterface $setup, MagentoFrameworkSetupModuleContextInterface $context)
$installer = $setup;
$installer->startSetup();
if (!$installer->tableExists('table_name'))
$table = $installer->getConnection()->newTable(
$installer->getTable('table_name')
)->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'primary' => true,
'nullable' => false,
'unsigned' => false,
],
'Missing Order ID'
)->addColumn(
'entity_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Qoute ID'
)->addColumn(
'reserved_order_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'nullable' => false,
'unsigned' => false,
],
'Reserved Order ID'
)->addColumn(
'customer_email',
MagentoFrameworkDBDdlTable::TYPE_TEXT,
100,
[
'nullable' => false,
],
'Costumer Email'
)->addColumn(
'created_at',
MagentoFrameworkDBDdlTable::TYPE_DATE,
null,
[
'nullable' => false,
],
'Order Date'
)->addColumn(
'base_grand_total',
MagentoFrameworkDBDdlTable::TYPE_DECIMAL,
null,
[
'nullable' => false,
],
'Grand Total'
)->setComment('Missing Orders');
$installer->getConnection()->createTable($table);
$installer->endSetup();
here is my code to save data
public function execute(Observer $observer)
$orderIds = $observer->getEvent()->getOrderIds();
$order = $this->orderFactory->create()->load($orderIds[0]);
$quote = $this->_quoteFactory->create()->load($order->getQuoteId());
$order = null;
if (empty($order))
try
$rowData = $this->_missingOrdersFactory->create();
$rowData->setEntityId($quote->getEntityId());
$rowData->setReservedOrderId($quote->getReservedOrderId());
$rowData->setCustomerEmail($quote->getCustomerEmail());
$rowData->setCreatedAt($quote->getCreatedAt());
$rowData->setBaseGrandTotal($quote->getBaseGrandTotal());
$rowData->save();
echo "<pre>";
print_r($rowData->getData());
exit;
catch (Exception $e)
echo $e->getMessage();
print_r($rowData->getDdata) is returning me
Array
(
[entity_id] => 200
[reserved_order_id] => 000000168
[customer_email] => waqarcui@gmail.com
[created_at] => 2019-07-03 04:29:03
[base_grand_total] => 105.0000
)
Thanks.
magento2 database custom
magento2 database custom
edited Jul 3 at 5:16
Sarfaraj Sipai
5231 gold badge7 silver badges20 bronze badges
5231 gold badge7 silver badges20 bronze badges
asked Jul 3 at 4:39
Waqar AliWaqar Ali
13713 bronze badges
13713 bronze badges
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
yes i really did this
– Waqar Ali
Jul 3 at 4:58
add a comment |
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
yes i really did this
– Waqar Ali
Jul 3 at 4:58
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
yes i really did this
– Waqar Ali
Jul 3 at 4:58
yes i really did this
– Waqar Ali
Jul 3 at 4:58
add a comment |
1 Answer
1
active
oldest
votes
You're not setting the 'identity' => true
in your installschema.php
, that's why it won't auto-increment since you're not adding data to row_id
that may be the reason your data is not saving.
Your primary key field should be like this.
->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'identity' => true,
'nullable' => false,
'primary' => true,
'unsigned' => true,
],
'Missing Order ID'
)
Hope it helps.
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in$order
and$quote
variable
– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
|
show 4 more comments
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%2f280542%2fmagento2-data-not-saving-in-custom-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You're not setting the 'identity' => true
in your installschema.php
, that's why it won't auto-increment since you're not adding data to row_id
that may be the reason your data is not saving.
Your primary key field should be like this.
->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'identity' => true,
'nullable' => false,
'primary' => true,
'unsigned' => true,
],
'Missing Order ID'
)
Hope it helps.
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in$order
and$quote
variable
– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
|
show 4 more comments
You're not setting the 'identity' => true
in your installschema.php
, that's why it won't auto-increment since you're not adding data to row_id
that may be the reason your data is not saving.
Your primary key field should be like this.
->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'identity' => true,
'nullable' => false,
'primary' => true,
'unsigned' => true,
],
'Missing Order ID'
)
Hope it helps.
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in$order
and$quote
variable
– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
|
show 4 more comments
You're not setting the 'identity' => true
in your installschema.php
, that's why it won't auto-increment since you're not adding data to row_id
that may be the reason your data is not saving.
Your primary key field should be like this.
->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'identity' => true,
'nullable' => false,
'primary' => true,
'unsigned' => true,
],
'Missing Order ID'
)
Hope it helps.
You're not setting the 'identity' => true
in your installschema.php
, that's why it won't auto-increment since you're not adding data to row_id
that may be the reason your data is not saving.
Your primary key field should be like this.
->addColumn(
'row_id',
MagentoFrameworkDBDdlTable::TYPE_INTEGER,
null,
[
'identity' => true,
'nullable' => false,
'primary' => true,
'unsigned' => true,
],
'Missing Order ID'
)
Hope it helps.
edited Jul 3 at 5:42
answered Jul 3 at 4:46
Mohit RaneMohit Rane
4037 bronze badges
4037 bronze badges
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in$order
and$quote
variable
– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
|
show 4 more comments
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in$order
and$quote
variable
– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
if i add data to database using sql its showing fine in admin Grid
– Waqar Ali
Jul 3 at 4:49
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in
$order
and $quote
variable– Mohit Rane
Jul 3 at 4:54
ok can you share your whole file code for saving data rather than piece of code and can you please tell me what are you getting in
$order
and $quote
variable– Mohit Rane
Jul 3 at 4:54
please check updated answer
– Mohit Rane
Jul 3 at 5:09
please check updated answer
– Mohit Rane
Jul 3 at 5:09
what's your event name?
– Mohit Rane
Jul 3 at 5:20
what's your event name?
– Mohit Rane
Jul 3 at 5:20
1
1
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
checkout_onepage_controller_success_action
– Waqar Ali
Jul 3 at 5:22
|
show 4 more comments
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%2f280542%2fmagento2-data-not-saving-in-custom-table%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
Can you please make sure that you are getting empty $order?
– poojan sharma
Jul 3 at 4:43
yes my code interrupts at exit() it means if condtion is true
– Waqar Ali
Jul 3 at 4:44
Did you do cache flush?
– Nasir Perwaiz
Jul 3 at 4:55
yes i really did this
– Waqar Ali
Jul 3 at 4:58