Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set custom name and image when creating the line item #87

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

marcomontalbano
Copy link
Member

@marcomontalbano marcomontalbano commented Jan 15, 2025

Closes #74

What I did

I added ability to set custom name and image when creating the line item.

<cl-add-to-cart code="5PANECAP000000FFFFFFXXXX" name="Custom name" image-url="https://example.com/image.jpg">
  Add to cart
</cl-add-to-cart>

https://deploy-preview-87--commercelayer-drop-in-js.netlify.app/?path=/docs/components-add-to-cart-cl-add-to-cart--docs

@marcomontalbano marcomontalbano self-assigned this Jan 15, 2025
@marcomontalbano marcomontalbano added the enhancement New feature or request label Jan 15, 2025
Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for commercelayer-drop-in-js ready!

Name Link
🔨 Latest commit eeecb82
🔍 Latest deploy log https://app.netlify.com/sites/commercelayer-drop-in-js/deploys/6788312792ca8100086c34a5
😎 Deploy Preview https://deploy-preview-87--commercelayer-drop-in-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@marcomontalbano marcomontalbano marked this pull request as ready for review January 15, 2025 22:07
@marcomontalbano marcomontalbano merged commit bedea2f into main Jan 16, 2025
6 checks passed
@marcomontalbano marcomontalbano deleted the custom-name-and-image branch January 16, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to override for name and image_url when creating a line item
2 participants