Hi!

BazaarVoice released v2 of their display integration which brings performance updates and longer support.
See: https://knowledge.bazaarvoice.com/wp-content/conversations/en_US/Display...

For reference, the documentation for the currently used v1: https://knowledge.bazaarvoice.com/wp-content/conversations/en_US/Display...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mhavelant created an issue. See original summary.

Jon352’s picture

FileSize
14.87 KB

Ran into a similar need to use the newer api. When using the newer bv.js you have to make template changes and you don't need to make use of $BV.ui.

I'm attaching a patch I created that should give the user the option to use either bvapi.js or bv.js. It includes some logic that manipulates the templates by adding a apiVersion variable to change the templates. Its not 100% tested but so far it works for me.

I may end up going with a custom lightweight implementation since I really don't need the conversatons api and I may not need the product feed. The bv.js file can be dropped into the theme and use templating to render the product id into the bazaarvoice templates.

Anyways, I hope the patch is helpful to someone.

ahimsauzi’s picture

@Jon352, I am in the same situation as you and looking to implement a lightweight solution. Can you share what is involved other than adding the library to a theme? I am looking to have reviews on product detail pages and inline reviews on Views blocks. Thanks.

jasonawant’s picture

Status: Active » Needs work

While this patch applies cleanly, I'm unable to get this patch to work.

I think this Drupal project may need a rewrite as a 3.x version to focus on the Bazaarvoice v2 Display integration. Also, the product feed has been replaced by BV Dynamic Catalog Collection: https://knowledge.bazaarvoice.com/wp-content/conversations/en_US/Collect...

jasonawant’s picture

For those using v2, could you collaborate on this #3133902: [Meta]: Plan 8.x-3.x version or 9's 1.0.0 version?

jasonawant’s picture

I've taken another look at this, and I had to ask BV to enable the v2 for our workbench for this work.

This patch needs code standards check.

santoine’s picture

Status: Needs work » Needs review
FileSize
42.3 KB

This builds off of Jon352 api.option.patch and adds code standards to it.

santoine’s picture

FileSize
34.32 KB

Add code style changes to John352 patch.

santoine’s picture

FileSize
34.78 KB

This patch adds code style changes to John352 patch as well as merges https://www.drupal.org/project/bazaarvoice/issues/3124596 into it.

santoine’s picture

FileSize
121.82 KB
santoine’s picture

FileSize
122.04 KB

This patch does the following:
- Add code style changes to John352's patch
- Merge https://www.drupal.org/project/bazaarvoice/issues/3124596
- Merge https://www.drupal.org/project/bazaarvoice/issues/3143372

kamkejj’s picture

Status: Needs review » Reviewed & tested by the community

We've been using Path #11 on our project and has been working.

kamkejj’s picture

Thanks Jon352 and santoine. Commioted patch #11 to 8.x-2.x branch.

  • kamkejj committed fa874a7 on 8.x-2.x
    Issue #2959188 by santoine, Jon352: Use v2 display API (bv.js instead of...
kamkejj’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.