0

There are two problems mainly:

  1. my Ajax request not firing on change of postal code in cart. don't know why

  2. When I'm changing postal code on cart checkout page, Ajax request need to be fire on this URL

https://mywebsite.com/rest/default/V1/guest-carts/7da47754b424c67d3fe1684ab713b111/estimate-shipping-methods

the output Ajax I get is following

[{"carrier_code":"fedex","method_code":"FEDEX_GROUND","carrier_title":"Federal Express","method_title":"Ground","amount":36.24,"base_amount":36.24,"available":true,"error_message":"","price_excl_tax":36.24,"price_incl_tax":36.24},{"carrier_code":"fedex","method_code":"FEDEX_2_DAY","carrier_title":"Federal Express","method_title":"2 Day","amount":45.94,"base_amount":45.94,"available":true,"error_message":"","price_excl_tax":45.94,"price_incl_tax":45.94},{"carrier_code":"fedex","method_code":"STANDARD_OVERNIGHT","carrier_title":"Federal Express","method_title":"Standard Overnight","amount":56.38,"base_amount":56.38,"available":true,"error_message":"","price_excl_tax":56.38,"price_incl_tax":56.38},{"carrier_code":"storepickup","method_code":"storepickup","carrier_title":"Store Pickup","method_title":"","amount":0,"base_amount":0,"available":true,"error_message":"","price_excl_tax":0,"price_incl_tax":0}]

My question is how to get this: 7da47754b424c67d3fe1684ab713b111 code to make URL complete. if this code is wrong i enter manually I get error in Ajax

{ "message": "No such entity with %fieldName = %fieldValue", "parameters": { "fieldName": "cartId", "fieldValue": null }

I'm using Magento 2.0.4

Aasim Goriya
5,4622 gold badges30 silver badges54 bronze badges
asked Feb 22, 2018 at 8:04

1 Answer 1

1

This is the masked quote id. You can find it in the database table quote_id_mask

answered Jul 31, 2018 at 5:34

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.