grow food, not lawn.

Skip to content

Add support for MP3 format in product extensions

Russell Ballestrini requested to merge content-cp3 into master
  • Updated product extension logic to include MP3 alongside MP4.
  • Modified template condition to check for both MP3 and MP4 formats: {% if product.extensions["product"] in ["mp3", "mp4"] %}

Summary by CodeRabbit

  • New Features

    • Improved product detail rendering to support both audio (mp3) and video (mp4) file types.
    • Added play button for supported media types alongside the product thumbnail.
  • Bug Fixes

    • Enhanced conditional logic to ensure correct display of media elements based on product type.
  • Documentation

    • Maintained existing meta tags for optimal social media sharing and SEO.
Edited by CodeRabbit

Merge request reports