Guest Cart Paypal Payment Steps: Magento 2 REST API

In this post, I am going to explain how to perform guest cart Paypal payment steps in Magento 2 application.

Paying an amount in the Magento 2 store through a guest customer account is essential or improves your customer experience.

Paying via PayPal Payments inside the Magento store is also an important part for guest customers.

Through this post, we will go to know how to add items inside cutout for any guest customer and save shipping information and how to do any payment.

 

Magento 2 Guest Cart PayPal Payment Steps

Checking out guest customers for the Magento website is required for mobile applications.

Through this post, we will tell the guest customer the steps to add an item cart through rest api then save shipping information inside it using rest API.

In the last step, the guest customer will make the payment via PayPal payment at the checkout page to make the payment using the REST API.

Then after the PayPal payment is completed, it will also show the massage of its response on the success page.

 

Read more: Configure PayPal in Magento 2 : How to Integrate PayPal

 

Step 1: Get Admin Access Token

In the first step, the admin will get the access token of the login, then in the second step, the access token will be used.

To get the access token we will send admin details of the Magento store ie admin user and password inside the body and in return, we will get an access token.

Endpoint:

https://wishusucess.com/rest/V1/integration/admin/token

Method: POST

Header: Not required

Get Admin Access Token

Response:

rw1y20up27hrzcu1l6lp4t6uitsnczag

 

Step 2: Create Empty Cart for The Guest Customer

Now using the admin access token we will create an empty card for the guest customer.

Then we will get a quote id for a guest card through this API as a response.

Endpoint:

https://wishusucess.com/index.php/rest/V1/guest-carts/

Method: POST

Header: Not required

Guest Cart PayPal Payment Steps

Response:

hQDMOwbCqcub25qSfQccL3bFLTsDGSaC

 

Step 3: Add or Update Items in Cart

The REST API we hit in the second step yielded a quote ID.

Quote ID will be used for Add to Cart Items or Update Items of Guest Cart of Guest Customer.

To add cart item, inside the body will send the quote id as well as product details like SKU item quantity, etc.

In the header, the admin token will also be sent for authorization.

Now we will hit the guest customer add to cart Rest API, after that, we will get the response and in that response, the item which we mentioned in the body will be added.

Endpoint:

https://wishusucess.com/index.php/rest/V1/guest-carts/w2CFwWlzAkhnym999IBdQl8LBp9r6sdE/items

Method: POST

Header:

  • Content-Type: application/json
  • Authorization: Bearer Admin_Token

Body: 

{ "cartItem": { "quote_id": "w2CFwWlzAkhnym999IBdQl8LBp9r6sdE", "sku": "accessories1231", "qty": 1 } }

Add Update Cart Item REST API

 

Step 4: Get The Cart Details

Now we will hit by adding the quote id to the end of the rest API. We will get the cart detail of the guest customer using this api.

In this detail, you will get the product name, price, item ID, product type, etc. by using this cart detail Magento 2 rest API.

Endpoint

https://wishusucess.com/index.php/rest/V1/guest-carts/ewWBDaATec0fKEo15lZkGzEiaoZ1p6sh

Method: GET

Header:

  • Content-Type: application/json
  • Authorization: Bearer Admin_Token

Body: 

Not required

Get the Cart Details REST API

Response:

{
"id": 2271,
"created_at": "2022-02-11 06:22:24",
"updated_at": "2022-02-11 06:24:47",
"is_active": true,
"is_virtual": false,
"items": [
{
"item_id": 1009,
"sku": "accessories1231",
"qty": 1,
"name": "accessories mono c",
"price": 133,
"product_type": "simple",
"quote_id": "2271",
"extension_attributes": {
"image_url": "https://wishusucess.com/pub/media/catalog/product/cache/54139b022fb7bb8c324a752eac907829/b/a/bags_9.png"
}
}
],
"items_count": 1,
"items_qty": 1,
"customer": {
"email": null,
"firstname": null,
"lastname": null
},
"billing_address": {
"id": 4706,
"region": null,
"region_id": null,
"region_code": null,
"country_id": null,
"street": [
""
],
"telephone": null,
"postcode": null,
"city": null,
"firstname": null,
"lastname": null,
"email": null,
"same_as_billing": 0,
"save_in_address_book": 0
},
"orig_order_id": 0,
"currency": {
"global_currency_code": "USD",
"base_currency_code": "USD",
"store_currency_code": "USD",
"quote_currency_code": "USD",
"store_to_base_rate": 0,
"store_to_quote_rate": 0,
"base_to_global_rate": 1,
"base_to_quote_rate": 1
},
"customer_is_guest": false,
"customer_note_notify": true,
"customer_tax_class_id": 3,
"store_id": 1,
"extension_attributes": {
"shipping_assignments": [
{
"shipping": {
"address": {
"id": 4707,
"region": null,
"region_id": null,
"region_code": null,
"country_id": null,
"street": [
""
],
"telephone": null,
"postcode": null,
"city": null,
"firstname": null,
"lastname": null,
"email": null,
"same_as_billing": 1,
"save_in_address_book": 0
},
"method": null
},
"items": [
{
"item_id": 1009,
"sku": "accessories1231",
"qty": 1,
"name": "accessories mono c",
"price": 133,
"product_type": "simple",
"quote_id": "2271",
"extension_attributes": {
"image_url": "https://wishusucess.com/pub/media/catalog/product/cache/54139b022fb7bb8c324a752eac907829/b/a/bags_9.png"
}
}
]
}
]
}
}

 

Step 5: Add Shipping Information to The Cart

Through this REST API, we will save the shipping address to which the product is to be delivered to the customer i.e. use this rectify to save the shipping address.

This REST API will serve to save the shipping address for the guest customer on the store.

When we will get the response, the payment methods available in the store will be shown in that response.

The kind of payment method that Magento store is providing will be visible as an available payment method response.

Now payment can be done by selecting that payment method in the next step.

Endpoint:

https://wishusucess.com/index.php/rest/V1/guest-carts/ewWBDaATec0fKEo15lZkGzEiaoZ1p6sh/shipping-information

Method: POST

Header:

  • Content-Type: application/json
  • Authorization: Bearer Admin_Token

Body: 

{
"addressInformation": {
"billingAddress": {
"region": "UP",
"region_id": 566,
"country_id": "IN",
"street": [
"Botanical Garden Metro, Noida"
],
"company": "Wishusucess",
"telephone": "1111111",
"postcode": "201301",
"city": "Noida",
"firstname": "Hemamt",
"lastname": "Singh",
"email": "cs.hemantsingh@gmail.com",
"prefix": "address_",
"region_code": "UP"
},
"shippingAddress": {
"region": "UP",
"region_id": 566,
"country_id": "IN",
"street": [
"Botanical Garden Metro, Noida"
],
"company": "Wishusucess",
"telephone": "1111111",
"postcode": "201301",
"city": "Noida",
"firstname": "Hemant",
"lastname": "Singh",
"email": "cs.hemantsingh@gmail.com",
"prefix": "address_",
"region_code": "UP",
"sameAsBilling": 1
},
"shippingCarrierCode": "flatrate",
"shippingMethodCode": "flatrate"
}
}

Add Shipping Information for Guest Cart PayPal Payment Steps

Response:

{
"payment_methods": [
{
"code": "paypal_express",
"title": "PayPal Credit (Paypal Express)"
},
{
"code": "paypal_express",
"title": "PayPal Express Checkout"
}
],
"totals": {
"grand_total": 133,
"base_grand_total": 133,
"subtotal": 133,
"base_subtotal": 133,
"discount_amount": 0,
"base_discount_amount": 0,
"subtotal_with_discount": 133,
"base_subtotal_with_discount": 133,
"shipping_amount": 0,
"base_shipping_amount": 0,
"shipping_discount_amount": 0,
"base_shipping_discount_amount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"weee_tax_applied_amount": null,
"shipping_tax_amount": 0,
"base_shipping_tax_amount": 0,
"subtotal_incl_tax": 133,
"shipping_incl_tax": 0,
"base_shipping_incl_tax": 0,
"base_currency_code": "USD",
"quote_currency_code": "USD",
"items_qty": 1,
"items": [
{
"item_id": 1009,
"price": 133,
"base_price": 133,
"qty": 1,
"row_total": 133,
"base_row_total": 133,
"row_total_with_discount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"tax_percent": 0,
"discount_amount": 0,
"base_discount_amount": 0,
"discount_percent": 0,
"price_incl_tax": 133,
"base_price_incl_tax": 133,
"row_total_incl_tax": 133,
"base_row_total_incl_tax": 133,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "accessories mono c"
}
],
"total_segments": [
{
"code": "subtotal",
"title": "Subtotal",
"value": 133
},
{
"code": "shipping",
"title": "Shipping & Handling (By DEN - By DEN)",
"value": 0
},
{
"code": "tax",
"title": "Tax",
"value": 0,
"extension_attributes": {
"tax_grandtotal_details": []
}
},
{
"code": "grand_total",
"title": "Grand Total",
"value": 133,
"area": "footer"
}
]
}
}

 

Step 6: Add Payment Information And Place The Order

Now add the payment option in the body and hit the rest api.

You will get a response.

Endpoint:

https://wishusucess.com/index.php/rest/V1/guest-carts/ewWBDaATec0fKEo15lZkGzEiaoZ1p6sh/order

Method: PUT

Header:

  • Content-Type: application/json
  • Authorization: Bearer Admin_Token

Body: 

{ "paymentMethod": { "method": "paypal_express" } }

Payment Information API Magento 2

Response:

1

 

Step 7: Complete PayPal Payment - Guest Cart Paypal payment Steps

Now follow the below step to complete the transaction.

Now click on the link given below to complete your PayPal payment.

Then in the next step follow the step by step PayPal payment mentioned in the post

How to Make Payment Using PayPal REST API in Magento 2

 

 

Similar Posts:

Get Customer Detail Using Email ID in Magento 2 REST API

Get Customer Detail Using Email ID in Magento 2 REST API

When we make a mobile application, then we need many types of API at that time. In order to develop a mobile application, there is a Magento 2 Customer Detail REST API named order detail generation using email.

Whatever product is ordered on the magento2 eCommerce platform, if you want to extract that product order details using email id, then you can use the rest API given below.

If we want to get customer order details through email id, then you can easily get the detail via email id rest API.

Under the order details, all the payment details will be shown and the status of the order will show how many products you have ordered so far.

What is the status of your every order i.e. if ever your status has been successful then it will appear as successful and if your order was pending or you have canceled your order then that order will also show you in the response?

 

Get Order Detail REST API Magento 2

There are two ways to get the Magento 2 customer order details via rest API while developing the mobile application.

  • Get customer order detail via Email ID
  • Get customer detail via Order ID

Here, We will try to get the order details in both ways and check both the APIs alternately on postman.com to see what response we are getting.

 

Magento 2 Get Customer Detail REST API Via Email ID

As you can see in the response below I have entered the customer email parameter id inside of REST API Prams and all the products ordered from this email id are easily visible in the response.

Total count is also showing via using this resp API, Payment information is also visible by whom the payment has been made and billing address shipping address is also visible.

You can also get the method used while ordering the product using order detail rest api.

Endpoint:

http://wishusucess.com/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=customer_email&searchCriteria[filter_groups][0][filters][0][value]=cs.hemantsingh@gmail.com

Method: GET

Header:

  • Authorization: bearer <admin_token>
  • content-type: application/json

Body:

Not Required

Customer Detail Using Email ID in Magento 2

 

Response:

{
"items": [
{
"base_currency_code": "USD",
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_grand_total": 200,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_shipping_amount": 0,
"base_shipping_discount_amount": 0,
"base_shipping_discount_tax_compensation_amnt": 0,
"base_shipping_incl_tax": 0,
"base_shipping_invoiced": 0,
"base_shipping_tax_amount": 0,
"base_subtotal": 200,
"base_subtotal_incl_tax": 200,
"base_subtotal_invoiced": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"base_total_due": 0,
"base_total_invoiced": 200,
"base_total_invoiced_cost": 0,
"base_total_paid": 200,
"base_to_global_rate": 1,
"base_to_order_rate": 1,
"billing_address_id": 198,
"created_at": "2022-01-13 06:46:19",
"customer_email": "cs.hemantsingh@gmail.com",
"customer_group_id": 0,
"customer_is_guest": 1,
"customer_note_notify": 1,
"discount_amount": 0,
"discount_invoiced": 0,
"email_sent": 1,
"entity_id": 99,
"global_currency_code": "USD",
"grand_total": 200,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"increment_id": "000000138",
"is_virtual": 0,
"order_currency_code": "USD",
"protect_code": "a04608837596c6736a143b98497134a1",
"quote_id": 1110,
"remote_ip": "14.102.51.229",
"shipping_amount": 0,
"shipping_description": "By DEN - By DEN",
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 0,
"shipping_invoiced": 0,
"shipping_tax_amount": 0,
"state": "processing",
"status": "processing",
"store_currency_code": "USD",
"store_id": 1,
"store_name": "Main Website\nMain Website Store\nDefault Store View",
"store_to_base_rate": 0,
"store_to_order_rate": 0,
"subtotal": 200,
"subtotal_incl_tax": 200,
"subtotal_invoiced": 200,
"tax_amount": 0,
"tax_invoiced": 0,
"total_due": 0,
"total_invoiced": 200,
"total_item_count": 1,
"total_paid": 200,
"total_qty_ordered": 2,
"updated_at": "2022-01-13 06:47:13",
"weight": 200,
"x_forwarded_for": "14.102.51.229",
"items": [
{
"amount_refunded": 0,
"base_amount_refunded": 0,
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_original_price": 100,
"base_price": 100,
"base_price_incl_tax": 100,
"base_row_invoiced": 200,
"base_row_total": 200,
"base_row_total_incl_tax": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"created_at": "2022-01-13 06:46:19",
"discount_amount": 0,
"discount_invoiced": 0,
"discount_percent": 0,
"free_shipping": 0,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"is_qty_decimal": 0,
"is_virtual": 0,
"item_id": 144,
"name": "Accessories monogram D",
"no_discount": 0,
"order_id": 99,
"original_price": 100,
"price": 100,
"price_incl_tax": 100,
"product_id": 17,
"product_type": "simple",
"qty_canceled": 0,
"qty_invoiced": 2,
"qty_ordered": 2,
"qty_refunded": 0,
"qty_shipped": 0,
"quote_item_id": 568,
"row_invoiced": 200,
"row_total": 200,
"row_total_incl_tax": 200,
"row_weight": 200,
"sku": "Accessories monogram D",
"store_id": 1,
"tax_amount": 0,
"tax_invoiced": 0,
"tax_percent": 0,
"updated_at": "2022-01-13 06:46:19",
"weee_tax_applied": "[]",
"weight": 100
}
],
"billing_address": {
"address_type": "billing",
"city": "Noida",
"country_id": "IN",
"email": "cs.hemantsingh@gmail.com",
"entity_id": 198,
"firstname": "Hemant",
"lastname": "Singh",
"parent_id": 99,
"postcode": "95070",
"region": "Uttar Pradesh",
"region_code": "UP",
"region_id": 566,
"street": [
"New test"
],
"telephone": null
},
"payment": {
"account_status": null,
"additional_information": [
"0",
"1",
"",
"TUZYUGM3ERY3Q",
"cs.hemantsingh@gmail.com",
"unverified",
"confirmed",
"133ea25fc4520",
"TUZYUGM3ERY3Q",
"EC-98T36492VK521913U",
"PayPal Express Checkout",
null,
"Eligible",
"completed",
"None"
],
"amount_authorized": 200,
"amount_ordered": 200,
"amount_paid": 200,
"base_amount_authorized": 200,
"base_amount_ordered": 200,
"base_amount_paid": 200,
"base_amount_paid_online": 200,
"base_shipping_amount": 0,
"base_shipping_captured": 0,
"cc_exp_year": "0",
"cc_last4": null,
"cc_ss_start_month": "0",
"cc_ss_start_year": "0",
"entity_id": 99,
"last_trans_id": "9LN125666F286773U",
"method": "paypal_express",
"parent_id": 99,
"shipping_amount": 0,
"shipping_captured": 0
},
"status_histories": [
{
"comment": "IPN \"Completed\" Registered notification about captured amount of $200.00. Transaction ID: \"<a target=\"_blank\" href=\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=9LN125666F286773U\">9LN125666F286773U</a>\"",
"created_at": "2022-01-13 06:46:37",
"entity_id": 44,
"entity_name": "order",
"is_customer_notified": null,
"is_visible_on_front": 0,
"parent_id": 99,
"status": "processing"
},
{
"comment": "Captured amount of $200.00 online. Transaction ID: \"<a target=\"_blank\" href=\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=9LN125666F286773U\">9LN125666F286773U</a>\"",
"created_at": "2022-01-13 06:46:19",
"entity_id": 43,
"entity_name": "invoice",
"is_customer_notified": null,
"is_visible_on_front": 0,
"parent_id": 99,
"status": "processing"
}
],
"extension_attributes": {
"shipping_assignments": [
{
"shipping": {
"address": {
"address_type": "shipping",
"city": "Noida",
"country_id": "IN",
"email": "cs.hemantsingh@gmail.com",
"entity_id": 197,
"firstname": "Hemant",
"lastname": "Singh",
"parent_id": 99,
"postcode": "302021",
"region": "Uttar Pradesh",
"region_code": "UP",
"region_id": 566,
"street": [
"New test"
],
"telephone": null
},
"method": "flatrate_flatrate",
"total": {
"base_shipping_amount": 0,
"base_shipping_discount_amount": 0,
"base_shipping_discount_tax_compensation_amnt": 0,
"base_shipping_incl_tax": 0,
"base_shipping_invoiced": 0,
"base_shipping_tax_amount": 0,
"shipping_amount": 0,
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 0,
"shipping_invoiced": 0,
"shipping_tax_amount": 0
}
},
"items": [
{
"amount_refunded": 0,
"base_amount_refunded": 0,
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_original_price": 100,
"base_price": 100,
"base_price_incl_tax": 100,
"base_row_invoiced": 200,
"base_row_total": 200,
"base_row_total_incl_tax": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"created_at": "2022-01-13 06:46:19",
"discount_amount": 0,
"discount_invoiced": 0,
"discount_percent": 0,
"free_shipping": 0,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"is_qty_decimal": 0,
"is_virtual": 0,
"item_id": 144,
"name": "Accessories monogram D",
"no_discount": 0,
"order_id": 99,
"original_price": 100,
"price": 100,
"price_incl_tax": 100,
"product_id": 17,
"product_type": "simple",
"qty_canceled": 0,
"qty_invoiced": 2,
"qty_ordered": 2,
"qty_refunded": 0,
"qty_shipped": 0,
"quote_item_id": 568,
"row_invoiced": 200,
"row_total": 200,
"row_total_incl_tax": 200,
"row_weight": 200,
"sku": "Accessories monogram D",
"store_id": 1,
"tax_amount": 0,
"tax_invoiced": 0,
"tax_percent": 0,
"updated_at": "2022-01-13 06:46:19",
"weee_tax_applied": "[]",
"weight": 100
}
]
}
],
"payment_additional_info": [
{
"key": "paypal_express_checkout_shipping_overridden",
"value": "0"
},
{
"key": "button",
"value": "1"
},
{
"key": "paypal_express_checkout_shipping_method",
"value": ""
},
{
"key": "paypal_payer_id",
"value": "TUZYUGM3ERY3Q"
},
{
"key": "paypal_payer_email",
"value": "cs.hemantsingh@gmail.com"
},
{
"key": "paypal_payer_status",
"value": "unverified"
},
{
"key": "paypal_address_status",
"value": "confirmed"
},
{
"key": "paypal_correlation_id",
"value": "133ea25fc4520"
},
{
"key": "paypal_express_checkout_payer_id",
"value": "TUZYUGM3ERY3Q"
},
{
"key": "paypal_express_checkout_token",
"value": "EC-98T36492VK521913U"
},
{
"key": "method_title",
"value": "PayPal Express Checkout"
},
{
"key": "paypal_express_checkout_redirect_required",
"value": "null"
},
{
"key": "paypal_protection_eligibility",
"value": "Eligible"
},
{
"key": "paypal_payment_status",
"value": "completed"
},
{
"key": "paypal_pending_reason",
"value": "None"
}
],
"applied_taxes": [],
"item_applied_taxes": []
}
}
],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "customer_email",
"value": "cs.hemantsingh@gmail.com",
"condition_type": "eq"
}
]
}
]
},
"total_count": 1
}

 

 

