Thank you very much. Those are some great starting points. Happy Thursday...
Bill On Thu, Jul 13, 2023 at 1:23 PM Jason RJ <[email protected]> wrote: > Actually Bill I see you've said you are using a configurable item for > the thread color, so you probably won't have the comment box visible as > they are missing from configurable product screen template. You might > consider using a virtual product with the thread colors features to > drive variants instead if that's the case, then you'll get the comment > box back. > > Failing that a small code change to pull the comment code into > ConfigProductDetail.ftl > > <#assign commentEnable = > Static["org.apache.ofbiz.entity.util.EntityUtilProperties"] > .getPropertyValue("order", "order.item.comment.enable", > delegator)> > <#if commentEnable.equals("Y")> > <#assign orderItemAttr = > Static["org.apache.ofbiz.entity.util.EntityUtilProperties"] > .getPropertyValue("order", "order.item.attr.prefix", > delegator)> > <div class="form-group"> > <label for="${orderItemAttr}comment"> > ${uiLabelMap.CommonComment} </label> <input type="text" > class="form-control" name="${orderItemAttr}comment" > id="${orderItemAttr}comment"/> > </div> > </#if> > > Jason > > On 13/07/2023 21:07, Jason RJ wrote: > > Hi Bill > > > > I don't think you have another OOTB option except the 'comment' box on > > the product page. You could add some text to the product description > > to tell the user that they should provide their chosen name in the > > comment field. This gets carried through to an Order Item Attribute > > and is shown on the checkout screen etc. > > > > You might have comments disabled depending on the value of > > 'order.item.comment.enable' in order.properties. > > > > Jason > > > > On 13/07/2023 18:27, Bill Harder wrote: > >> Thank you Jason. > >> > >> I see how that works now. Are you aware of any other inputs that > >> might be > >> on the same initial screen? > >> > >> I am thinking about OOTB so I don't have to custom develop. > >> > >> Bill > >> > >> On Thu, Jul 13, 2023 at 8:34 AM Jason RJ<[email protected]> wrote: > >> > >>> Hey Bill, > >>> > >>> Take a look at the demo content and see how the Gift Cards are setup - > >>> they have a product survey that captures the user's response to > >>> questions. > >>> > >>> > >>> > https://demo-stable.ofbiz.apache.org/ecommerce/gift-card-activation-c50-GC-001-C50-p > >>> > >>> > >>> Hope that helps, > >>> > >>> Jason > >>> > >>> On 13/07/2023 14:58, Bill Harder wrote: > >>>> Happy Thursday... > >>>> > >>>> I am looking for a way where a user can enter custom text on an order > >>> line > >>>> item. > >>>> > >>>> A user orders a toolbag and wants to have his name embroidered on > >>>> it in > >>> Red > >>>> thread. It's fairly easy to set up a configurable item with a thread > >>> color > >>>> selection but where would be a good place to start for a name entry > >>>> of 10 > >>>> letters. > >>>> > >>>> The only discussion I have been able to find is from back in 2016 on > >>>> MarkMail. > >>>> > >>> > https://ofbiz.markmail.org/search/?q=user-provided+data#query:user-provided%20data+page:1+mid:qj53fjm3s5qydvmh+state:results > >>> > >>>> Any pointers are most appreciated. Thanks. > >>>> > >>>> Bill > >>>> > >> > >> -- Bill Harder OsZ Technologies 256 N State St Ste D Hemet, CA 92543 Voice: 818-632-5790 eMail: [email protected] www: www.osz.com
