1

Actually I was exploring the tables required for addToCart feature. Just came across this 'value' column in sales_flat_quote_item_option, it has some json value but not sure from where its getting populated and what all value it holds. For eg. 'a:4:{s:4:\"uenc\";s:124:\"aHR0cDovL21hZ2VudG8tMS42LjAuMC1yYzIubG9jYWwvaW5kZXgucGhwL2VsZWN0cm9uaWNzL2NlbGwtcGhvbmVzL2JsYWNrYmVycnktODEwMC1wZWFybC5odG1s\";s:7:\"product\";s:2:\"17\";s:15:\"related_product\";s:0:\"\";s:3:\"qty\";s:1:\"1\";}' .

Can somebody explain the values json holds ? Like what is 'uenc','s:124' etc.

Thanks

2

You need unserialize($str) with it. It return a array.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.