not able to read parameters in Magento 2.2.6dbModel read resource does not implement...
Why are the books in the Game of Thrones citadel library shelved spine inwards?
Why do no American passenger airlines still operate dedicated cargo flights?
Caruana vs Carlsen game 10 (WCC) why not 18...Nxb6?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
awk + sum all numbers
Word or phrase for showing great skill at something WITHOUT formal training in it
Can we use the stored gravitational potential energy of a building to produce power?
Early credit roll before the end of the film
Table formatting top left corner caption
Pronunciation of umlaut vowels in the history of German
Advice for a new journal editor
Why avoid shared user accounts?
Writing a character who is going through a civilizing process without overdoing it?
How can animals be objects of ethics without being subjects as well?
Can I write a book of my D&D game?
If I delete my router's history can my ISP still provide it to my parents?
What is the wife of a henpecked husband called?
What's a good word to describe a public place that looks like it wouldn't be rough?
How to remove lines through the legend markers in ListPlot?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
Could a phylactery of a lich be a mirror or does it have to be a box?
How to say "Brexit" in Latin?
Eww, those bytes are gross
Digits in an algebraic irrational number
not able to read parameters in Magento 2.2.6
dbModel read resource does not implement Zend_Db_Adapter_AbstractMagento Not able to locate response classmain.CRITICAL: Plugin class doesn't existMagento2 (v2.2) Error Login Admin + FrontendMagento 2: Add a product to the cart programmaticallyAdd to cart button freezes and nothing is put in basketMagento 2.2.6 Customer Password ResetI have created one field using product form field for my price i want save my field value at product creation time from backend magento2magento 2.2.6 installation error?Magento 2.2.6 installation error
How to read 'aref' parameter while creating new Magento account using :
http://mydomain.in/customer/account/create/?aref=88987990
I have implemented as below:
use MagentoFrameworkEventObserver;
use MagentoFrameworkAppRequestInterface;
/**
* This is the method that fires when 'customer_register_success' event runs.
*
* @param Observer $observer
*/
public function execute( Observer $observer ) {
// Write to default log file: var/log/system.log
$this->_logger->info('printing inside RegisterSuccess execute');
$postData = $this->_request->getPostValue();
$this->_logger->info('reached 1');
if($postData) {
$this->_logger->info('got $postData!!!');
}
$allParams = $this->_request->getParams();
$this->_logger->info('reached 2');
if($allParams) {
$this->_logger->info('got $allParams!!!');
$this->_logger->log(100,print_r($allParams,true));
}
$aref = $this->_request->getParam('aref', false);
$this->_logger->info('reached 3');
if($aref) {
$this->_logger->info('got referrer!!!');
}
$this->_logger->info('reached 4');
}
Now when I am creating the new account with
http://mydomain.in/customer/account/create/?aref=88987990
it's giving logs below:
[2018-11-26 05:02:27] main.INFO: printing inside RegisterSuccess
execute [] []
[2018-11-26 05:02:27] main.INFO: reached 1 [] []
[2018-11-26 05:02:27] main.INFO: got $postData!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 2 [] []
[2018-11-26 05:02:27] main.INFO: got $allParams!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 3 [] []
[2018-11-26 05:02:27] main.INFO: reached 4 [] []
but it's not giving 'aref' value. What am I doing wrong?
error magento2.2.6
add a comment |
How to read 'aref' parameter while creating new Magento account using :
http://mydomain.in/customer/account/create/?aref=88987990
I have implemented as below:
use MagentoFrameworkEventObserver;
use MagentoFrameworkAppRequestInterface;
/**
* This is the method that fires when 'customer_register_success' event runs.
*
* @param Observer $observer
*/
public function execute( Observer $observer ) {
// Write to default log file: var/log/system.log
$this->_logger->info('printing inside RegisterSuccess execute');
$postData = $this->_request->getPostValue();
$this->_logger->info('reached 1');
if($postData) {
$this->_logger->info('got $postData!!!');
}
$allParams = $this->_request->getParams();
$this->_logger->info('reached 2');
if($allParams) {
$this->_logger->info('got $allParams!!!');
$this->_logger->log(100,print_r($allParams,true));
}
$aref = $this->_request->getParam('aref', false);
$this->_logger->info('reached 3');
if($aref) {
$this->_logger->info('got referrer!!!');
}
$this->_logger->info('reached 4');
}
Now when I am creating the new account with
http://mydomain.in/customer/account/create/?aref=88987990
it's giving logs below:
[2018-11-26 05:02:27] main.INFO: printing inside RegisterSuccess
execute [] []
[2018-11-26 05:02:27] main.INFO: reached 1 [] []
[2018-11-26 05:02:27] main.INFO: got $postData!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 2 [] []
[2018-11-26 05:02:27] main.INFO: got $allParams!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 3 [] []
[2018-11-26 05:02:27] main.INFO: reached 4 [] []
but it's not giving 'aref' value. What am I doing wrong?
error magento2.2.6
add a comment |
How to read 'aref' parameter while creating new Magento account using :
http://mydomain.in/customer/account/create/?aref=88987990
I have implemented as below:
use MagentoFrameworkEventObserver;
use MagentoFrameworkAppRequestInterface;
/**
* This is the method that fires when 'customer_register_success' event runs.
*
* @param Observer $observer
*/
public function execute( Observer $observer ) {
// Write to default log file: var/log/system.log
$this->_logger->info('printing inside RegisterSuccess execute');
$postData = $this->_request->getPostValue();
$this->_logger->info('reached 1');
if($postData) {
$this->_logger->info('got $postData!!!');
}
$allParams = $this->_request->getParams();
$this->_logger->info('reached 2');
if($allParams) {
$this->_logger->info('got $allParams!!!');
$this->_logger->log(100,print_r($allParams,true));
}
$aref = $this->_request->getParam('aref', false);
$this->_logger->info('reached 3');
if($aref) {
$this->_logger->info('got referrer!!!');
}
$this->_logger->info('reached 4');
}
Now when I am creating the new account with
http://mydomain.in/customer/account/create/?aref=88987990
it's giving logs below:
[2018-11-26 05:02:27] main.INFO: printing inside RegisterSuccess
execute [] []
[2018-11-26 05:02:27] main.INFO: reached 1 [] []
[2018-11-26 05:02:27] main.INFO: got $postData!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 2 [] []
[2018-11-26 05:02:27] main.INFO: got $allParams!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 3 [] []
[2018-11-26 05:02:27] main.INFO: reached 4 [] []
but it's not giving 'aref' value. What am I doing wrong?
error magento2.2.6
How to read 'aref' parameter while creating new Magento account using :
http://mydomain.in/customer/account/create/?aref=88987990
I have implemented as below:
use MagentoFrameworkEventObserver;
use MagentoFrameworkAppRequestInterface;
/**
* This is the method that fires when 'customer_register_success' event runs.
*
* @param Observer $observer
*/
public function execute( Observer $observer ) {
// Write to default log file: var/log/system.log
$this->_logger->info('printing inside RegisterSuccess execute');
$postData = $this->_request->getPostValue();
$this->_logger->info('reached 1');
if($postData) {
$this->_logger->info('got $postData!!!');
}
$allParams = $this->_request->getParams();
$this->_logger->info('reached 2');
if($allParams) {
$this->_logger->info('got $allParams!!!');
$this->_logger->log(100,print_r($allParams,true));
}
$aref = $this->_request->getParam('aref', false);
$this->_logger->info('reached 3');
if($aref) {
$this->_logger->info('got referrer!!!');
}
$this->_logger->info('reached 4');
}
Now when I am creating the new account with
http://mydomain.in/customer/account/create/?aref=88987990
it's giving logs below:
[2018-11-26 05:02:27] main.INFO: printing inside RegisterSuccess
execute [] []
[2018-11-26 05:02:27] main.INFO: reached 1 [] []
[2018-11-26 05:02:27] main.INFO: got $postData!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 2 [] []
[2018-11-26 05:02:27] main.INFO: got $allParams!!! [] []
[2018-11-26 05:02:27] main.INFO: reached 3 [] []
[2018-11-26 05:02:27] main.INFO: reached 4 [] []
but it's not giving 'aref' value. What am I doing wrong?
error magento2.2.6
error magento2.2.6
edited 2 mins ago
Teja Bhagavan Kollepara
2,96341847
2,96341847
asked Nov 26 '18 at 5:46
Prince FBPrince FB
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
try to get like
$aref = $this->_request->getParam('aref');
OR
$aref = $this->getRequest()->getParam('aref');
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
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%2f251271%2fnot-able-to-read-parameters-in-magento-2-2-6%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
try to get like
$aref = $this->_request->getParam('aref');
OR
$aref = $this->getRequest()->getParam('aref');
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
add a comment |
try to get like
$aref = $this->_request->getParam('aref');
OR
$aref = $this->getRequest()->getParam('aref');
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
add a comment |
try to get like
$aref = $this->_request->getParam('aref');
OR
$aref = $this->getRequest()->getParam('aref');
try to get like
$aref = $this->_request->getParam('aref');
OR
$aref = $this->getRequest()->getParam('aref');
answered Nov 26 '18 at 5:53
HiteshHitesh
1,2931423
1,2931423
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
add a comment |
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
tried as you said but no result. any further solution?
– Prince FB
Nov 26 '18 at 6:16
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%2f251271%2fnot-able-to-read-parameters-in-magento-2-2-6%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