Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:44:54+00:00 2026-05-29T23:44:54+00:00

Magento stores product options in an encoded string as shown below. I am trying

  • 0

Magento stores product options in an encoded string as shown below. I am trying to figure out how to turn it into a usable object. I have tried eval(‘(‘ + below + ‘)’) without success. It throws an undefined error:

undefined:1
nY3VzdG9tcHJpbnR
^

this is the sting I’m trying to parse:

 a:2:{s:15:"info_buyRequest";a:6:{s:4:"uenc";s:80:"aHR0cDovL2NnY3VzdG9tcHJpbnRpbmcuY29tLzE2eDI0LXByZW1pdW0tZ2FsbGVyeS13cmFwLmh0bWw,";s:7:"product";s:2:"12";s:15:"related_product";s:0:"";s:7:"options";a:2:{i:19;s:2:"16";i:18;a:9:{s:4:"type";s:24:"application/octet-stream";s:5:"title";s:16:"16x24 canvas.jpg";s:10:"quote_path";s:64:"/media/custom_options/quote/57cb4f796670cb680511f6fca1055a9f.jpg";s:10:"order_path";s:64:"/media/custom_options/order/57cb4f796670cb680511f6fca1055a9f.jpg";s:8:"fullpath";s:128:"/mnt/stor13-wc2-dfw1/480123/www.internetswebsite.com/web/content/media/custom_options/quote/57cb4f796670cb680511f6fca1055a9f.jpg";s:4:"size";s:7:"4692319";s:5:"width";i:4050;s:6:"height";i:2850;s:10:"secret_key";s:20:"ee79b5a12bfe9fc6c350";}}s:15:"options_18_file";s:83:"http://internetswebsite.com/media/tmp/uploader/57cb4f796670cb680511f6fca1055a9f.jpg";s:3:"qty";s:1:"1";}s:7:"options";a:2:{i:0;a:7:{s:5:"label";s:11:"Orientation";s:5:"value";s:22:"Landscape (Horizontal)";s:11:"print_value";s:22:"Landscape (Horizontal)";s:9:"option_id";s:2:"19";s:11:"option_type";s:5:"radio";s:12:"option_value";s:2:"16";s:11:"custom_view";b:0;}i:1;a:7:{s:5:"label";s:17:"Upload your photo";s:5:"value";s:162:"<a href="https://internetswebsite.com/sales/download/downloadCustomOption/id/35461/key/ee79b5a12bfe9fc6c350/" target="_blank">16x24 canvas.jpg</a> 4050 x 2850 px.";s:11:"print_value";s:32:"16x24 canvas.jpg 4050 x 2850 px.";s:9:"option_id";s:2:"18";s:11:"option_type";s:4:"file";s:12:"option_value";s:677:"a:10:{s:4:"type";s:24:"application/octet-stream";s:5:"title";s:16:"16x24 canvas.jpg";s:10:"quote_path";s:64:"/media/custom_options/quote/57cb4f796670cb680511f6fca1055a9f.jpg";s:10:"order_path";s:64:"/media/custom_options/order/57cb4f796670cb680511f6fca1055a9f.jpg";s:8:"fullpath";s:128:"/mnt/stor13-wc2-dfw1/480123/www.internetswebsite.com/web/content/media/custom_options/quote/57cb4f796670cb680511f6fca1055a9f.jpg";s:4:"size";s:7:"4692319";s:5:"width";i:4050;s:6:"height";i:2850;s:10:"secret_key";s:20:"ee79b5a12bfe9fc6c350";s:3:"url";a:2:{s:5:"route";s:35:"sales/download/downloadCustomOption";s:6:"params";a:2:{s:2:"id";s:5:"35461";s:3:"key";s:20:"ee79b5a12bfe9fc6c350";}}}";s:11:"custom_view";b:1;}}}

Any idea how to go about this in javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:44:55+00:00Added an answer on May 29, 2026 at 11:44 pm

    May be you should use php 🙂 (unserialize)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am writing a magento product exporter, that writes a couple of attributes into
I have multi-store Magento installation, and different product prices are set in different stores.
I have magento store and a product with a dropdown with 30 options of
I'm having Custom product type product in my Magento store like bookable.so i try
Does anyone know if it's possible to create one of the stores with magento
I keep getting this Magento error emailed to myself: URL: http://mysite.com/sendfriend/product/send/id/1/ IP Address: 66.249.65.69
Im currently working on a custom product list in the Magento backend. Heres the
So, I have a product that has custom options. In this case, its color.
I'm using Magento 1.5 with 3 different stores (same products, though targetted at different
When duplicating a product in the backend in magento the new product status is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.