Vishwesh Shetty

Shopify and Facebook App Developer, Messenger Bot Expert. Top Rated Developer at UPWORK.

Shopify Script to Offer Discounts for non Cash on Deliver (Prepaid) Orders

Shopify offers Script Editor app for Shopify Plus Merchants which provides much more flexibility than Shopify APIs. The scripts are written on Ruby and can be used to build complex logic on the checkout page where Shopify apps generally do not have any control.

Here is a short script I wrote which allows user to provide Discounts only on Cash On Delivery Orders.

Output.payment_gateways = Input.payment_gateways.delete_if do |payment_gateway|
payment_gateway.name == "Cash on Delivery" && Input.cart.discount_code && Input.cart.discount_code.code == "PREPAID"
end

In the above code as soon as user enter PREPAID as the coupon code, they get a discount set as per the discount code and Cash on Delivery is hidden, which would then become visible only when the coupon code is removed. This is handy trick that Shopify Plus owners should use for converting your COD orders into prepaid.

You may also want to rename your prepaid gateway with a text talking about discount code.

Input.payment_gateways.each do |payment_gateway|
next unless payment_gateway.name == "PayUbiz"
payment_gateway.change_name("PayUbiz \n (Use coupon code 'CASHBACK' for 5% off on this payment method)")
end

580 total views, 16 views today

How to send a message to a user on Messenger through API when they Comment on your Post!

You must have seen an “Message” option in user comments next to “Like” and “Reply” on Facebook Post. This option lets a Facebook Page directly message the user who has commented on the Post.

 

 

Facebook has also provided a Graph API endpoint to use this functionality. It’s called private replies.

 

Using this API you can set up auto replies to comments on your post. To access this api endpoint you need page token with  read_page_mailboxes  permission.

 

  • Read all lates page posts using {page-id}/posts endpoint
  • Read all comments on the post using {post-id}/comments endpoint
  • Make a post request with message to /v2.10/{comment-id}/private_replies

 

Make sure you reply just once. It would make more sense to use some keyword to filter comments for replying. For Instance you can run a campaign with a post saying – Comment “claim” to get a coupon code in your inbox.

 

 

 

This is a great marketing tool. Make most of it before everyone starts overdoing this feature!

 

Facebook Open  Graph Link – https://developers.facebook.com/docs/graph-api/reference/v2.10/object/private_replies

 

Related Links – https://www.facebook.com/business/news/pages-messaging-updates

 

9,305 total views, 15 views today

How to get your first project on Upwork

TLDR;

  • Choose your best skill with least expected competition.
  • Look for projects which you have already done before and have proof of working link to share.
  • Search exact job terms you are looking for. Use double quotes for some search terms.
  • Have friendly professional profile picture. Use good language and complete profile.
  • Remember your first project is not just 1 project but a gateway to several more projects.
  • 60 connect = 30 proposals, you have not tried enough if you haven’t used them all.

 

How to get your first project on Upwork!

 

Choose your best skill with least expected competition.

Here choosing a skill with least expected competition is more important than choosing your best skill. You might have lot of experience working on PHP, but there would be too much competition. So write down all your skills and find a skill set where you expect least competition but a decent demands. It could be a subset of a generic skill like Laravel Framework in PHP or Android OpenCV.

 

 

Look for projects which you have already done before and have proof of working link to share.

When you are bidding for a project show your clients that you have already done exactly same or similar project. For instance if you have built a hotel booking website, search for “Hotel booking” projects. If you have developed a weather Android app, search for Android projects which need weather integration. When you show your client that you have already done similar work, the client can take a risk with a upwork freelancer with 0 projects hoping to get the work done much faster.

 

 

Search exact job terms you are looking for. Use double quotes for some search terms.

Once you have narrowed down your skill set, search for projects with the given skill set. If your skill set is knowledge of Twitter APIs search for “Twitter Apps” in quotes, these would give more relevant results.

 

 

Have friendly professional profile picture. Use good language and complete profile.

Get a good profile picture. Not a good looking one but one which will make you prospective client that you are easy to interact and trustworthy. Here is a guide from Upwork for getting the perfect profile picture. Complete your profile and fill your portfolio with projects with skillset you are trying to bid.
 

Look for projects which you have already done before and have proof of working link to share.

The first project is hardest to earn. But once you complete few initial project, it could open up lot more opportunities. In fact out of every 5 new clients, 3 have come back to me for additional work. My first project which started with 100$, eventually netted me a total of 1250$.

 

 

60 connect = 30 proposal, you have not tried enough if you haven’t used them all.

It is easy to give up when you do not get any positive response initially. You can reduce your efforts in bidding by creating snippets of proposals, but make sure to customize it as per clients requirement. Just go with a ritual of one bid every day till you run out of your available connects.

 

Feel free to write to me at vishwesh.shetty@adevole.com if you want to talk more about earning projects on Upwork.

8,800 total views, 15 views today

Need help? Email Us Here! GET A QUOTE!

← Prev Step

Thanks for contacting us. We'll get back to you as soon as we can.

Please provide a valid name, email, and question.

Powered by LivelyChat
Powered by LivelyChat Delete History