i created a product with customizable options like this:

enter image description here

and i've successfully create a quote like this:

$store = $this->storeManager->getStore();
$websiteId = $this->storeManager->getStore()->getWebsiteId();
$customer = $this->_customerFactory->create();
$quote = $this->quote->create();  
$customer = $this->_customerRepoInterface->getById($customer->getEntityId());

foreach ($productsOrder as $productOrder) {
  $productId = $productOrder['product_id'];
  $qty = $productOrder['qty'];
  $product = $this->_product->load($productId);
  $price = $product->getPrice();


$shippingAddress = $quote->getShippingAddress();

I need to insert the product customizable options value when i create the quote, but how to do it?

  • Old, but did you find the solution ? – Morgan Tartreau May 20 '19 at 10:23

Your Answer

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

Browse other questions tagged or ask your own question.