Skip to content

Standalone Price import from csv file added#207

Open
alok-ranjan07 wants to merge 1 commit into
commercetools:masterfrom
alok-ranjan07:master
Open

Standalone Price import from csv file added#207
alok-ranjan07 wants to merge 1 commit into
commercetools:masterfrom
alok-ranjan07:master

Conversation

@alok-ranjan07

@alok-ranjan07 alok-ranjan07 commented Apr 20, 2024

Copy link
Copy Markdown

From the official documentation I found that we can always set the priceMode of the product variant to Standalone Price. So I have added the code to import the standalone prices from the csv and link them to their respective SKUs.

@alok-ranjan07

Copy link
Copy Markdown
Author

Hello @dannycroft / @yanns / @programaker / @svenmueller,

I have added the code for standalonePrice import from csv file to their respective skus. Can you please check and share your valuable feedback on this.

Thanks

@yanns

yanns commented Apr 29, 2024

Copy link
Copy Markdown

I don't know exactly what I should check? Do you have something in mind?
Are you asking me because of my role with GraphQL?

@alok-ranjan07

alok-ranjan07 commented Apr 29, 2024

Copy link
Copy Markdown
Author

I don't know exactly what I should check? Do you have something in mind? Are you asking me because of my role with GraphQL?

hello @yanns!!
I thought you are one of the creator of this repository and commercetools.
Here in this repository they are importing all the demo data including customers, order, product, product-type, zone, tax-category, category etc for the Sunrise Demo store. I noticed that they are keeping the priceMode to default which is EmbeddedPrice in the productDraft and importing the embedded prices along with the productVariants to the Sunrise store.

But from the official commercetools documentation, I found that we can set the priceMode to StandalonePrice in productLevel and add StandAlonePrices for that particular variant mapping through SKUs. So I have added the code to change the default priceMode to StandAlonePrice and import StandAlonePrices from csv file. By this way we can increase the price limit from 100 to 50000 per productVariant.

So this was my idea about this pull request. Please share your feedback on this.
Thanks

@yanns

yanns commented Apr 30, 2024

Copy link
Copy Markdown

Maybe you should ask priceless team then?

@alok-ranjan07

Copy link
Copy Markdown
Author

Maybe you should ask priceless team then?

ok thanks for the suggestion.

@programaker programaker left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My JS is a bit rusty, but it seems OK to me.

@alok-ranjan07

Copy link
Copy Markdown
Author

My JS is a bit rusty, but it seems OK to me.

Thanks for the feedback

@alok-ranjan07

Copy link
Copy Markdown
Author

Hello @harm-meijer / @felipe-lemos-ct ,
Can you please check and share your valuable feedback on this.

Thanks

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.

3 participants