Skip to content
Discussion options

You must be logged in to vote

That column is expected with @payloadcms/plugin-ecommerce.

The plugin is multi-currency and it creates a separate price field per currency (e.g. priceInUSD, priceInGBP, etc). On SQL/PG those field names get snake_cased into columns like price_in_u_s_d_*. If your collection has Versions/Drafts enabled, versions are stored under a version object in a separate *_versions table/collection, so you’ll also see the version_ prefix (e.g. version_price_in_u_s_d_enabled).

To switch to AUD you need to update the plugin config and run a schema migration (or reset the DB in dev). Example:

import { ecommercePlugin } from '@payloadcms/plugin-ecommerce'

const AUD = {
  code: 'AUD',
  decimals: 2,
  label: 

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by zubricks
Comment options

You must be logged in to vote
1 reply
@JorkDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants