Skip to content

Solution (#113): [Bug] Remove hardcoded data-zoom-image="large-image-url.jpg" plac - #120

Open
TFGSUMIT wants to merge 1 commit into
pluginever:masterfrom
TFGSUMIT:fix/issue-113
Open

Solution (#113): [Bug] Remove hardcoded data-zoom-image="large-image-url.jpg" plac#120
TFGSUMIT wants to merge 1 commit into
pluginever:masterfrom
TFGSUMIT:fix/issue-113

Conversation

@TFGSUMIT

Copy link
Copy Markdown

This pull request removes the hardcoded data-zoom-image attribute from the wc-variation-images plugin and replaces it with a dynamic value retrieved using the wcvi_get_full_image_url function. This ensures accurate and up-to-date zoom image URLs.

Changes made:

  • Modified the wc-variation-images plugin to use the wcvi_get_full_image_url function to retrieve the full image URL for the given attachment ID.
  • Replaced the hardcoded data-zoom-image attribute with the dynamic image URL retrieved by the wcvi_get_full_image_url function.

Testing instructions:

  1. Install and activate the wc-variation-images plugin.
  2. Upload a product with multiple images.
  3. Verify that the zoom image URL is accurate and up-to-date.
  4. Test the plugin with different image sizes and formats.
  5. Verify that the plugin works as expected with different browsers and devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant