Is it possible send some data with Shopify Buy Button? - shopify

Is it possible send some data (customer coment for instance) with Shopify Buy Button? Im using button o my existing web page (No online store).

Answer from Shopify support.
Currently with the Buy Button sales channel, you would not be able to get a customer note or comment included in the purchase. The Button allows for different variants to be chosen from a drop down menu, but not for a customer to be able to enter in information through a text box. The best alternative would be to reach out to the customer after the order is placed and get more information that way.
If you had an online store with Shopify, that is an option that you can enable, however, it's not a feature on the Buy Buttons. That being said, that would be a great improvement to our platform, and I will send that feedback along to our developers, and they can look into including it in our future :)

Related

Saving additional data when checkout is completed on shopify

I'm not entirely sure how to go about this so i thought i'd ask here.
Context
I have a quiz that people take on my site and when the quiz is completed, a product is recommended based on their quiz results. A customer is now able to buy this recommended product.
What i want to do is to be able to save the quiz response to my external database with the order id as a unique id for quick retrieval later. How would i go about this in Shopify?
Question
Is there a way i can make a POST request when the checkout button is pressed on the checkout page?
Would i have to create a custom checkout to get access to that area?
Thank you
If you're attempting to save to an external database then you'll need to figure out a way to send data from your Shopify frontend to an external app or API, one that will capture the product data and add it to the DB.
To answer your first question, no, you can not hijack the functionality of the checkout button (unless you do so via Javascript).
As for your second question, I don't know what you mean by 'custom checkout' but I'd say you're probably looking in the wrong area for the solution to this.
Shopify's backend is not able to be edited by the merchant themselves and can only be accessed via its various APIs.
How I would do it if I were you is to create that external app, create an endpoint that accepts the product data / adds to the DB and write code on your Shopify front-end to send the data to that endpoint.
Keep in mind that you won't be able to easily identify the customer to whom the product is recommended to unless they are logged in.

How to add a custom section / page with an embedded app in Shopify?

For a client i want to integrate a new way of renting products in Shopify which they pick right up after ordering from a pickup point. This new way is a service which can be interacted with via an API. After ordering, a code is provided which can be used to open a locker somewhere. In the shop, on a custom page or some sort of reusable block i want have a custom HTML form which can interact with this API. The customer can then choose the product, the available pickup-point, pay for his/her order and receive the code for pickup. Is this possible?
I have done research but could not find this type of customizing.
I have built some test-apps but it seems these can only be embedded in the admin and not in the storefront itself (please correct me if i am wrong). I can interact with the storefront-api so that's a plus allright.
The ideal way would be for me to develop a React/Vue app which can be added to a page for walking trough this process described above.
Anyway, is it possible one way or another?
Thanks in advance for thinking with me on this one!

Referencing products in blog post?

I'm looking at putting together a store for a client and trying to decide on what platform to use.
One piece of functionality they want to be able to have is the ability to reference products in their blog posts and then have users add all of these products to their checkout in one click.
Would something like this be possible in Shopify?
You can check out the Shopify Buy Button example here, and the documentation for it is here.
It basically allows you to embed a one-click add-to-cart and checkout solution on any page, such as a blog post.
I'm not sure, however, if it will be possible to incorporate multiple products into a buy button as you hint at in your question.
The previous answer is correct and you can have multiple products with buy button. The buy button creates an embed code that you can cut and paste in your Shopify blog or any other site such as a Wordpress site or an affiliates site. Here is an example of a Shopify blog with multiple buy buttons.

Does the PayPal API allow you to assign a price based on an algorithm? If so, how?

I have been reviewing this forum and the documentation for PayPal API but am still uncertain about one thing: Can I have an algorithm determine the price of certain services on a PayPal button (rather than designing a bunch of preset buttons and choosing which one to display)? I would like to have this information feed in from an external database and would appreciate any tips on which lever to pull.
Thank you!
You would have to make sure it's not a hosted button, which would make the amount be included in a hidden field with the form button. Then you could dynamically adjust the amount based on any logic you want.
The down-side to that is the button isn't as secure because people could view source, copy the HTML, change the amount, and then submit the payment that way. Of course, there are ways to manage this, but it's something to consider.
Another option would be to use the Express Checkout API instead, in which case it would be completely secure and fully customizable to handle pricing however you need to.

Easy script to sell and generate unique passwords to a protected area?

Here is what I'm trying to accomplish:
Three different products-- each one consists of online content, housed within a unique folder.
The customer purchases one of the three products, and receives a username/password (or it could be some sort of dynamic link that expires) for that product.
I am not a programmer, but I know enough to get myself in trouble. I thought I could find a simple script where I would just have to change a couple of parameters and be good to go. Surely this has been done before, right?
I need something that will somehow send the info to a payment processor (PayPal is preferable, but Google Checkout could be an option too), generate a unique password or code and email it to the buyer, and of course communicate to the folder where the product lives so that the password/code will work.
Am I crazy? Is this something that I need advanced development skills to pull off? I have been looking at open-source shopping carts to see if one of them has this functionality built in, but haven't been able to find anything.
There is a PayPal script that is supposed to do this, but I have tried working with it before and it is a real pain...I'm not even sure ultimately that it will work the way I want it too.
Any suggestions are most welcome!
From your description it looks like you are trying to sell digital content.
Both Google Checkout and Paypal have frameworks in place that allow you to securely sell and deliver digital goods.
Please have a look at the doc below for Google Checkout Digital Delivery:
http://code.google.com/apis/checkout/developer/Google_Checkout_Digital_Delivery.html