批量修改文件后缀名
新建***.bat
在里面写入
新建***.bat
在里面写入
在Shopify自建站中添加Google客户评论功能,增加GMC排名
// this code works(4 Oct 2018), it might need changes depending on if and when shopify or google changes their code) // Paste this code carefully with in the script tags window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { //this code gets all the UPC codes for products ordered, and adds them to product array //skip products fields it if you are not using global identifier, it also means that your review is not co-nthrelated back to products ordered var products = [ {% for item in order.line_items %} { "gtin": {{ item.variant.barcode }} }, {% endfor %} ]; window.gapi.surveyoptin.render( { // REQUIRED FIELDS "merchant_id": 12345, //replace with your own google merchant id "order_id": "{{order.order_number}}", "email": "{{order.email}}", "delivery_country": "{{order.shipping_address.country_code}}", //this date dictates when review email would be sent if customer opt in, "plus:345600" is number of seconds for 4 days. Change the number of seconds to delivery time (432000 = 5 days, 604800 = 7 days). "estimated_delivery_date": "{{ order.created_at | date:'%s' | plus:345600 | date:'%F' }}", //optional: delete this line if you are skipping product GTIN "products": [{% for item in order.line_items %}{"gtin":"{{ item.variant.barcode }}"}{% unless forloop.last %}, {% endunless %}{% endfor %}] //optional: setting to where to display the dialog(prompt customer to opt in) "opt_in_style": "CENTER_DIALOG" }); }); }
配置代码
add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Methods 'POST,PUT,GET,DELETE'; add_header Access-Control-Allow-Headers 'version, access-token, user-token, Accept, apiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With';
创建的广告不会显示在主页里---所以需要长久功效的,建议选择原有的帖子做广告推广素材----创建的广告容易封号--估计是网站不符合fb的规则--比如售后或者shiping什么的
绑定域名----在品牌安全里----网域里设置
1.视图过滤
2.细分受众过滤
将add、commit、push 三个命令合为一个:
git config --global alias.cmp '!f() { git add -A && git commit -m "$@" && git push; }; f'
nginx 配置
location / {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
code
Hyper-V 管理器的自动停止操作的选项里,设置"保持虚拟机状态"
如下图所示: