d
Topic
tony Member
Posts:
4
10 days ago

Need dynamic shopify store header & footer in private app(developed in php)

How we can get shopify store header & footer dynamically in private app(developed in php)?

Any reference or code example would be highly appreciated 

i
Replies
Posts:
501
10 days ago

Hi tony,

Not sure I fully understand your question. Am I correct that:

  1. You have a private app developed in PHP?
  2. Within your private app, you would like to have the ability to load and display only the header.liquid and footer.liquid of the store's active theme?

 

I turn coffee in to code - since 1998
tony Member
Posts:
4
7 days ago

exactly Karl....

But my app is developed in php so how can i use shopify theme header & footer in my app???

Posts:
501
7 days ago

It doesn't really matter what your app is written with, if you want to display sections only, you will need a Liquid parser. And that's a whole different can 'o worms. 

So let me ask again - what do you want to with this header and footer? Maybe there is a much easier way.

I turn coffee in to code - since 1998
tony Member
Posts:
4
7 days ago

I just want header & footer from shopify theme so if client update something in header & footer then app is uatomatically update as app is suppose to use shopify store header & footer dynamically

Posts:
501
7 days ago

Sorry tony, I just fail to understand what the requirement is.

if client update something

Is this something just a section setting? Is it HTML? The header contains the menu and that can and usually does contain scripts so does the "change something" include scripting changes? Style changes? Navigation item changes?

then app is automatically update

Automatically updates what? Update and automatically are very broad terms.

app is suppose to use shopify store header & footer dynamically

Again, use header and footer dynamically - how will it use them? Why does the app use them when it is Shopify's liquid templating that use them for server side rendering? What does dynamically mean again - will it transform the header or footer somehow, inject something in aforementioned header or footer based on external parameters?

Can't help without knowing what exactly it is you wish to do. Is there a similar app or tool you have seen that showcases the functionality you are looking for?

I turn coffee in to code - since 1998