View Order By Order Id via Magento 2 REST API

Magento 2 provides a REST API to get the order detail like payment information, payment status, payment method, shipping address, billing address, etc. using order id.

If order detail information is to be retrieved on the basis of order id, then we will use order view via order id API for that.

Lastly, we will enter the order id and hit the API, then we will get all the details of the order as our response

Endpoint:

http://wishusucess.com/rest/V1/orders/99

Method: GET

  • Authorization: Bearer admin_token
  • Content-Type: application/json

Body:

Not required

Customer Detail REST API

Response:

{
"base_currency_code": "USD",
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_grand_total": 200,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_shipping_amount": 0,
"base_shipping_discount_amount": 0,
"base_shipping_discount_tax_compensation_amnt": 0,
"base_shipping_incl_tax": 0,
"base_shipping_invoiced": 0,
"base_shipping_tax_amount": 0,
"base_subtotal": 200,
"base_subtotal_incl_tax": 200,
"base_subtotal_invoiced": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"base_total_due": 0,
"base_total_invoiced": 200,
"base_total_invoiced_cost": 0,
"base_total_paid": 200,
"base_to_global_rate": 1,
"base_to_order_rate": 1,
"billing_address_id": 198,
"created_at": "2022-01-13 06:46:19",
"customer_email": "test456@tech9logy.in",
"customer_group_id": 0,
"customer_is_guest": 1,
"customer_note_notify": 1,
"discount_amount": 0,
"discount_invoiced": 0,
"email_sent": 1,
"entity_id": 99,
"global_currency_code": "USD",
"grand_total": 200,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"increment_id": "000000138",
"is_virtual": 0,
"order_currency_code": "USD",
"protect_code": "a04608837596c6736a143b98497134a1",
"quote_id": 1110,
"remote_ip": "14.102.51.229",
"shipping_amount": 0,
"shipping_description": "By DEN - By DEN",
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 0,
"shipping_invoiced": 0,
"shipping_tax_amount": 0,
"state": "processing",
"status": "processing",
"store_currency_code": "USD",
"store_id": 1,
"store_name": "Main Website\nMain Website Store\nDefault Store View",
"store_to_base_rate": 0,
"store_to_order_rate": 0,
"subtotal": 200,
"subtotal_incl_tax": 200,
"subtotal_invoiced": 200,
"tax_amount": 0,
"tax_invoiced": 0,
"total_due": 0,
"total_invoiced": 200,
"total_item_count": 1,
"total_paid": 200,
"total_qty_ordered": 2,
"updated_at": "2022-01-13 06:47:13",
"weight": 200,
"x_forwarded_for": "14.102.51.229",
"items": [
{
"amount_refunded": 0,
"base_amount_refunded": 0,
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_original_price": 100,
"base_price": 100,
"base_price_incl_tax": 100,
"base_row_invoiced": 200,
"base_row_total": 200,
"base_row_total_incl_tax": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"created_at": "2022-01-13 06:46:19",
"discount_amount": 0,
"discount_invoiced": 0,
"discount_percent": 0,
"free_shipping": 0,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"is_qty_decimal": 0,
"is_virtual": 0,
"item_id": 144,
"name": "Accessories monogram D",
"no_discount": 0,
"order_id": 99,
"original_price": 100,
"price": 100,
"price_incl_tax": 100,
"product_id": 17,
"product_type": "simple",
"qty_canceled": 0,
"qty_invoiced": 2,
"qty_ordered": 2,
"qty_refunded": 0,
"qty_shipped": 0,
"quote_item_id": 568,
"row_invoiced": 200,
"row_total": 200,
"row_total_incl_tax": 200,
"row_weight": 200,
"sku": "Accessories monogram D",
"store_id": 1,
"tax_amount": 0,
"tax_invoiced": 0,
"tax_percent": 0,
"updated_at": "2022-01-13 06:46:19",
"weee_tax_applied": "[]",
"weight": 100
}
],
"billing_address": {
"address_type": "billing",
"city": "Noida",
"country_id": "US",
"email": "cs.hemantsingh@gmail.com",
"entity_id": 198,
"firstname": "Hemant",
"lastname": "Singh",
"parent_id": 99,
"postcode": "302021",
"region": "Uttar Pradesh",
"region_code": "UP",
"region_id": 566,
"street": [
"New test"
],
"telephone": null
},
"payment": {
"account_status": null,
"additional_information": [
"0",
"1",
"",
"TUZYUGM3ERY3Q",
"cs.hemantsingh@gmail.com",
"unverified",
"confirmed",
"133ea25fc4520",
"TUZYUGM3ERY3Q",
"EC-98T36492VK521913U",
"PayPal Express Checkout",
null,
"Eligible",
"completed",
"None"
],
"amount_authorized": 200,
"amount_ordered": 200,
"amount_paid": 200,
"base_amount_authorized": 200,
"base_amount_ordered": 200,
"base_amount_paid": 200,
"base_amount_paid_online": 200,
"base_shipping_amount": 0,
"base_shipping_captured": 0,
"cc_exp_year": "0",
"cc_last4": null,
"cc_ss_start_month": "0",
"cc_ss_start_year": "0",
"entity_id": 99,
"last_trans_id": "9LN125666F286773U",
"method": "paypal_express",
"parent_id": 99,
"shipping_amount": 0,
"shipping_captured": 0
},
"status_histories": [
{
"comment": "IPN \"Completed\" Registered notification about captured amount of $200.00. Transaction ID: \"<a target=\"_blank\" href=\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=9LN125666F286773U\">9LN125666F286773U</a>\"",
"created_at": "2022-01-13 06:46:37",
"entity_id": 44,
"entity_name": "order",
"is_customer_notified": null,
"is_visible_on_front": 0,
"parent_id": 99,
"status": "processing"
},
{
"comment": "Captured amount of $200.00 online. Transaction ID: \"<a target=\"_blank\" href=\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=9LN125666F286773U\">9LN125666F286773U</a>\"",
"created_at": "2022-01-13 06:46:19",
"entity_id": 43,
"entity_name": "invoice",
"is_customer_notified": null,
"is_visible_on_front": 0,
"parent_id": 99,
"status": "processing"
}
],
"extension_attributes": {
"shipping_assignments": [
{
"shipping": {
"address": {
"address_type": "shipping",
"city": "Noida",
"country_id": "IN",
"email": "cs.hemantsingh@gmail.com",
"entity_id": 197,
"firstname": "Hemant",
"lastname": "Singh",
"parent_id": 99,
"postcode": "302021",
"region": "Uttar Pradesh",
"region_code": "UP",
"region_id": 566,
"street": [
"New test"
],
"telephone": null
},
"method": "flatrate_flatrate",
"total": {
"base_shipping_amount": 0,
"base_shipping_discount_amount": 0,
"base_shipping_discount_tax_compensation_amnt": 0,
"base_shipping_incl_tax": 0,
"base_shipping_invoiced": 0,
"base_shipping_tax_amount": 0,
"shipping_amount": 0,
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 0,
"shipping_invoiced": 0,
"shipping_tax_amount": 0
}
},
"items": [
{
"amount_refunded": 0,
"base_amount_refunded": 0,
"base_discount_amount": 0,
"base_discount_invoiced": 0,
"base_discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_invoiced": 0,
"base_original_price": 100,
"base_price": 100,
"base_price_incl_tax": 100,
"base_row_invoiced": 200,
"base_row_total": 200,
"base_row_total_incl_tax": 200,
"base_tax_amount": 0,
"base_tax_invoiced": 0,
"created_at": "2022-01-13 06:46:19",
"discount_amount": 0,
"discount_invoiced": 0,
"discount_percent": 0,
"free_shipping": 0,
"discount_tax_compensation_amount": 0,
"discount_tax_compensation_invoiced": 0,
"is_qty_decimal": 0,
"is_virtual": 0,
"item_id": 144,
"name": "Accessories monogram D",
"no_discount": 0,
"order_id": 99,
"original_price": 100,
"price": 100,
"price_incl_tax": 100,
"product_id": 17,
"product_type": "simple",
"qty_canceled": 0,
"qty_invoiced": 2,
"qty_ordered": 2,
"qty_refunded": 0,
"qty_shipped": 0,
"quote_item_id": 568,
"row_invoiced": 200,
"row_total": 200,
"row_total_incl_tax": 200,
"row_weight": 200,
"sku": "Accessories monogram D",
"store_id": 1,
"tax_amount": 0,
"tax_invoiced": 0,
"tax_percent": 0,
"updated_at": "2022-01-13 06:46:19",
"weee_tax_applied": "[]",
"weight": 100
}
]
}
],
"payment_additional_info": [
{
"key": "paypal_express_checkout_shipping_overridden",
"value": "0"
},
{
"key": "button",
"value": "1"
},
{
"key": "paypal_express_checkout_shipping_method",
"value": ""
},
{
"key": "paypal_payer_id",
"value": "TUZYUGM3ERY3Q"
},
{
"key": "paypal_payer_email",
"value": "cs.hemantsingh@gmail.com"
},
{
"key": "paypal_payer_status",
"value": "unverified"
},
{
"key": "paypal_address_status",
"value": "confirmed"
},
{
"key": "paypal_correlation_id",
"value": "133ea25fc4520"
},
{
"key": "paypal_express_checkout_payer_id",
"value": "TUZYUGM3ERY3Q"
},
{
"key": "paypal_express_checkout_token",
"value": "EC-98T36492VK521913U"
},
{
"key": "method_title",
"value": "PayPal Express Checkout"
},
{
"key": "paypal_express_checkout_redirect_required",
"value": "null"
},
{
"key": "paypal_protection_eligibility",
"value": "Eligible"
},
{
"key": "paypal_payment_status",
"value": "completed"
},
{
"key": "paypal_pending_reason",
"value": "None"
}
],
"applied_taxes": [],
"item_applied_taxes": []
}
}

 

