Personalized checkout and custom promotions with Shopify Scripts
I found similar question in the stackoverflow, and from this answer I come to know about Career service. Which looks promising initially, but after reading the doc from here, I found that there is an issue for my use case.
This is my use case:
so the issue is, Carrier Service uses Server side cashing and it will only ask for price if any of these(variant IDs, default shipping box weight and dimensions, variant quantities, carrier service ID, origin address, destination address, item weights and signatures) field change. It doesn't include line item properties(where I have stored delivery dates).
I have also checked the shopify scripts from here, but after some mockups I come to know that we can only provide discount to the existing shipping rates and can not add new shipping method, or increase shipping price for existing shipping method.
Please help me to find a solution for this problem.
Solved! Go to the solution
This is an accepted solution.
@chiragramjibhai wrote:
- shipping price should be calculated like ...... if there is only one delivery day, we need to offer x price, if there are two different delivery dates we need to offer 2x price and so on....
Alternative do this as a fee , add a productVariant set to the fee price.
I have also checked the shopify scripts from here, but after some mockups I come to know that we can only provide discount to the existing shipping rates and can not add new shipping method, or increase shipping price for existing shipping method.
Set the shipping rates to be a high enough rate to cover any possible shipping cost then discount it down to what's in the checkout, reject checkouts that go outside possibility and log it or other process to handle customer remediation.
You may need to modify checkout.liquid to hide shipping prices until the appropriate time as to not scare off customers.
A hack is to use weight based shipping rates and set variants to specific weights or add a product whose only purpose is to qualify the order to a minimum shipping weight.
I'd also contact the Plus stores MSM to let them know of this use case for checkout-scripts being able to INCREASE shipping rates.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
To clarify you are to see the item properties field in the shopify request for rates to your carrier-service endpoint?
But this hits an issue when/if a customer goes back to cart and makes changes that alter the line-item-properties(LIPS)?
Note how the docs on request cache'ing goes over situations that can create new requests bypassing cache'ing.
When any of following properties change:
When a system is silly like that invent a situation that creates a new request.
Just make one of those fields change:
If your working on a Plus store also contact the MSM for that Plus store and make a request there needs to a direct method in such API's to turn off cach'ing. It's silly when such systems don't already have a documented opt-out.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Hi @PaulNewton
How can you make a product in the cart unremovable?
I don't need a full walk through, just some direction. Is this a property on line items I can set to true?
@kamenche if they remove the item add it back to the cart, dont allow checkout if item not in cart.
To be clear there is NO read-only system for cart items in the ajax-cart api; the closest is cart-permalinks draft-orders that go right to checkout and don't really have a "cart" step.
You have to create the frontend|backend logic to emulate that behavior.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
@chiragramjibhai wrote:
- shipping price should be calculated like ...... if there is only one delivery day, we need to offer x price, if there are two different delivery dates we need to offer 2x price and so on....
Alternative do this as a fee , add a productVariant set to the fee price.
I have also checked the shopify scripts from here, but after some mockups I come to know that we can only provide discount to the existing shipping rates and can not add new shipping method, or increase shipping price for existing shipping method.
Set the shipping rates to be a high enough rate to cover any possible shipping cost then discount it down to what's in the checkout, reject checkouts that go outside possibility and log it or other process to handle customer remediation.
You may need to modify checkout.liquid to hide shipping prices until the appropriate time as to not scare off customers.
A hack is to use weight based shipping rates and set variants to specific weights or add a product whose only purpose is to qualify the order to a minimum shipping weight.
I'd also contact the Plus stores MSM to let them know of this use case for checkout-scripts being able to INCREASE shipping rates.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Thanks
I have done exactly this.
added a max possible shipping rate and provide discount to that shipping rate as per requirement using the scripts.
Didnt need to modify the checkout, as before anything appear on the checkout the script has already been applied and it shows the correct price.
User | RANK |
---|---|
4 | |
2 | |
2 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023