A message is published to this topic whenever a product is successfully added to the cart.
$.Topic(pubsub.topicNames.CART_ADD_SUCCESS).publish(product);
Arguments
product
: A JSON object that includes data for the added product, for example:
{ "primaryFullImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg", "smallImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=300&width=300"], "orderLimit" : null, "shippingSurcharges" : null, "salePrices" : null, "type" : null, "listPrices" : null, "primaryImageAltText" : "My Movie", "height" : null, "shippingSurcharge" : null, "listPrice" : 21.99, "description" : "A great movie that you should not miss.", "fullImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg"], "longDescription" : null, "unitOfMeasure" : null, "primaryMediumImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=475&width=475", "CountryOfOrigin" : "US", "mediumImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=475&width=475"], "primarySourceImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=300&width=300", "seoKeywordsDerived" : "My Movie,Psychological Thrillers,Blockbuster, All Products,Thrillers-Clearance", "width" : null, "primaryThumbImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=100&width=100", "primarySmallImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=300&width=300", "relatedMediaContent" : [], "active" : true, "largeImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=940&width=940"], "salePrice" : null, "fractionalQuantitiesAllowed" : false, "primaryLargeImageURL" : "/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=940&width=940", "relatedProducts" : null, "weight" : null, "parentCategory" : null, "avgCustRating" : 4.5, "productImagesMetadata" : [{} ], "id" : "Product_36Exy", "sourceImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=300&width=300"], "seoMetaInfo" : null, "variantValuesOrder" : {}, "length" : null, "relatedArticles" : [], "defaultProductListingSku" : null, "seoDescriptionDerived" : "My Movie,A great movie that you should not miss.", "parentCategories" : [{ "id" : "cat70011", "categoryImages" : [], "route" : "/thrillers-clearance/category/cat70011", "description" : null, "longDescription" : null, "active" : true, "displayName" : "Thrillers-Clearance", "repositoryId" : "cat70011" } ], "childSKUs" : [{ "salePrices" : null, "primaryFullImageURL" : null, "primaryLargeImageURL" : null, "smallImageURLs" : [], "thumbnailImage" : null, "listPrices" : null, "sourceImageURLs" : [], "listPrice" : 21.99, "fullImageURLs" : [], "productListingSku" : null, "quantity" : null, "smallImage" : null, "unitOfMeasure" : null, "primaryMediumImageURL" : null, "mediumImageURLs" : [], "primarySourceImageURL" : null, "largeImage" : null, "primaryThumbImageURL" : null, "primarySmallImageURL" : null, "repositoryId" : "Sku_36Fxy", "thumbImageURLs" : [], "salePriceEndDate" : null, "dynamicPropertyMapLong" : {}, "images" : [], "largeImageURLs" : [], "salePrice" : null, "salePriceStartDate" : null, "fractionalQuantitiesAllowed" : false } ], "repositoryId" : "Product_36Exy", "thumbImageURLs" : ["/ccstore/v1/images/?source=/file/v2/products/ mymovie_LARGE.jpg&height=100&width=100"], "primaryImageTitle" : "My Movie", "route" : "/my-movie/product/Product_36Exy", "brand" : null, "seoUrlSlugDerived" : "My Movie", "displayName" : "My Movie", "seoTitleDerived" : "My Movie", "selectedOptions" : [], "orderQuantity" : 1 }
Memory enabled
No