Support for multiple Google Place ID's

Created on 24 May 2023, over 1 year ago

Problem/Motivation

The module only allow to set a single Google Place ID and we need to be able to set different place id's for each of our locations.

Proposed resolution

Add place ID field for the `Google Reviews Rating` and `Google Reviews List` blocks.

Remaining tasks

Review

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡΅πŸ‡¦Panama GTR18 Panama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @GTR18
  • πŸ‡΅πŸ‡¦Panama GTR18 Panama
  • πŸ‡³πŸ‡±Netherlands ptitb

    Hi @GTR18, Looks like a good feature! It might be a good idea to remove the place id from the settings altogether, and only use a place id in the blocks. I'll take a look at this!

  • πŸ‡ΊπŸ‡ΈUnited States Christian DeLoach

    Thank you ptitb for this module. It works great!

    My client has several location, and each location has their own set of ratings and reviews. It would be great to provide support for multiple Google Place ID's in the same block, combining the reviews and averaging out the rating.

  • πŸ‡³πŸ‡±Netherlands ptitb

    Hi Christian,

    This is a very specific use case which won't be supported.
    Though it might be possible to add multiple blocks for multiple locations in the future.

    Maybe you can alter this module or use it as a starting point to build the functionality you need!

  • Status changed to RTBC 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States frogdog_tech

    Tested and confirmed #2 works great. Was also able to pass in the google_place_id via twig tweak params very nicely.

  • would this patch also work as a dynamic block in the manner of a view block, using a token or a node's place ID?

  • Status changed to Needs review about 2 months ago
  • πŸ‡©πŸ‡ͺGermany eric heydrich

    Hi, I tested the patch. The following problem is coming up:

    If no reviews exist at the configured location, the block produces an error. The page shows an error (WSOD). Even editing the page afterwards isn't possible any more.

Production build 0.71.5 2024