shopify

Reading product metafields through Shopify ScriptTag API

百般思念 提交于 2020-08-10 19:11:28
问题 I'm building a Shopify embedded application with two main points of functionality: Upon install, product meta fields are populated with some values Upon page load, a custom script is injected into product page through shopify ScriptTag api The injected script displays some icon alongside the values from product meta fields. Currently, from the product page, the injected script is having to request the meta fields from my local server, which then queries the clients shopify for before sending

Reading product metafields through Shopify ScriptTag API

北慕城南 提交于 2020-08-10 19:10:08
问题 I'm building a Shopify embedded application with two main points of functionality: Upon install, product meta fields are populated with some values Upon page load, a custom script is injected into product page through shopify ScriptTag api The injected script displays some icon alongside the values from product meta fields. Currently, from the product page, the injected script is having to request the meta fields from my local server, which then queries the clients shopify for before sending

why does connect domain to “Shopify” ask for either CNAME and A Record?

天涯浪子 提交于 2020-06-28 05:56:29
问题 why does connect domain to "Shopify" ask for either CNAME and ARecord ? ref If you've purchased your domain through a third party, then you need to edit the following DNS settings: Your A record should point to Shopify's IP address, which is 23.227.38.65 Copy Your www CNAME record should point to shops.myshopify.com Copy . I mean if i configure my domain customer.com , A Record => 23.227.38.65 Isn't that enough to them? why do they also ask for CNAME www shops.myshopify.com ? 来源: https:/

Create a webhook using API in shopify

寵の児 提交于 2020-06-27 16:19:01
问题 Here I stuck in shopify creating webhook through API I am using cake php for creating public shopify app Now I would like to create carts/update hook for my app using API here is my code Cake php library : https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin File : ShopifyApiComponent.php CODE : public function createwebhook($shop_domain, $access_token){ $method = "POST"; $path = "/admin/webhooks.json"; $params = array("webhook" => array( "topic"=>"carts/create", "address"=> $this->site_url.

Create a webhook using API in shopify

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 16:18:48
问题 Here I stuck in shopify creating webhook through API I am using cake php for creating public shopify app Now I would like to create carts/update hook for my app using API here is my code Cake php library : https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin File : ShopifyApiComponent.php CODE : public function createwebhook($shop_domain, $access_token){ $method = "POST"; $path = "/admin/webhooks.json"; $params = array("webhook" => array( "topic"=>"carts/create", "address"=> $this->site_url.

Adding days to a date excluding weekends in Shopify

帅比萌擦擦* 提交于 2020-06-26 08:46:56
问题 I'm trying to write some code to estimate a shipping date in Shopify. I've been learning liquid but am having trouble writing some logic in Ruby. I'm not sure if Shopify templates use Ruby or Ruby on Rails. I want to get todays date and add either 3 or 5 days based on a input variable, excusing weekends. Heres how I'd do it in PHP: $orderDate = date('Y-m-d'); $personalized = true; $orderDays = ($personalized ? 4 : 2); (date('H') > 12 ? $orderDays++ : $false); $d = new DateTime( $orderDate );

Adding days to a date excluding weekends in Shopify

╄→гoц情女王★ 提交于 2020-06-26 08:46:33
问题 I'm trying to write some code to estimate a shipping date in Shopify. I've been learning liquid but am having trouble writing some logic in Ruby. I'm not sure if Shopify templates use Ruby or Ruby on Rails. I want to get todays date and add either 3 or 5 days based on a input variable, excusing weekends. Heres how I'd do it in PHP: $orderDate = date('Y-m-d'); $personalized = true; $orderDays = ($personalized ? 4 : 2); (date('H') > 12 ? $orderDays++ : $false); $d = new DateTime( $orderDate );

How can I access/edit the HTML file on Shopify?

微笑、不失礼 提交于 2020-06-13 07:07:09
问题 I know this is probably a very basic/obvious thing, but I'm new to Shopify and trying to assist a client while a colleague is on vacation. I know what I need to change and how to change it, but not how to access it. When I go to Online Store and click Edit Code, I see all the Liquid, JSON, and even CSS files, but I can't find the HTML file I need to edit, nor can I find any of the HTML I need to edit within the theme.liquid file. The resources I'm finding are all either outdated (there is no

How can I access/edit the HTML file on Shopify?

痴心易碎 提交于 2020-06-13 07:07:00
问题 I know this is probably a very basic/obvious thing, but I'm new to Shopify and trying to assist a client while a colleague is on vacation. I know what I need to change and how to change it, but not how to access it. When I go to Online Store and click Edit Code, I see all the Liquid, JSON, and even CSS files, but I can't find the HTML file I need to edit, nor can I find any of the HTML I need to edit within the theme.liquid file. The resources I'm finding are all either outdated (there is no

Shopify Web Checkout Issue

一笑奈何 提交于 2020-05-31 07:06:09
问题 I am doing WebCheckout. After that, I am getting a callback of that Checkout callback. I have followed the way which has been written here. GraphClient client = ...; ID paymentId = ...; Storefront.QueryRootQuery query = Storefront.query(rootQuery -> rootQuery .node(paymentId, nodeQuery -> nodeQuery .onPayment(paymentQuery -> paymentQuery .checkout(checkoutQuery -> checkoutQuery .ready() .order(orderQuery -> orderQuery .processedAt() .orderNumber() .totalPrice())) .errorMessage() .ready() ) )