Conclusion:

If you want to get order information of customers then you can use the default rest API of Magento 2 for that.

We can get the order details in two ways one is on the basis of email id and the other on the basis of order id.

 

 

Related Posts:

Product Search REST API: List of REST APIs in Magento 2

How to Create REST API in Magento 2, For Beginners Guide

Magento 2.4.3 Installation: Steps By Step Guide for XAMPP

The latest version of Magento is out again, so in this post, we will know the Magento 2.4.3 installation steps on the windows operating system.

Will install Magento on XAMPP server as well as install elastic search first in order to complete the setup of installation.

 

Steps By Step Guide of Magento 2.4.3 Installation

I am telling you the steps of Magento installation, following which you can install jump server on your windows operating system and how to use Magento 2.4.3.

Elasticsearch is mandatory in all the onwards versions of Magento 2.4, so first, we have to configure elastic search.

As we know that Magento 2.4 version can be installed only through composer installation.

GUI installations have been removed from all versions of Magento 2.4, so we have to install composer as well.

Let us know how many steps are followed by which you can install agents on your local system.

 

Step 1: Install XAMPP Server

In the first step, you have to set up the XAMPP server on your windows. You can use the below link to download the xampp.

Download XAMM Server for the Magento 2.4.3

After the download, you have to install this software and then start Apache and MySQL.

Xampp Server Instllation on Window for Magento 2.4.3 Installation

Step 2: Install Composer

Composer is required for all versions of Magento 24.

Installation without composer is not provided in upcoming versions of 2.4.

To install composer you can download composer from the given link.

Install Composer on Window

After your composer is successfully installed, the screen will show something like this.

Now after this you have to go to the next stage by clicking on it.

Finish Composer Installation

If you want to verify whether the composer is installed correctly or not or whether the composer is running in your system.

For this, you go to the root directory of Magento and type composer version there, then your screen will look something like this.

 composer --version

Check composer version for Magento 2.4.3 Installation

 

Step 3: Install Elastic Search on Window

Elasticsearch is required for catalog product search in Magento 2.4 and onwards version.

The core development team of Magento 2.4 does not provide you with the installation facility without Elasticsearch.

To install Elasticsearch you can download it from the given link.

 

Put the apps file in the htdocs folder of the jump server and then extract it there.

Elastic Search Start on XAMPP for Magento 2.4.3 Installation

Then go to the bin folder of elastic search and right-click on the second file and run as administrator, your elastic search will start.

Start Elasticsearch

Verify Running Status of Elastic Search

If you want to confirm whether your elastic search is running successfully in your jump server or not.

For this, you have to open the browser and enter the localhost and port number in the URL of that browser, then you will see the screen something like the image below.

localhost:9200

Check Running Elasticsearch Status

System Requirements for Elasticsearch

Elasticsearch consumes a lot of RAM. For this you must have at least 8GB RAM, otherwise, it will not run properly and your system will hang.

Therefore, the recommended advice to you is that if your computer or laptop has less than 8GB of RAM, then do not install Elasticsearch.

Elasticsearch RAM Consumption

 

 

Step 4: Configure php.ini in XAMPP

There are some important extensions that we need to keep enabled for Magento 2.4.3 p1 to run properly.

In the XAMPP server some extensions are enabled by default but some we have to enable, for that we have to go to the php.ini file and remove the semicolon

Required PHP extensions

We need the following extension for the Magento 2.4.3 p1 version.

bcmath, ctype, curl, dom, gd, hash, iconv, intl

mbstring, openssl, pdo_mysql, simplexml, soap, xsl, zip, ext-sockets

Go to C:\xampp\php\php.ini

Quick Tip: If you want to open the php.ini file quickly, then for this you go to XAMPP Control Panel.

Then there you will see the config option on the right side of Apache, click on it.

On clicking, the option of php.ini file will appear, open it

;extension=intl
;extension=soap
;extension=xsl
;extension=sockets
;extension=sodium

Now Remove ; from the above lines of php.ini file.

Save the file.

 

Configure php settings

Now change the value for following parameter In php.ini file,

max_execution_time=18000
max_input_time=1800
memory_limit=4G

After making these many configuration changes, there will be no interruption in your Magento 2.4.3 installation and the installation process will run smoothly.

  • Now restart apache from the XAMPP control panel.

 

Step 5: Create Database for Magento 2.4.3 Installation

Now you have to type localhost PHPMyAdmin in your browser and create a database there then we will use that database while installing magento.

localhost/phpmyadmin

The default username of MySql for the jump server is root and the password is blank, so we need to reset the password.

For this, by going to the jump control panel, click on the cell command there, then run the command below, your screen will look something like this.

mysqladmin.exe -u root password yourpassword

change mysql password

The default password of the database was blank, which we have reset, so our database will not open automatically and will ask you for the password.

So if you want to log in automatically, then for this you have to enter the password by going to the config file of MySQL, then as soon as you open the admin of PHPMyAdmin, you will open the database, then automatically login will be done.

D:\xampp3\phpMyAdmin

File Name: config.inc.php

Password Changes of PHPMyadmin

Step 6: Run Magento 2.4.3 Installation Command

In this step, you have to go to the Magento official website (https://magento.com/tech-resources/download) and download the 2.4.3

Download Magento 2.4

When downloaded, put it in the htdocs folder of XAMPP then unzip it.

 

Required Server Configuration

The Magento app is served from /var/www/html/m234p1s/pub.

We need to set the document root to the pub, to do this go to file

D:\xampp\apache\conf\extra\httpd-vhosts.conf

Add this content at the bottom of the file.

<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/m243p1s/pub"
ServerName yourname.magento.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs"
ServerName localhost
</VirtualHost>

Where,

DocumentRoot "D:/xampp/htdocs/m243p1s/pub" is the location of the magento2 folder path

yourname.magento.com is the base url. Ex: – m243p1s.com

Now let's open

C:\Windows\System32\drivers\etc\hosts

the file in notepad++ and add the below line at the bottom of the file.

127.0.0.1 yourname.magento.com

Now all your setup is ready so that you can run the Magento installation command.

For this you can once again make sure that your MySql is running or not, Apache is running or not, Elasticsearch is running or not.

When all these are running properly then only you run the command given below.

Go to the root folder in which you have extracted magento and open then run the below command.

D:\xampp3\htdocs\m243p1s
php bin/magento setup:install --base-url="http://m243p1s.com/" --db-host="localhost" --db-name="m243p1s" --db-user="root" --db-password="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="cs.hemantsinghtech9@gmail.com" --admin-user="admin" --admin-password="Admin@#123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200

Magento 2.4.3 Installation Steps

Note:

Make sure to replace these values:

– base-url: your magento 2 installation folder

– db-name: your database name in step 3

– db-password: your database password in step 3

 

Unable to apply data patch Magento 2.4.3 Installation

Magento 2.4.3 Installation Issue

Now as soon as you run the command, you will see some issue, you can resolve the above issue by changing the file of the path given below.

Unable to apply data patch

Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme. Original exception message: Wrong file

In Gd2.php line 72: Wrong file

private function validateURLScheme(string $filename) : bool
{
$allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
$url = parse_url($filename);
if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
return false;
}

return true; 
}

