cancel
Showing results for 
Search instead for 
Did you mean: 

Populate Product custom variables using variable in address

SOLVED

Populate Product custom variables using variable in address

My client is wanting to be able to populate custom data in a product page to include information contained in the link.

 

Say we send the customer the following link: http://magentostoreblahblah.com/productpage.html?VAR=DATA

 

Then the product page loads with DATA pre-loaded in the VAR field.  

 

Is this possible?  And what would it take.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Populate Product custom variables using variable in address

Hi @tjintersta1777 

 

Override product detail page file with your theme.

 

And add following code to get value from url:

 


echo $this->getRequest()->getParam('VAR');


get_urldata.png

 

 

 

Issue resolved ?
Please press Kudos and accept as solution.

Problem solved? Click Accept as Solution!

View solution in original post

2 REPLIES 2

Re: Populate Product custom variables using variable in address

Hi @tjintersta1777 

 

Override product detail page file with your theme.

 

And add following code to get value from url:

 


echo $this->getRequest()->getParam('VAR');


get_urldata.png

 

 

 

Issue resolved ?
Please press Kudos and accept as solution.

Problem solved? Click Accept as Solution!

Re: Populate Product custom variables using variable in address

thank you