HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

Processing Cart with a Chapter

Hello,

I am running into quite a strange problem when trying to get the cart to work when adding a chapter to the cart. As you can see here, the product codes are CHAPT/EAST for the East Chapter.

However, if I try to add this product code to the cart, it successfully populates the price field with the correct price and the item name correctly even though I did not manually set it, which leads me to think that it has somehow worked.

However, when I click on the item, it says that the item could not be found and does not let me check out.

I tried making the product code just EAST, but that seems to bug out the cart. This is json for the order that I am currently using.

{
                        "$type": "Asi.Soa.Commerce.DataContracts.OrderLineData, Asi.Contracts",
                        "OrderLineId": "fc05d000-f5e8-43b7-b799-6df2d16c4d9e",
                        "AdditionalAttributes": {
                            "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
                            "$values": [
                                
                                {
                                    "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                    "Name": "UpdatedOn",
                                    "Value": {
                                        "$type": "System.Int64",
                                        "$value": 638670274044005701
                                    }
                                }
                            ]
                        },
                        "ExtendedAmount": {
                            "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                            "Amount": 17.54,
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "CurrencyCode": "USD",
                                "DecimalPositions": 2
                            },
                            "IsAmountDefined": true
                        },
                        "Item": {
                            "$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
                            
                            "ItemCode": "CHAPT/EAST",
                            "ItemId": "CHAPT/EAST",
                        },
                        "LineNumber": 1,
                        "QuantityBackordered": {
                            "$type": "System.Nullable`1[[Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts]], mscorlib"
                        },
                        "QuantityOrdered": {
                            "$type": "System.Nullable`1[[Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts]], mscorlib",
                            "Amount": 1.0
                        },
                        "Tax": {
                            "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxData, Asi.Contracts",
                            "Details": {
                                "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxDetailDataCollection, Asi.Contracts",
                                "$values": []
                            },
                            "TaxTotal": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "TaxableAmountTotal": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "InclusiveTaxTotal": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "TaxSchedule": {
                                "$type": "Asi.Soa.Commerce.DataContracts.TaxScheduleSummaryData, Asi.Contracts",
                                "Name": ""
                            },
                            "TaxCategory": {
                                "$type": "Asi.Soa.Commerce.DataContracts.TaxCategorySummaryData, Asi.Contracts"
                            }
                        },
                        "UnitPrice": {
                            "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                            "Amount": 8.77,
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "CurrencyCode": "USD",
                                "DecimalPositions": 2
                            },
                            "IsAmountDefined": true
                        },
                        "BaseUnitPrice": {
                            "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                            "Amount": 8.77,
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "CurrencyCode": "USD",
                                "DecimalPositions": 2
                            },
                            "IsAmountDefined": true
                        },
                        "Discount": {
                            "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "CurrencyCode": "USD",
                                "DecimalPositions": 2
                            },
                            "IsAmountDefined": true
                        },
                        "DiscountCode": "",
                        "CanCombine": true,
                        "SourceCode": ""
                    }

Any help would be much appreciated!

Contact us
Copyright © Advanced Solutions International, All rights reserved.