Now again, re-run the above installation command.

Magento 2.4.3 Installation Steps

Magenta 2.4.3 installation step is completed but when you hit this URL on the browser you will find that CSS and js are not loading.

To solve this, you have to change some of the files given below, then after that run the command, and then the issue will be resolved.

 

Solution of Not Loading CSS and JS

Here’s how to fix CSS and js loading issues:

Go to:

D:\xampp\htdocs\magento2\vendor\magento\framework\View\Element\Template\File

Edit Validator.php

$realPath = $this->fileDriver->getRealPath($path);

Replace with this code:

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

Or just copy-paste the below code

protected function isPathInDirectories($path, $directories)
{
if (!is_array($directories)) {
$directories = (array)$directories;
}
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
foreach ($directories as $directory) {
if (0 === strpos($realPath, $directory)) {
return true;
}
}
return false;
}

Now, Save this file.

Then, go to the app/etc/di.xml in the editor,

– Find the path

“Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink”

and replace to

“Magento\Framework\App\View\Asset\MaterializationStrategy\Copy”

Save the file.

Next, you will need to run the below commands to upgrade the database and deploy static view files

php bin/magento indexer:reindex

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

Indexing and Upgradation While Magento 2.4.3 Installation Steps

Now when all the commands run correctly, you will need to resize the image,

clear the face after running the command

php bin/magento cache:flush

then run the command below to resize the image,

php bin/magento catalog:images:resize

Now open your store in browser.

Fronend Magento Loading

 

Solution of Magento 2.4.3 Admin Login Issue

Failed to send the message please contact the administrator.

You need to configure two-factor authorization in order to proceed with your store admin.

Admin Login Two Factor Issue While Magento 2.4.3 Installation

Now Resolve Magento 2 Login Issue After fresh installation of Magento 2.4.3 via the following command line.

php bin/magento module:disable Magento_TwoFactorAuth

All the upcoming versions of Magento 24 have been made more secure. Inside this security is the step-to-step verification.

Disable 2 Factor Authentication

Now open your admin URL, the issue has been resolved successfully.

Admin Login Issue Resolve

As soon as you go to the bottommost section of the dashboard, you will see on the right side corner that Magento is 2.4.1-p1 version.

Admin Mageno 2.4.3p1

 

Conclusion

Magento 2.4.3 version is a bit complicated for those who are not very technically aware.

Although the installation has been removed from it through the graphical user interface, due to this also it has become a bit more complicated.

But still, you can install Magento 2.4 version successfully using the XAMPP server on the Windows operating system.

 

Recommended Post:

Magento 2.4 Installation Guide: How to Install Magento 2.4.2

Page Builder Editor: How to Change Editor in Magento 2

How to Advertise Magento 2 Store Product on Google Merchant Center

Everyone wants to promote their products online as much as possible so that their sales increase and earn good profits. One of the best ways to promote online is through the Google Merchant Center.

If you also want to promote any product of your shopping website on Google, then you can take the help of Google Shopping Center.

Google Merchant is the best step in the digital era to getting your products to appear in Shopping ad campaigns.

 

What is Google Merchant Center?

The Google Merchant service was launched by Google in 2010.

The purpose of this merchant center is to promote their product by the store owners on Google YouTube etc.

You can generate a product feed of your shopping store and upload it to Google Merchant Center and promote your product.
You have to spend money to promote.

When a user searches a keyword related to it inside Google or inside YouTube, then the promotion of the product is shown there by Google.

Then the user clicks there and goes to your site, in this way the traffic on your website increases and sales growth occurs.

 

How to Upload Product Feed in Google Merchant Center

Anyone can advertise his product on the Merchant store, for that, they have to first upload the feed of the product.

 

Step 1: Log in to Google Merchant Center

In the first step, the user has to register their account with the merchant store, and then they have to log in to the account.

 

Step 2: Create Feeds

In the second step, you have to decide the plan of uploading the product feed, how you want to upload the product.

You can also upload the product manually.

Can also schedule product feeds.

If your eCommerce store has an extension that generates a product feed, you will need to enter its URL inside the Merchant center.

You can set a specific time at that time Google Merchant Center will automatically synchronize the product feed.

Upload Product Feed in google Merchant Center

Step 3: Upload Products Feed

You have to upload the product feed manually, after uploading the total count of the product will be shown.

How many available product URLs are there in your product feed, how many of them are certified, and how many are unauthenticated.

If Merchant store shows any kind of error then you will have to remove it or else your feed will not be verified.

Upload Feed in Google Merchant Center

 

Step 4: Check Feed Validation

Now you can see the product count in the below image. That means the upload feed has a total of 6,686 products.

Display Products in Google Merchant

Step 5: Check Product Listing in Google Merchant Center

As soon as you click on All Products, you will see all the products uploaded by Seat with images.

Along with this, you will also see how many are the total number of the products and how many products are there that are eligible for badges.

What is the item ID of that product, what is the price, images, product link, title, etc? All the details will be visible.

List of Products in google

 

Step 6: Advertise Products in Google Merchant Center

 

In the last step, you will have to create a shopping ad, within which you have to decide the budget, how much budget you want to spend every day.

As soon as the shopping ad is created, your product will start appearing in Google search.

As soon as a user types the relevant keyword in Google, then your product will appear there.

Now the user will visit your site by clicking on it and then will purchase your product from there, this will increase the sales of your product.

Advertise Product in Google Merchant

 

Google Merchant Center Helpline Number 2022

If you are facing any problem in generating the field of your shopping store then you can contact us.

If you need any help in verifying the feeds by uploading them inside Google Merchant Center then you can contact us for this also.

We provide this facility at very cheap rates you can also call or mail us on below contact number.

Contact Number: +91-7992293862

Email ID/Skype: cs.hemantsingh@gmail.com

 

Conclusion:

The best way to increase sales in shopping stores is through Google Merchant Center.

With the help of this, you can increase your sales, for this, you have to create a feed and upload it to Google.

After the launch of this facility by Google, many people have become millionaires by taking advantage of this and increasing the sales of their shopping websites massively.

Page Builder Editor: How to Change Editor in Magento 2

In this post I am going to explain to you how to change the editor type in Magento 2 store, So you can get the idea about changing the page builder editor also.

Magento 2.1, 2.2, 2.3 version has by default WYSIWYG page editor where writing content, inserting images, inserting, etc. is easy.

But in upcoming versions of Magento 2.4 and above, by default page builder editor has been added.

There is a standard for everything in the page builder like if we want to write HTML then we have to do separate drag and drop for it.

To insert an image in this editor, first, we have to drag and drop a row or colon, then inside it, we have to drag and drop the button containing the image.

We also have to drag and drop to edit the video, which is a bit difficult for non-technical admin people.

 

Steps to Change Page Builder Editor Type


1. Open Admin Section

2. Go to Stores tab

3. Select Configuration under the Settings group.

4. Click on the General group section in the left side panel on the page

5. Select Content Management and click on the Advanced Content Tools, section.

6. Select Editor.

 

Disable Page Builder Editor in Magento 2.4


To disable the page builder editor in the version above Magento 2.4 store, you have to go to the admin panel then from there you will see the option of content management in admin configuration, from there you can disable this editor.

Admin > Store > Configuration > Content Management > Advance Content Tool > Diable Page Bulider

Page Builder Editor Magento 2.4

Includes advanced tools to design page layouts, add Magento content (Product and Category data, CMS content and Blocks), and format text.

For Product Attributes — Page Builder can be selected as the “input type” to design layouts and create content.

 

Instruction While Changing Magento 2.4 Editor


Magento's recommendation is to disable the page builder editor from the admin side.

Disabling the command line interface leads to many changes and content mismatches.

Chances of data loss increase, sometimes data loss also occurs.

When the page builder editor is changed from the admin, it follows the instructions required to render the data on the frontend, due to which the content does not change and details are not lost.

 

Change Text Editor for Attribute


If you do not want to disable the page builder editor for the entire store, if you want to disable it for a particular attribute, then you have to go to the admin configuration for that.

Then from there, you will have to change the editor type by clicking on the product attribute, then clear the cache and load it, then you will see that your editor has changed.

You can change the attribute WYSIWYG editor type for an attribute by changing the attribute configuration.

Admin > Store > Product > Attribute > Catalog Input Type for Store Owner

Change Editor Type of Attribute

 

