Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:36:53+00:00 2026-06-10T21:36:53+00:00

I’m trying to wrap my head around this topic but can’t find a simple

  • 0

I’m trying to wrap my head around this topic but can’t find a simple solution.

  • product based on region price.
  • regions have one currency per region and stock per region.
  • then there are product variations like color and size, color should be special cause I need images for it.
  • color and size is depending on stock based on the region.
  • product has one price per region

Maybe anyone here has a good idea for this db layout.

edit

products

  • id
  • name
  • identifier
  • slug

product_variations

  • id
  • product_id
  • name
  • size
  • image

product_stocks

  • id
  • count
  • product_variation_id
  • region_id

product_prices

  • id
  • product_id
  • region_id
  • price

regions

  • id
  • name
  • slug

still the size is tied to the variations..
i need one variation with multiple sizes and stock should also be linkable to size based on region

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:36:55+00:00Added an answer on June 10, 2026 at 9:36 pm

    May be something like:

    Products:

    • Id.
    • Name.

    product variations like color and size, colour.

    ProductVariations:

    • Id.
    • ProductId.
    • StockId(color and size is depending on stock based on the region)
    • Colour.
    • Size

    regions have one currency per region and stock per region.

    Currencies:

    • Id.
    • Name.

    Stocks:

    • Id.
    • Name.
    • RegionId.

    Regions:

    • Id.
    • Name.
    • CurrencyId.
    • StockId.

    product has one price per region

    product based on region price

    ProductPrices:

    • Id.
    • ProductId -> Products table.
    • RegionId -> Regions table.
    • Price.

    You might need to tweak this structure a little bit to accommodate:

    • The product images depending on whether you need only one image per product or a product can have many images (new table ProductImages).
    • You didn’t clarify the product properties you need(product variations) are they a lot of variations for each product (one to many for each product) or its just a properties for each product.

    Update:

    one size can have stock as well.

    In this case you can move Colour and Size or the size only as you want to a new table, something like, ProductVariationOptions:

    ProductVariationOptions:

    • Id.
    • Size.
    • Colour.

    Then the your ProductVariationOptions would be like this:

    ProductVariations:

    • Id.
    • ProductId.
    • StockId(color and size is depending on stock based on the region)
    • ProductVariationOptionsId -> ProductVariationOptions
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Does anyone know how can I replace this 2 symbol below from the string
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.