app block sets "autofill": true and inserts it into the Featured product, but it doesn't work

app block sets "autofill": true and inserts it into the Featured product, but it doesn't work

ymq
Shopify Partner
28 0 18

My app block code is shown below.

P1.png

 

I set "autofill": true for the product data in the block settings.

 

However, when I tried to insert the block into the product page and Featured product, we found some problems:

 

The product page can display product information correctly. As shown in Figure P2 below

P2.png

 

But the product information cannot be displayed in the Featured product. As shown in Figure P3 below

P3.png

Replies 3 (3)

NomtechSolution
Astronaut
1245 113 153

If you have set "autofill": true for the product data in the block settings and are experiencing issues when inserting the block into the product page and Featured product, it's important to check the following:

  1. Ensure the block is properly inserted: Double-check that you have correctly inserted the block into the desired location on the product page and Featured product section.

  2. Verify the block settings: Make sure the block settings are configured correctly, including the "autofill" option for the product data. Confirm that the necessary product data is available and accessible for autofilling.

ymq
Shopify Partner
28 0 18

Hi,

 

Thank you very much for your help, we checked according to your suggestions, but unfortunately we can't find the cause of this problem.

P1.png

 

We checked our code, our code is relatively simple, we did not find any mistakes. A screenshot of the code is shown below, can you help us check what is wrong with our code? Thank you so much!

 

Strangely, our insert block on the product page works correctly. But when we insert the same block in the Featured product section, the product cannot be automatically populated correctly.

 

block in product page

P4.png

 

block in the Featured product section

P5.png

 

best wishes!

SPEAZ
Shopify Partner
26 3 14

Same issue , for me ! manually select the product works but not autofill it's like no products is selected