Skip to content

Commit

Permalink
[IMP] oxigen_connector_woocommerce_wpml_acf: add field key in video g…
Browse files Browse the repository at this point in the history
…allery field and subfields
  • Loading branch information
FrankC013 committed Oct 29, 2024
1 parent 79690a1 commit d53b9e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def _get_video_gallery_data(self, record):
record.product_template_image_ids.filtered("video_url")
):
data[f"video_gallery_{i}_video"] = img.video_url
data[f"_video_gallery_{i}_video"] = "field_66fd199d7f0aa"
data[f"video_gallery_{i}_video_description"] = img.title or ""
data[f"_video_gallery_{i}_video_description"] = "field_66fd59fbcae43"
return data

@mapping
Expand All @@ -39,4 +41,5 @@ def video_gallery(self, record):

video_gallery_data = self._get_video_gallery_data(record)
video_gallery_data["video_gallery"] = str(len_videos)
video_gallery_data["_video_gallery"] = "field_66fd19527f0a9"
return video_gallery_data

0 comments on commit d53b9e3

Please sign in to comment.