Access your price test configuration data through the global JavaScript object for custom integrations.
Global Object
Cart transform method price test data is available in:
window.abconvertPriceCartTransformTestDict
Complete Structure
window.abconvertPriceCartTransformTestDict = {
// Experiment metadata
experiments: {
"experiment_123": {
name: "Summer Sale Test",
status: "Active",
groups: ["Control", "Variant A"]
}
},
// Product pricing data
"product_456": {
productIndex: 0,
// Variants available per test group
variantIds: [
[789, 790], // Group 0: Control variants
[789, 790] // Group 1: Variant A variants
],
// Pricing for each variant in each group
variantToGroupIndexToPrice: {
"789": {
0: { price: 2999, compareAtPrice: 3999 }, // Control
1: { price: 2549, compareAtPrice: 3999 } // 15% off
},
"790": {
0: { price: 2999, compareAtPrice: 3999 },
1: { price: 2549, compareAtPrice: 3999 }
}
}
},
// Global settings
fetchCountryCode: true,
setUrlParams: false,
_excludedExperiments: []
}Multi-Currency Configuration
For international stores, pricing includes country-specific data:
variantToGroupIndexToPrice: {
"789": {
0: {
price: 2999, // Default price (cents)
compareAtPrice: 3999,
countryMap: {
"US": {
price: 2999, // $29.99 USD
compareAtPrice: 3999
},
"CA": {
price: 3899, // $38.99 CAD
compareAtPrice: 4999
},
"GB": {
price: 2399, // £23.99 GBP
compareAtPrice: 3199
}
}
},
1: {
price: 2549, // 15% off default
compareAtPrice: 3999,
countryMap: {
"US": { price: 2549, compareAtPrice: 3999 },
"CA": { price: 3314, compareAtPrice: 4999 },
"GB": { price: 2039, compareAtPrice: 3199 }
}
}
}
}This window object enables you to build custom theme integrations based on your specific needs.
