Solved

Add button on product and collection page - Shopify Laravel App

Shahzaib342
Shopify Partner
4 0 0

Hi there,

I am building a shopify app using Laravel. I wanted to add a button on product page under add to cart or sold out button like shown in theme below:

Shahzaib342_0-1650023194722.png

Now the issue is every themes product page structured differently so what's the best way to achieve this result that can work on all themes.

 

Also what if I wanted to achieve the same on collections page?

 

Any help would be appreciated, Thanks

Accepted Solution (1)
suyash1
Shopify Partner
9446 1177 1516

This is an accepted solution.

@Shahzaib342 - this is the correct approach and all the apps use this same approach. 

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Support me

View solution in original post

Replies 4 (4)

suyash1
Shopify Partner
9446 1177 1516

@Shahzaib342 - shopify changes are theme specific , therefore there is no solution that can work for all themes as with each theme change you will need to add code in each theme as per your need.

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Support me
Shahzaib342
Shopify Partner
4 0 0

@suyash1 thanks for the answer.

 

So whats the best way to achieve this within my app? Should I register a snippet on app install and provide user documentation to render that snippet anywhere where he wants to display that button? or is there any other approach?

suyash1
Shopify Partner
9446 1177 1516

This is an accepted solution.

@Shahzaib342 - this is the correct approach and all the apps use this same approach. 

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Support me
Shahzaib342
Shopify Partner
4 0 0

Okay Thanks