These are chat archives for reactioncommerce/reaction

14th
Mar 2019
davidv68
@davidv68
Mar 14 10:47
Hi guys, I want to start starter-kit-application in inspect mode. I followed the doc instruction :
docker-compose run --rm --publish 9229:9229 --publish 4000:4000 -e NODE_ENV=development web babel-node --inspect=0.0.0.0:9229 ./src/server.js
but something get wrong

(function (exports, require, module, filename, dirname) { import _regeneratorRuntime from "@babel/runtime/regenerator";
^^^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier

can you help?
Dileepa
@dileepab
Mar 14 10:50

I have create simple COD plugin. But when i select COD payment method and place order it shows error message.

this is request payload

{"operationName":"placeOrder","variables":{"input":{"order":{"cartId":"cmVhY3Rpb24vY2FydDpwTmtSaEJXWTJkQW05TkpZNg==","currencyCode":"LKR","email":"bmdbalasuriya@gmail.com","fulfillmentGroups":[{"data":{"shippingAddress":{"address1":"460/2, Temple road, Bingiriya","address2":null,"city":"Kurunegala","company":null,"country":"LK","fullName":"Dileepa Balasuriya","isBillingDefault":false,"isCommercial":true,"isShippingDefault":false,"phone":"702694270","postal":"60450","region":"Choose One..."}},"items":[{"addedAt":"2019-03-13T13:20:22.304Z","price":100,"productConfiguration":{"productId":"cmVhY3Rpb24vcHJvZHVjdDpCQ1RNWjZIVHhGU3BwSkVTaw==","productVariantId":"cmVhY3Rpb24vcHJvZHVjdDpRalh1bW9DZ2hGODdkNWdONA=="},"quantity":1}],"selectedFulfillmentMethodId":"cmVhY3Rpb24vZnVsZmlsbG1lbnRNZXRob2Q6Nm55MzdTTHhrYUFOMnpvbUw=","shopId":"cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg==","totalPrice":100,"type":"shipping"}],"shopId":"cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg=="},"payments":[{"amount":100,"billingAddress":{"address1":"460/2, Temple road, Bingiriya","address2":null,"city":"Kurunegala","company":null,"country":"LK","fullName":"Dileepa Balasuriya","isBillingDefault":false,"isCommercial":true,"isShippingDefault":false,"phone":"702694270","postal":"60450","region":"Choose One..."},"method":"cod"}]}}

but works with IOU example method.

{"operationName":"placeOrder","variables":{"input":{"order":{"cartId":"cmVhY3Rpb24vY2FydDpnbmJReXkyR2s0NGlDSHAzOA==","currencyCode":"LKR","email":"bmdbalasuriya@gmail.com","fulfillmentGroups":[{"data":{"shippingAddress":{"address1":"460/2, Temple road, Bingiriya","address2":null,"city":"Kurunegala","company":null,"country":"LK","fullName":"Dileepa Balasuriya","isBillingDefault":false,"isCommercial":true,"isShippingDefault":false,"phone":"702694270","postal":"60450","region":"Choose One..."}},"items":[{"addedAt":"2019-03-13T13:12:34.524Z","price":100,"productConfiguration":{"productId":"cmVhY3Rpb24vcHJvZHVjdDpCQ1RNWjZIVHhGU3BwSkVTaw==","productVariantId":"cmVhY3Rpb24vcHJvZHVjdDpRalh1bW9DZ2hGODdkNWdONA=="},"quantity":1}],"selectedFulfillmentMethodId":"cmVhY3Rpb24vZnVsZmlsbG1lbnRNZXRob2Q6Nm55MzdTTHhrYUFOMnpvbUw=","shopId":"cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg==","totalPrice":100,"type":"shipping"}],"shopId":"cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg=="},"payments":[{"amount":100,"billingAddress":{"address1":"460/2, Temple road, Bingiriya","address2":null,"city":"Kurunegala","company":null,"country":"LK","fullName":"Dileepa Balasuriya","isBillingDefault":false,"isCommercial":true,"isShippingDefault":false,"phone":"702694270","postal":"60450","region":"Choose One..."},"data":{"fullName":"Dileepa Balasuriya"},"method":"iou_example"}]}}

anyone can help me to solve this.

Janus Reith
@janus-reith
Mar 14 11:13
@dileepab I'm not sure how you expect anyone to be able to help you with the information you gave.

The only differences in these request is the differing cartId, addedAt, method name, and data.fullName for the iou example. So, nothign interesting to see here.

But when i select COD payment method and place order it shows error message.

What is the error?

Ben S.
@bnschmdt
Mar 14 23:19

What am I doing wrong, we want to include the subtitle of a product in the cart name.

<p id="cart_item_title">{item.title} {item.pageTitle}</p> but {pageTitle} (the subtitle) doesn't appear. any ideas? should I be identifying the subtitle differently?