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 7549361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:55:56+00:00 2026-05-30T09:55:56+00:00

i have a product which can be customized by the user. ie: he can

  • 0

i have a product which can be customized by the user. ie: he can add some free text on both sides of the medal, added by a nice gravur.

what would be the best way to build this – maybe its a little bit dificult

should i add 2 fields to spree_line_items: “custom_front” and “custom_back”
and add a field to the product to check if it can be customized?
is that the best way?

amd seriously, i dont know why stackoverflow means, that these question doenst meet the quality standards. lol

  • 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-05-30T09:55:57+00:00Added an answer on May 30, 2026 at 9:55 am

    First, I’d add a boolean field to the products table to identify whether or not products can be personalized.


    Next, I’d recommend creating a new custom model that contains personalizations and belongs_to line items.

    A “personalizations” table would contain fields id, line_item_id, custom_front, and custom_back.


    You will have to override the product page to show the text fields for custom_front and custom_back when is_personalizeable is true.


    Also, when an item is added to the cart, you’ll have to add a callback to insert into the Personalizations table (if product can be personalized) and tie it to the line item. You’ll likely have to override Spree’s core add to cart methods here.

    I’m recommending this method because:

    • Abstracting it into a separate table is a little bit more friendly in terms of maintenance, i.e. when you go to upgrade Spree in the future, your table won’t need to be touched.
    • The data model is a little more normalized. Not all line items will have attached personalized details, so you’ll have a little bit less data storage by storing in a separate table.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a field 'Description' which can have product descriptions with any unicode characters.
I have a single product table with multiple fields which contain user evaluations of
I have a website which sells a product to the user (downloadable). I am
I have a product which is owned by a user in my CouchDB. product
I have a Eclipse RCP product which I build with Tycho. After some smaller
I have implemented product management system.I want to add one new features in which
I have product panels on a cart-view page where the user can click an
Let's say I have a product which can have a colour. Depending on the
I have a product table which simplifies to this: create table product(id int primary
I have an entity Product which has relationship category, which is optional, and use

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.