jjzjj

woocommerce-subscriptions

全部标签

ruby - 通过 API 和 ruby​​ 创建优惠券返回错误 : woocommerce_api_missing_coupon_data

我正在尝试使用本页文档中的示例代码通过我的Rails4应用程序的其余API创建优惠券:https://woocommerce.github.io/woocommerce-rest-api-docs/?ruby#create-a-coupon这是我使用的代码:data={code:"10off",discount_type:"percent",amount:"10",individual_use:true,exclude_sale_items:true,minimum_amount:"100.00"}woocommerce.post("coupons",data).parsed_resp

javascript - 未捕获( promise )DOMException : Subscription failed - no active Service Worker

我正在尝试订阅用户,但这是我第一次遇到的错误。第二次,它正在工作,因为用户已经处于事件状态这是我的代码:if('serviceWorker'innavigator){console.log('ServiceWorkerissupported');navigator.serviceWorker.register('sw.js').then(function(reg){console.log(':^)',reg);reg.pushManager.subscribe({userVisibleOnly:true}).then(function(sub){console.log('endpoin

javascript - WooCommerce cookie 和 session - 获取购物车中的当前产品

我尝试了解WooCommerce的cookie,以执行添加到购物车的产品操作的任何功能。我在控制台document.cookie中写了我得到了这些数据:woocommerce_items_in_cart=1;woocommerce_cart_hash=500d17f6c010b62b25c3f52893be945d;我知道cookie“woocommerce_cart_hash”包含购物车中的产品,但我不明白如何获取产品名称。这是什么500d17f6c010b62b25c3f52893be945d如有任何帮助,我们将不胜感激。 最佳答案

javascript - 在 WooCommerce 网站中接收重力形式错误

我的Chrome浏览器控制台中出现了两个问题。仅供引用,我使用的是WordPress3.9、GravityForms1.8.8和WooCommerceGravityAddOn(最新)。基本上,当我在我的网站上访问我的一个产品时(抱歉,它只在我的机器上本地运行),我收到以下两个错误:错误1:UncaughtReferenceError:gformisnotdefined错误2:UncaughtReferenceError:gformCalculateTotalPriceisnotdefined仅供引用,我正在使用WooCommerceGravityFormsAddOn,但在我的Gravi

javascript - 如何使用 App.cable.subscriptions.remove 在 Rails 5 中删除 actioncable channel 订阅?

要创建我运行的订阅:App.room=App.cable.subscriptions.create({channel:"RoomChannel",roomId:roomId},{connected:function(){},disconnected:function(){},received:function(data){return$('#messages').append(data['message']);},speak:function(message,roomId){returnthis.perform('speak',{message:message,roomId:roomI

javascript - Apollo "Subscription field must return Async Iterable. Received: undefined"

我有一个触发channel事件“countIncr”的突变,但我没有看到事件的相应订阅与事件负载一起触发。更新:我已经对这篇文章进行了多次更新,现在我正在更改标题以更能代表我所在的位置。我收到graphqlPlayground错误"SubscriptionfieldmustreturnAsyncIterable.Received:undefined"我遇到问题的TGRstack复制:https://github.com/TGRstack/tgr-apollo-subscription-example-microservice/没有TGRstack的工作再现:https://github

javascript - RxJS 可观察到的 : performing cleanup when the last subscription is disposed?

当RxJSObservable的lastsubscription被释放时,执行副作用的最干净的方法是什么?这可能发生在Observable终止之前。假设我需要一个函数返回一个Observable来发出对资源的更改。我想在处理完所有订阅后执行清理操作。varobservable=streamResourceChanges(resource);varsubscription1=observable.subscribe(observer1);varsubscription2=observable.subscribe(observer2);//...subscription1.dispose(

xml - R : "subscript out of bounds" 中的数据混搭

我正在通过“R中的数据混搭”学习R,但无法获得第1页上的示例。5上类。我使用的代码是这样的:#InstallandloadRCurlinstall.packages("RCurl")library("RCurl")#InstallandloadtheXMLpackageinstall.packages("XML")library("XML")#Downloadfileandparseitappid但是当我这样做时,我没有得到以下结果:Listof2$doc:Listof3..$file:Listof2....$text:Namedlist()......-attr(*,"class")

windows - 将我的 cloudService 内容从 Subscription1 复制到 Subscription2

我有两个windowsazure订阅我需要将我的云服务内容从Subscription1复制到Subscription2谁能帮我一步一步的指导 最佳答案 不幸的是,只有两个选项可用,恐怕没有一个是直接通过门户网站提供的:重新部署到新订阅;请求Azure支持的票证,以便将云服务转移给你(这是可行的,因为支持非常有效)登录门户后,单击您的用户名右上角-“联系Microsoft支持”创建工单并选择以下选项: 关于windows-将我的cloudService内容从Subscription1复制到

WooCommerce在woocommerce_before_main_content中添加动作

我想添加woocommerce_catalog_ordering就在我的店长Div之前的动作。这将在我的容器div之后添加。由于我的自定义HTML不是像WooCommerce所内置的那样的动作,因此我不确定如何订购两者。functionshop_page_header(){get_template_part('elements/header-nav');remove_action('woocommerce_before_shop_loop','woocommerce_catalog_ordering',30);//RemovetheresultcountfromWooCommerceremov