Add selling plan functionality to product components#1309
Add selling plan functionality to product components#1309hhuang2-godaddy wants to merge 2 commits intogodaddy:mainfrom
Conversation
- Implemented `getSellingSellingPlans` action to fetch selling plans based on store ID and SKU IDs. - Integrated `SellingPlanDropdown` component to allow users to select selling plans on product pages. - Updated `ProductDetails`, `ProductCard`, and `ProductGrid` components to support selling plan selection and display. - Enhanced cart functionality to include selected selling plan ID when adding items to the cart. - Added error handling and loading states for fetching selling plans.
|
| https | ||
| .get(url.toString(), { rejectUnauthorized: false }, (r) => { | ||
| let data = ''; | ||
| r.on('data', (chunk) => (data += chunk)); | ||
| r.on('end', () => | ||
| resolve({ body: data, status: r.statusCode ?? 0 }) | ||
| ); | ||
| r.on('error', reject); | ||
| }) |
Check failure
Code scanning / CodeQL
Server-side request forgery Critical
| const { body, status } = await new Promise<{ body: string; status: number }>( | ||
| (resolve, reject) => { | ||
| https | ||
| .get(url.toString(), { rejectUnauthorized: false }, (r) => { |
Check failure
Code scanning / CodeQL
Disabling certificate validation High
| res = await fetch(url.toString(), { | ||
| cache: 'no-store', | ||
| headers: { Accept: 'application/json' }, | ||
| }); |
Check failure
Code scanning / CodeQL
Server-side request forgery Critical
getSellingSellingPlansaction to fetch selling plans based on store ID and SKU IDs.SellingPlanDropdowncomponent to allow users to select selling plans on product pages.ProductDetails,ProductCard, andProductGridcomponents to support selling plan selection and display.Summary
Changeset
Test Plan