Product Cards
Product Card Appearance (V2)
import android.graphics.Color
import com.firework.shopping.ProductCardV2BorderConfiguration
import com.firework.shopping.ProductCardV2Configuration
import com.firework.shopping.ProductCardV2LabelConfiguration
import com.firework.shopping.ProductCardV2PriceConfiguration
import com.firework.shopping.ShoppingViewOptions
FireworkSdk.shopping.setShoppingViewOptions(
ShoppingViewOptions(
productCardV2Configuration = ProductCardV2Configuration(
backgroundColor = Color.parseColor("#FFFFFF"),
cornerRadius = resources.getDimension(R.dimen.product_card_corner_radius),
borderConfiguration = ProductCardV2BorderConfiguration(
color = Color.parseColor("#B3FFFFFF"),
),
nameLabel = ProductCardV2LabelConfiguration(
textColor = Color.parseColor("#212121"),
),
priceConfiguration = ProductCardV2PriceConfiguration(
priceLabel = ProductCardV2LabelConfiguration(
textColor = Color.parseColor("#212121"),
),
discountLabel = ProductCardV2LabelConfiguration(
textColor = Color.parseColor("#D32F2F"),
),
originalPriceLabel = ProductCardV2LabelConfiguration(
textColor = Color.parseColor("#757575"),
),
),
),
),
)Configuration Properties
Important Notes
Product Indicator Customization (V2)
Default Values
Property
Default value
Description
Size Limits
Product Card Click Handler
Priority Order
Priority
Mechanism
When to use
Path 1: Custom Listener (Highest Priority)
Path 2: ViewOptions-Driven External Link (Zero Configuration)
Path 3: Built-in Product Details Page (Default)
Combining Listener and ViewOptions
Version 1 Product Cards Configuration
Configurable Properties
Corner Radius
24dp radius
4dp radius
CTA Button Label

CTA Button Visibility
"Shop now" visible
"Shop now" hidden:
Custom Product Cards (V1 only)
Implementing Custom Product Card View
Important Notes
Related Documentation
Last updated
Was this helpful?



