We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Bind the php logic with the checkout page on the Shopify

Bind the php logic with the checkout page on the Shopify

max_max_max
Shopify Partner
35 0 3

In `Shopify` I made a custom app in `php`. And now I need to make logic that will work on the `checkout` page.

 

In fact, I need to change the UPS delivery price conditionally, which means I need to catch or simulate the event of assigning the delivery price to the product price.

 

Can please tell me how I can execute my `php` code, written in `index.php`, on the `checkout` page? Or how and where can I link my `php` code to page `checkout`?

 

There is absolutely no information on this in the shopify documentation! In the `Shopify Dev` documentation, I've seen scripts for `wasm` - https://shopify.dev/apps/checkout/shipping-methods, but that's not what I need.

 

I hope very much for your help! Thanks!

Reply 1 (1)

Jason
Shopify Partner
11207 226 2321

This might be more what you're chasing:
https://shopify.dev/api/admin-rest/2021-10/resources/carrierservice#top

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★