Skip to content

bichnn06/magento-2-free-gifts-graphql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 Free Gifts GraphQL / PWA (FREE)

How to install

Run the following command in Magento 2 root folder:

composer require mageplaza/module-free-gifts-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

How to use

To start using Freegifts GraphQL in your Magento 2 store, you need to:

  • Use Magento 2.3.x or higher. Return your site to developer mode

  • Set GraphQL endpoint as http://<magento2-3-server>/graphql in url box, click Set endpoint. (e.g. http://develop.mageplaza.com/graphql/ce232/graphql)

  • Perform a query in the left cell then click the Run button or Ctrl + Enter to see the result in the right cell

  • Currently, Mageplaza Free Gifts extension support the following queries and mutations:

    • Query mpFreeGiftsByProductSku: Help to get the free gift by product SKU

    • Query mpFreeGiftsByQuoteItem: Help to get the free gift by quote item Id

    • Mutation mpFreeGiftsAddByGiftId: Help to add free gift by gift Id

    • Mutations mpFreeGiftsDeleteByQuoteItem: Help to add free gift by quote item Id

Documentation

About

This module only works with Mageplaza Free Gifts extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%