Skip to content

Commit

Permalink
amasty/customers-also-viewed-graphql 2.0.0 compatibility (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Sep 6, 2022
1 parent 0fe5026 commit cb6fbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/productbundles.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@props(['productId'])

<graphql v-cloak query="@include('amastyrelatedproducts::queries.bundles')" :variables="{ productId: {{ $productId }} }">
<graphql v-cloak query="@include('amastyrelatedproducts::queries.bundles')" :variables='{ uid: "{{ base64_encode($productId) }}" }'>
<div slot-scope="{ data }" v-if="data">
<div v-for="bundle in data.amMostviewedBundlePacks.items">
<amastybundles :main-product="data.amMostviewedBundlePacks.main_product" :bundle="bundle">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/queries/bundles.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
query bundles ($productId: Int!) {
amMostviewedBundlePacks (productId: $productId) {
query bundles ($uid: String!) {
amMostviewedBundlePacks (uid: $uid) {
main_product {
sku
name
Expand Down

0 comments on commit cb6fbd4

Please sign in to comment.