Shipping Method Parameters

  • Posts: 42
  • Thank you received: 3
1 year 5 months ago #346878

-- url of the page with the problem -- : eduquay.satumalaysiahosting.com/

Hi there,

I am struggling with decoding shipping parameters that get from the hikashop_shipping table. The shipping params as below:


O:8:"stdClass":41:{s:9:"companyid";s:36:"9e0-42a4-82b6-f31";s:11:"customer_id";s:5:"997";s:10:"passphrase";s:42:"91d98f3fbbb";s:3:"url";s:48:" api.delyva.app/v1.0/service/instantQuote...address";s:62:"JALAN SS 21/50, DAMANSARA UTAMA, 47400 PETALING JAYA, SELANGOR";s:22:"config_sender_postcode";s:5:"47400";s:21:"config_sender_country";s:2:"MY";s:20:"config_sender_pickup";s:1:"Y";s:22:"shipping_vendor_filter";s:2:"10";s:27:"shipping_vendorgroup_filter";s:0:"";s:19:"shipping_percentage";s:1:"0";s:16:"shipping_formula";s:0:"";s:12:"shipping_tax";s:1:"0";s:20:"shipping_per_product";s:1:"0";s:26:"shipping_price_per_product";s:0:"";s:25:"shipping_virtual_included";s:1:"0";s:25:"shipping_override_address";s:1:"0";s:30:"shipping_override_address_text";s:0:"";s:17:"override_tax_zone";s:0:"";s:25:"shipping_warehouse_filter";s:4:"0v10";s:18:"shipping_min_price";s:1:"0";s:18:"shipping_max_price";s:1:"0";s:22:"shipping_price_use_tax";s:1:"1";s:21:"shipping_min_quantity";s:0:"";s:21:"shipping_max_quantity";s:0:"";s:19:"shipping_min_weight";s:1:"0";s:20:"shipping_weight_unit";s:2:"kg";s:19:"shipping_max_weight";s:1:"0";s:19:"shipping_min_volume";s:1:"0";s:18:"shipping_size_unit";s:1:"m";s:19:"shipping_max_volume";s:1:"0";s:18:"shipping_zip_regex";s:0:"";s:19:"shipping_zip_prefix";s:0:"";s:16:"shipping_min_zip";s:0:"";s:16:"shipping_max_zip";s:0:"";s:19:"shipping_zip_suffix";s:0:"";}


Actually, I just want to get certain params and I tried using json_decode but seems like doesn't work, hope can have some ideas on this.

Thanks.

Attachments:
Last edit: 1 year 5 months ago by JF.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 5 months ago #346881

Hi,

It's not a JSON but PHP serialized data. So you need to use instead the unserialize function of PHP:
www.php.net/manual/en/function.unserialize.php

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum