App embed block VS App block - target a page

App embed block VS App block - target a page

Guian
Shopify Partner
6 1 1

Hello all, thank you for your time.

 

I'm new to shopify app development and have several questions around theme extension app.

I get the difference between app blocks (inline,  target a section) and app embed blocks (floating, target body)
Our application is providing several theme extensions, some are inline, one of them is floating. 
 
Question is :  can I enable the floating theme extension (app embed block)  on some target pages only ?
When creating this block, targeting the body seems to enable the block on all pages with no customisation at all.
whereas app blocks can be added and configure in each page section in theme customization page.
I want the store owner to be able to enable the floating block only on cart page or only on product page or only on a specific category for instance... 
 
Maybe I'm missing the way 'app embed blocks' are placed and configured ? 
Thank you for your help.
 
Replies 3 (3)

iffikhan30
Shopify Partner
275 37 51

Hello Guian,

 

It's simple as that embed block use the entire website, for instance if you want to add chat box so you want to add whole website so embed block is best for that,

Let's talk about the app blocks, for example you said your question you want to show floating block only cart page or product page, you can use app block

 

Another example on your scenario, you want create a system like admin owner just enable it's show specific pages so you can use embed block, in embed block you can add conditions, 

 

Thanks 

Custom theme and app [remix] expert.

Email: [email protected]
Chat on WhatsApp
Guian
Shopify Partner
6 1 1

Thank you for your answer.

 

"in embed block you can add conditions, "

Can you elaborate on that please?

How ca we add conditions ? 

iffikhan30
Shopify Partner
275 37 51

Hello @Guian ,

 

If you share here you scenario I will example accordingly.

Custom theme and app [remix] expert.

Email: [email protected]
Chat on WhatsApp