hsoni/module-shopfinder

Shopfinder Magento 2 Module

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:magento2-module

pkg:composer/hsoni/module-shopfinder

1.0.3 2023-04-23 17:22 UTC

This package is auto-updated.

Last update: 2025-10-23 22:43:25 UTC


README

Installation

The extension must be installed via composer. To proceed, run these commands in your terminal:

composer require hsoni/module-shopfinder
php bin/magento module:enable Hsoni_Shopfinder
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

GraphQL

Create Shop

Creates new Shop query format

mutation {
    createShop(
        input:{
            identifier  :"shop-identifier"
            shop_name  :"Shop Name" 
            country  :"US"
            image  :"image.jpg"
            longitude  :"2.232123"
            latitude  :"123232" 
        }
    ){
        shopfinder_id
        identifier 
        shop_name 
        country
        longitude
        latitude
    }
}

Update Shop

Update Shop query format

mutation {
    updateShop(
        input:{
            shopfinder_id  :3,
            identifier  :"shop-identifier", 
            shop_name  :"New shop name", 
            country  :"UAE",
            longitude  :"122.232123",
            latitude  :"123.232",   
        }
    ){
        message
    }
}

Delete Shop

Delete shop query format

mutation {
    deleteShop(
        shopfinder_id: 10
    ){
        message
    }
}

Fetch All Shops

Get list of all shops

{
    shopfinderList(
        pageSize: 10
        pageNo: 1
    ){
        shoplist{
            shopfinder_id
            shop_name
            identifier
            country
            image
            longitude
            latitude
        }
    }
}

Get Particular Shop

Get shop by shopfinder_id or identifier

{
    shopfinder(identifier:'shop-identifier') {
        shopfinder_id
        shop_name
        identifier
        country
        image
        longitude
        latitude
    }
}