Conclusion:


The editor of Magento 2.4 has been upgraded a bit, its standard has been increased so the page builder concept has been added.

In this editor, each content is organized in a separate section which raises the standard of the Magento eCommerce framework.

 

Recommended Posts:

Magento 2 Product Feed: How to Generate Product Feed

Website Speed Optimization: How to Make Website Faster

Magento 2 Product Feed: How to Generate Product Feed

This post is about Magento 2 Product Feed, why it should be used, and how to use it in your Magento 2 e-commerce store.

Attracting customers to any shopping website is very competitive, in such a way that your product does not reach them, then the chances of customers coming to your store are reduced.

With the help of the product feed extension, you will be able to attract more and more customers to your Magento 2 store.

There are many extensions to generate product feed inside Magento 2 using which we can easily manage product feed.

A product feed is very helpful in bringing traffic from Google Merchant Center.

If you want to connect your magento2 e-commerce store with google merchant center then it requires the generation of product feed.

In such a situation it becomes necessary that you have to broadcast your product feed on all the platforms like Google Shopping, Nextag, Bing, Amazon, etc.

With this whole process, you can easily bring customers to your Magento 2 store and increase sales.

 

Features

In the Wishusucess product feed extension, you will get the following options.

- Automatic and manual options are given in the admin to generate the feed.

- Category-wise mapping option.

- Flexible feed configuration to comply with all shopping engines.

- Auto-generate feed using Cron Job.

- You can set the time to generate the feed at any specific time.

- No product limits you can add an unlimited number of product feeds.

- Support different kinds of file formats like XML, CSV, TXT, etc.

- Set conditions to filter products and generate the product feed.

- By selecting the attributes you can choose to generate a feed.

- Admin config option to customize feed templates requirements.

 

How to Setup Google Feed in Magento 2

To set up Google Feeds functionality inside your Magento 2 store, you have to install the Wishusucess Google Feed extension.

After installing this extension, you will see an option of Add New Feed,
Now you can generate a new feed by clicking on it.

Google Feeds Admin Setting

 

Add New Feed

Add new feed button gives you the option to create a new feed.

You have to click on this button and fill in the rest of the details like under what name you want to create the feed. What should be its format etc?

 

You can create multiple feeds at once

  • Like you can create a feed for google
  • create a feed for Facebook
  • Feed for amazon

Custom feed also you can create by selecting the different attributes for all the leading platforms.

Add New Feed in Magento 2

 

 

Magento 2 Product Feed Generation

Now as soon as you click on generate product feed, your feed will start being generated.

The time the feed is generated depends on the total product count in your Magento 2 store.

For example, if there are fewer products in your store, the less time it will take.

The more products you have in your store, the longer it will take.

Admin > Wishusucess > Manage Feed > Add New Feed > Generate Feed

Magento 2 Product Feed generate

 

Generated Feed

As soon as the process is completed, something like the below image will appear on your screen.

Now if you look, you will get the URL of a feed. If you click on that URL then your file will be downloaded.

Inside that file, all the URLs of your product will be found, in which the title of the product, the content of the product, etc.

Complete Process of Feed generation

 

 

Feed Option: Magento 2 Product Feed

Through this model, you will get many types of options, using which you can create a product feed of Magento two

Like you can create a Facebook feed, and Amazon feed Can be Created, you can create a Google feed, etc.

 

All Type of Feed generation Option

 

Schedule Specific Time

If you want to generate product feed at a specific time then you have to specify the time and the option to set time is given in admin configurations.

If you want, you can generate a manual feed and if you want, you can also generate an automatic feed.

You have to set the time to generate the automatic feed and at that time your feed will be generated automatically

Magento 2 Product Feed Generate

 

Read more: Connect Magento 2 Product Feed With Google Merchant Store

 

Conclusion

Google Fields helps you drive more customers to your store.
In this, through the Z2 extension, you can connect to Google Merchant

Store and try to traffic to your store and do more sales.

The extension provides you with a variety of features.

You can connect feeds to multiple platforms at the same time and drive traffic from different platforms

If you have any problem using this extension then you can contact us.

You can also contact us if you need any kind of customization.

We can customize the extension as per your requirement and you can avail of the facility.

We provide Magento 2 Product feed extension at the lowest rates.

 

 

Recommended Posts:

Magento 2.4 Installation Guide: How to Install Magento 2.4.2

Online Clothing Store Development at Low Price in 2022

What are The Steps to Upgrade Magento 2.4.0 to 2.4.3

It is very important to keep the Magento 2 website updated. Every version of Magento has some bugs or the other. In this post, I will explain to you how to upgrade Magento 2.4.0 to 2.4.3 version.

Hackers can use these loopholes to steal important data from your website or hack your website and make all your payment transactions in their accounts.

Today I will tell you such a complete step-by-step method, using which you can upgrade your Magento 2.4 version and convert it to 2.4.

What are the steps required for Magento 2.4 Store Upgradation, what are the necessary configurations to be changed?

The detailed information about all these is given below

 

Read more: Magento 2.4 Installation Guide: How to Install Magento 2.4.2

 

Why Upgrade Magento 2.4.0 to 2.4.3 Version

The new version of Magento 2.4.3 has resolved 33 Security issues that were there in their older version of Magento 2.4.2

Expansion of reCAPTCHA

Built-in rate limiting

New composer plugin

Infrastructure updates

Support PayPal Pay Later

Upgraded core composer dependencies

Live Search

GraphQL API expansion

and many more.

 

Step 1: Execute Magento 2.4 Upgrade Command

It is up to you which version you have to upgrade and which version you want to convert to your current Magento 2.4 version.

For this, you have to mention that specific version in the command.

As you see below I want to upgrade Magento 2.4.0 to 2.4.3 here and for that, I have given the below command.

composer require magento/product-community-edition=2.4.3 --no-update

Magento 2 Store Upgradation

 

Step 2: Run Command To Upgrade the version

In the next step of the Magento store upgrade, you have to run the composer update command.

As soon as the command is executed, the files of Magento will start being upgraded.

composer update

Upgrade Magento 2.4.0 to 2.4.3

As you can see on this screen all the files of Magento have been updated and they have been converted from 2.4.0 to 2.4.3.

Now you have to follow some basic steps, after that, you will be able to use your store, for this, you follow the next steps.

Complete Step to Upgrade Magento 2.4

 

Step 3: Clear the caches

To remove all the generated cache files, run the following command in your terminal.

rm -rf var/di var/cache/ var/page_cache/ generated/code/

 

Step 4: Update and Deploy Magento The Configuration

Now you have to run the setup update command as if the command completes then you have to do reindexing.

Reindexing is used to deploy all the configurations.

php bin/magento setup:upgrade

php bin/magento indexer:reindex

 

Step 5: Basic Steps

Now you have to flush caches of your store by using the following command line.

php bin/magento c:f

 

Now you can check your store, your upgraded store will be loaded correctly.

If your store is not loading properly then there may be a permissions issue.

For this, you will have to correct the permissions, for which you can use the command given below.

Update the permission

chmod 776 /magento-root-path/magento2.4/ -R

chown www-data:www-data /magento-root-path/magento2.4/ -R

 

Check Magento 2 Store Version

To check the version of Magento 2 store through the command-line interface of workers via the internet, run the below command in the terminal.

php bin/magento --version

Check Magento Store Version

As you can see on the above screen Magento 2.4.0 has been upgraded to 2.4.3

Another way to check the version of the Magento website is to go to the admin panel and if you look at the bottom right side, you will see the store version.

 

Need Magento 2 Store Upgradation Help

If you need any assistance with updating the Magenta 2 Store, you can contact me.

I have upgraded Magento store more than a hundred plus till now, I have technical expertise in it.

Will convert your website into a completely new store in very less time.

For this, you can take our help at a good reliable cost at a very low rate.

For more details please contact our contact numbers are given in contact.

 

Related Posts:

Countdown Timer Extension for Product Page in Magento 2

Product Search REST API: List of REST APIs in Magento 2

How to Create REST API in Magento 2, For Beginners Guide

I am going to show you a step-by-step way to how create custom rest API in Magento 2 store.

Rest API works as Request and Response to perform the certain task in Magento 2.

When we make an application using Magento 2 as a mobile application then we use the request-response concept to receive data or save data.

Magento provides some APIs to you by default you just need to use them.

If you want to change it, you can still change it, but for that, you need to know the basics to customize the core rest api.

In order to create the custom rest API in Magento 2, you can follow the below steps.

Create REST API in Magento 2

 

Step 1: Create REST API Registration File

In the first step of custom rest api we have to create a registration file through which we can register our extension.

Wishusucess/CustomApi/registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Wishusucess_CustomApi',
__DIR__
);

 

Step 2: Create Module File

Now in the second step, you have to create a module.xml file of this custom rest api extension so that we can give its basic details like its version, model name, etc.

Wishusucess/CustomApi/etc/module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Wishusucess_CustomApi" setup_version="1.0.0" />
</config>

 

Step 3: Create REST API Webapi File

In its third step, first of all, we will decide the route URL, how we want to get the data.

Its endpoint will be this route url which will decide that when we hit this endpoint, we will get the data.

Wishusucess/CustomApi/etc/webapi.xml

