Skip to content

Fetch complete product data for ui - #47

Draft
Mtaasisi wants to merge 1 commit into
mainfrom
cursor/fetch-complete-product-data-for-ui-ce33
Draft

Fetch complete product data for ui#47
Mtaasisi wants to merge 1 commit into
mainfrom
cursor/fetch-complete-product-data-for-ui-ce33

Conversation

@Mtaasisi

@Mtaasisi Mtaasisi commented Oct 4, 2025

Copy link
Copy Markdown
Owner

Enhance product data fetching to correctly display pricing, stock, and images for products, especially those not using variants.

The previous getProducts method did not fully fetch direct pricing and stock fields, and expected images from a separate table. This caused products with metadata.useVariants: false and images stored directly in the lats_products.images column to appear incomplete in the UI. This PR updates the query and transformation logic to correctly process both variant-based and direct-pricing products, and to use the product.images array directly.


Open in Cursor Open in Web

Co-authored-by: xamuelhance10 <xamuelhance10@gmail.com>
@cursor

cursor Bot commented Oct 4, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify

netlify Bot commented Oct 4, 2025

Copy link
Copy Markdown

Deploy Preview for inauzwaapp failed. Why did it fail? →

Name Link
🔨 Latest commit bec3d3a
🔍 Latest deploy log https://app.netlify.com/projects/inauzwaapp/deploys/68e0b15451195d00080dcc11

@vercel

vercel Bot commented Oct 4, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
pos Error Error Oct 4, 2025 5:32am
pos-c12n Error Error Oct 4, 2025 5:32am

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 4, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
test bec3d3a Oct 04 2025, 05:32 AM

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.

2 participants