In this file of Web API, we also decide that the endpoint will work on the key method.

<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../app/code/Magento/Webapi/etc/webapi.xsd">
<route method="POST" url="/V1/custom/custom-api/">
<service class="Wishusucess\CustomApi\Api\CustomInterface" method="getPost"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
</routes>

 

Step 4: Dependency Injection for Custom API

Through this file, we will set the preferences and give its path to this file so that it can recognize the extension when run.

Wishusucess/CustomApi/etc.di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Wishusucess\CustomApi\Api\CustomInterface" type="Wishusucess\CustomApi\Model\Api\Custom"/>
</config>

 

Step 5: Create REST API Custom Interface

This will write the custom interface of the custom API in the file, which will process the data and send it to us as a data response.

Wishusucess/CustomApi/Api/CustomInterface.php
<?php
namespace Wishusucess\CustomApi\Api;
interface CustomInterface
{
/**
* GET for Post api
* @param string $value
* @return string
*/
public function getPost($value);
}

 

Step 6: Custom API Model Class

You have to decide with this file what kind of data you want to take from your application, and how you want to take and show it on the front end.

Wishusucess/CustomApi/Model/Api/Custom.php
<?php
namespace Wishusucess\CustomApi\Model\Api;
use Psr\Log\LoggerInterface;
class Custom
{
protected $logger;
public function __construct(
LoggerInterface $logger
)
{
$this->logger = $logger;
}
/**
* @inheritdoc
*/
public function getPost($value)
{
$response = ['success' => false];
try {
// Your Code here
$response = ['success' => true, 'message' => $value];
} catch (\Exception $e) {
$response = ['success' => false, 'message' => $e->getMessage()];
$this->logger->info($e->getMessage());
}
$returnArray = json_encode($response);
return $returnArray; 
}
}

 

Read more: How To Create Blogging Website at Cheap Price in 2022

 

Step 7: Check Custom API with Postman

We will test the custom rest API that we have created above using the postman free tool.

The method which we have mentioned in the file will be selected in this postman's method option.

We will give the endpoint which we have defined in the web api's route url, in the url option.

Now we will hit the endpoint then we will see some data like the below screen in the form of a response.

 

 

Similar Posts:

Product Search REST API: List of REST APIs in Magento 2

Quick and Advanced Search Container REST API Magento 2

Search REST API List: Magento 2 API List of Product Search Endpoint

Countdown Timer Extension for Product Page in Magento 2

When it comes to increasing the sales of the Magento 2 website, there are a variety of tricks adopted by the store owners. The Countdown Timer extension is one of those experiences that plays a vital role in boosting your store's sales.

It is used as a tool in effectively restricting customers to decision-making.

It also allows users to add a count-down timer to any product in the Magento store so that the website owner can add the countdown accordingly.

 

Read more: Configure PayPal in Magento 2: How to Integrate PayPal

 

Features of Countdown Timer Extension

By installing this Magento 2 timer countdown extension you will be able to add the timer on the product detail page in Magento 2.

  • Admin can create and add multiple countdown groups and assign them for any product.
  • Enable and disable timer countdown extension from the admin.
  • Ability to schedule countdown time from the admin timer setting.
  • You can use it for multiple stores at a time.
  • Admin features to assign the n number of the products from admin.
  • Ability to change the message from the admin.
  • Compatible with Magento 2 Product details page.
  • The extension is fully responsive.
  • One year of free support after the first purchase.

The countdown timer will look like the one below on your Magento 2 product detail page.

As you see on the screen below the day is going on, the hour is going on, the minute is going on and the seconds you will see moving.

You will see this time moving in decreasing order

Magento 2 Countdown Timer Extension

 

Admin users can easily customize the message on the product detail page for the count downs of time.

Admin > Wishusucess > Timer Countdown > Configuration > Timer Config

Countdown Admin Setting Magento 2

 

Here you can change the message, you can set the timer group id.

If you have created a group of ten timer clock and the group id which you will add here, that group will be activated and will be shown on the product details page.

Magento 2 Countdown Timer Extension

 

 

Create And Add Multiple Countdown Times

This Wishusucess Magento 2 timer countdown provides the facilities to add and create any number of the countdown times group for any products and store pages.

This timer helps you to get the customer's attention which leads to more sales.

You can create multiple clocks from the admin and use them on the different products page such as the category page, the home page, product detail page, etc.

Create Multiple Group ID for Timer Clock

 

Ability To Schedule Countdown Time

Now here through this admin, from the current time to future time, you can decide from when to how long the timer countdown should run.

As soon as the timeout is over, your time will automatically stop and it will stop watching.

In addition, the Magento 2 administrator user can also activate the countdown timer for days, weak, hours by selecting the "Exclude the day of the week" section.Countdown Timer for Magento

 

Manage Timer Group

You can group timers here and assign a product to multiple groups.
You can insist n the number of the products in the same timer group.

As soon as you select the product and save it, you will get the ID of the timer clock, you will have to save the group ID of this timer clock by going to the configuration.

The Group ID that you will save in the configuration, the account countdown timer will start running on the product of the group

select product to add timer

 

Support Compatibility.

Magento 2 countdown timer is compatible with all the versions.

Community Edition: 2.1.x, 2.2.x, 2.3.x, 2.4.x

Enterprise Edition: 2.1.x, 2.2.x, 2.3.x, 2.4.x

 

Read more: How to Make Payment Using PayPal REST API in Magento 2

 

Countdown Timer Extension Service

  • Easy to use and install
  • 100% open source
  • User-friendly and responsive interface
  • one month money-back guarantee
  • Free lifetime new updates
  • One year free technical support

 

Technical Help

You can buy this extension directly from our store, you can also mail us

Installation and technical support is also available at very affordable rates

Extension Charge: $49

Installation charge: $29

 

Magento 2 REST API for Countdown Timer Extension

If you are developing a mobile application then you will also need its API. You will get its REST API as well.

We have also added this feature in this extension of the timer countdown timer of Magento 2.

Endpoint:

https://wishusucess.com/rest/V1/timer-countdown

Method: GET

Header: Not required

Body: Not required

Response:

REST API for Countdown TimerAs a response, you will get the count down timer group time as shown in the above screen.

Product Search REST API: List of REST APIs in Magento 2

I am sharing below a list of the product search rest API of how to filter and search any product inside Magento 2.

With the help of this, you will be able to access all the lists of APIs on a single platform.

Within this, you can also search for the product on the basis of the ID of any category.

Whether it is to do an advanced search, you can search and filter the product using the API by all means.

You can also search products on the basis of price i.e. from low price to max price.

You can search the product by product name.

Search by ID using rest API also available in this list.

 

Product Search REST API for Search And Filter

There are many ways to filter a product in Magento, one of them is you can filter a product is by category ID.

So using this REST API, you can field all products of any category ID.

Or if you want to filter the product by category name then you can also use this rest API in Magento 2.

Endpoint:

https://wishusucess.com/rest/V1/categories/2/products

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Content-Type: application/json

Example:

Filter Product By Category ID

Response:

[
{
"sku": "24-MB01",
"position": 0,
"category_id": "2"
},
{
"sku": "24-MB04",
"position": 0,
"category_id": "2"
},
{
"sku": "WSH12",
"position": 0,
"category_id": "2"
}
]

 

Read more: Elasticsearch: How to Install Elasticsearch in Ubuntu 18.04

 

Quick Searches REST API in Magento 2

Below is the Quick search container Magento 2 REST API that will help you to search the product quickly.

Endpoint:

https://wishusucess.com/rest/default/V1/search?searchCriteria[requestName]=quick_search_container&searchCriteria[filter_groups][0][filters][0][field]=search_term&searchCriteria[filter_groups][0][filters][0][value]=iphone

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Content-Type: application/json

Example:

Quick Search REST API Magento

Read more: Search Container REST API

 

Advanced Search Container Magento 2 REST API

Advanced_search_container

Endpoint

https://wishusucess.com/rest/default/V1/search?searchCriteria[requestName]=advanced_search_container&searchCriteria[filter_groups][0][filters][0][field]=price.from&searchCriteria[filter_groups][0][filters][0][value]=200&searchCriteria[filter_groups][0][filters][1][field]=price.to&searchCriteria[filter_groups][0][filters][1][value]=500

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Content-Type: application/json

Example:

Advanced Search Container REST API

Response:

{
"items": [],
"aggregations": {
"buckets": [],
"bucket_names": []
},
"search_criteria": {
"request_name": "advanced_search_container",
"filter_groups": [
{
"filters": [
{
"field": "price.from",
"value": "200",
"condition_type": "eq"
},
{
"field": "price.to",
"value": "500",
"condition_type": "eq"
}
]
}
]
},
"total_count": 0
}

Read more: Search Container REST API

 

Gets Products Where The SKU Search in Magento 2 REST API

Looking for API to search catalog product inside magento2 rising rest API then you can use below endpoint.

This API is used to perform product searches based on SKU inside the magento2 store.

In order to do an SKU-based products search, you have to hit the below Magento 2 rest API endpoint, after hitting it, whatever content matches it, you will get it as a response.

Endpoint

https://wishusucess.com/rest/default/V1/search?searchCriteria[requestName]=advanced_search_container&searchCriteria[filter_groups][0][filters][0][field]=sku&searchCriteria[filter_groups][0][filters][0][value]=24-MB01&searchCriteria[filter_groups][0][filters][0][condition_type]=like

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Contnet Type: application/json

Example:

Product With SKU Search REST API

Response:

{
"items": [
{
"id": 1,
"custom_attributes": [
{
"attribute_code": "score",
"value": "0.0000000000000000"
}
]
}
],
"aggregations": {
"buckets": [],
"bucket_names": []
},
"search_criteria": {
"request_name": "advanced_search_container",
"filter_groups": [
{
"filters": [
{
"field": "sku",
"value": "24-MB01",
"condition_type": "like"
}
]
}
]
},
"total_count": 1
}

 

Product Filter Using Price And SKU in Magento 2 REST API

To search catalog product inside Magento 2 store if we want to add some condition like catalog product search based on SKU and price range both together.

So for that Magento 2 has a separate rest API endpoint we have to hit that endpoint.

And also we can decide the price range according to our need and SKU add both have to be added together as add param.

Endpoint:

https://wishusucess.com/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=sku&searchCriteria[filter_groups][0][filters][0][value]=Coquefhoih72389&searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][0][filters][1][field]=sku&searchCriteria[filter_groups][0][filters][1][value]=Coque12345&searchCriteria[filter_groups][0][filters][1][condition_type]=like&searchCriteria[filter_groups][1][filters][0][field]=price&searchCriteria[filter_groups][1][filters][0][value]=400&searchCriteria[filter_groups][1][filters][0][condition_type]=from&searchCriteria[filter_groups][2][filters][0][field]=price&searchCriteria[filter_groups][2][filters][0][value]=600&searchCriteria[filter_groups][2][filters][0][condition_type]=to

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Contnet Type: application/json

Example:

Product Filter Using Price and SKU REST API

Response:

{
"items": [],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "sku",
"value": "Coquefhoih72389",
"condition_type": "like"
},
{
"field": "sku",
"value": "Coque12345",
"condition_type": "like"
}
]
},
{
"filters": [
{
"field": "price",
"value": "400",
"condition_type": "from"
}
]
},
{
"filters": [
{
"field": "price",
"value": "600",
"condition_type": "to"
}
]
}
]
},
"total_count": 0
}

 

 

A Simple Search Using an in Conditions Type

For logical OR search, one has to hit logical OR search rest API in Magento website i.e. inside normal condition search rest API we will add any product name or whatever you want to search string as a string.

Then after that when you hit the endpoint then the response you get after that will be the response of your conditional search reply.

Endpoint:

https://wishusucess.com/rest/default/V1/products?searchCriteria[filter_groups][0][filters][0][field]=name&searchCriteria[filter_groups][0][filters][0][value]=Coque Carbone et Effet Brossé Silicone à Coins Renforcés&searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][0][filters][1][field]=name&searchCriteria[filter_groups][0][filters][1][value]=Accessoires Apple iPhone&searchCriteria[filter_groups][0][filters][1][condition_type]=like

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Contnet Type: application/json

Example:

Magento 2 Simple Search Using Condition REST API

 

 

Response:

{
"items": [],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "name",
"value": "Coque Carbone et Effet Brossé Silicone à Coins Renforcés",
"condition_type": "like"
},
{
"field": "name",
"value": "Accessoires Bag",
"condition_type": "like"
}
]
}
]
},
"total_count": 0
}

 

Logical and Condition Search REST API Magento 2

For logical and conditional search we have to hit REST API of the Magento 2 website.

Whatever condition we have to send in this, we can decide and we can impose the logical conditions.

As its key value, we can add both SKU and Price together, and as soon as hit we will get the data as a response.

Endpoint:

https://wishusucess.com/rest/default/V1/products?searchCriteria[filter_groups][0][filters][0][field]=sku&searchCriteria[filter_groups][0][filters][0][value]=Accessoires1278&searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][1][filters][0][field]=price&searchCriteria[filter_groups][1][filters][0][value]=2500&searchCriteria[filter_groups][1][filters][0][condition_type]=lt

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Contnet Type: application/json

Example:

Logical and Condition Search API

Response:

{
"items": [],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "sku",
"value": "MS",
"condition_type": "like"
}
]
},
{
"filters": [
{
"field": "price",
"value": "2500",
"condition_type": "lt"
}
]
}
]
},
"total_count": 0
}

 

 

Magento 2 Logical AND and OR Search REST API

In this logical and conditional search, you have to send SKU along with price range can also apply like a price from to price to price.

All the products available in this range in between, you will get the data in the form of a response.

Endpoint:

https://wishusucess.com/rest/default/V1/products?searchCriteria[filter_groups][0][filters][0][field]=sku&searchCriteria[filter_groups][0][filters][0][value]=Accessoires1278&searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][0][filters][1][field]=sku&searchCriteria[filter_groups][0][filters][1][value]=Coquefhoih72389&searchCriteria[filter_groups][0][filters][1][condition_type]=like&searchCriteria[filter_groups][1][filters][0][field]=price&searchCriteria[filter_groups][1][filters][0][value]=200&searchCriteria[filter_groups][1][filters][0][condition_type]=from&searchCriteria[filter_groups][2][filters][0][field]=price&searchCriteria[filter_groups][2][filters][0][value]=600&searchCriteria[filter_groups][2][filters][0][condition_type]=to

Method: GET

Header:

  • Authorization: Bearer <admin_token>
  • Contnet Type: application/json

Example:

Logical and Condition Search With Price and SKU

Response:

{
"items": [
{
"id": 1,
"sku": "24-MB01",
"name": "Joust Duffle Bag",
"attribute_set_id": 15,
"price": 34,
"status": 1,
"visibility": 4,
"type_id": "simple",
"created_at": "2022-01-24 18:19:43",
"updated_at": "2022-01-24 18:19:43",
"extension_attributes": {
"website_ids": [
1
],
"category_links": [
{
"position": 0,
"category_id": "3"
},
{
"position": 0,
"category_id": "4"
}
]
},
"product_links": [
{
"sku": "24-MB01",
"link_type": "crosssell",
"linked_product_sku": "24-UG01",
"linked_product_type": "simple",
"position": 3
},
{
"sku": "24-MB01",
"link_type": "crosssell",
"linked_product_sku": "24-WG083-blue",
"linked_product_type": "simple",
"position": 2
},
{
"sku": "24-MB01",
"link_type": "crosssell",
"linked_product_sku": "24-WG086",
"linked_product_type": "simple",
"position": 1
},
{
"sku": "24-MB01",
"link_type": "crosssell",
"linked_product_sku": "24-WG085_Group",
"linked_product_type": "grouped",
"position": 4
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-MB03",
"linked_product_type": "simple",
"position": 2
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-MB05",
"linked_product_type": "simple",
"position": 3
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-MB06",
"linked_product_type": "simple",
"position": 4
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-MB02",
"linked_product_type": "simple",
"position": 1
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-UB02",
"linked_product_type": "simple",
"position": 5
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-WB03",
"linked_product_type": "simple",
"position": 6
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-WB07",
"linked_product_type": "simple",
"position": 8
},
{
"sku": "24-MB01",
"link_type": "upsell",
"linked_product_sku": "24-WB04",
"linked_product_type": "simple",
"position": 7
}
],
"options": [],
"media_gallery_entries": [
{
"id": 1,
"media_type": "image",
"label": "Image",
"position": 1,
"disabled": false,
"types": [
"image",
"small_image",
"thumbnail"
],
"file": "/m/b/mb01-blue-0.jpg"
}
],
"tier_prices": [],
"custom_attributes": [
{
"attribute_code": "image",
"value": "/m/b/mb01-blue-0.jpg"
},
{
"attribute_code": "small_image",
"value": "/m/b/mb01-blue-0.jpg"
},
{
"attribute_code": "thumbnail",
"value": "/m/b/mb01-blue-0.jpg"
},
{
"attribute_code": "url_key",
"value": "joust-duffle-bag"
},
{
"attribute_code": "required_options",
"value": "0"
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "category_ids",
"value": [
"3",
"4"
]
},
{
"attribute_code": "description",
"value": "<p>The sporty Joust Duffle Bag can't be beat - not in the gym, not on the luggage carousel, not anywhere. Big enough to haul a basketball or soccer ball and some sneakers with plenty of room to spare, it's ideal for athletes with places to go.<p>\n<ul>\n<li>Dual top handles.</li>\n<li>Adjustable shoulder strap.</li>\n<li>Full-length zipper.</li>\n<li>L 29\" x W 13\" x H 11\".</li>\n</ul>"
}
]
}
],
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "sku",
"value": "Accessoires1278",
"condition_type": "like"
},
{
"field": "sku",
"value": "24-MB01",
"condition_type": "like"
}
]
},
{
"filters": [
{
"field": "price",
"value": "30",
"condition_type": "from"
}
]
},
{
"filters": [
{
"field": "price",
"value": "600",
"condition_type": "to"
}
]
}
]
},
"total_count": 1
}

 

You can get all types of search data on the Magento website by changing a little bit in this way.

Now be it price filter, category search, product name search, all types of data can be accessed using this REST API in Magento 2.

Now despite this, if you need any help, then you can contact us, we will try our best to help you.

Thank you!!