This will require some custom code, but it should be pretty straight
forward... You can make the input either read only or hidden, but I'd also
suggest adding a validation to the LineItem model to prevent a quantity
greater than 1.
On Thursday, February 21, 2013 9:29:46 AM UTC-6, Erwin wrote:

In the site I am working on , all products are unique ( yes, it's a
craftwork site...) so I need to fix the qty in the cart to 1 ... ( user
cannot order more )

Should I make the input value read-only ( so user cannot modify it ... )
or can I set a parameter ?

thanks for feedback...
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Erwin at Feb 21, 2013 at 4:09 pm
    thanks I understand ...
    fine for the model validation .. ( as a Rails dev I know where it is
    located)

    but regarding the input read-only , I am concerned with one issue :
    - do you have any idea on where I should Deface it ? ( which partial ...)


    Le jeudi 21 février 2013 16:34:39 UTC+1, Andrew Hooker a écrit :
    This will require some custom code, but it should be pretty straight
    forward... You can make the input either read only or hidden, but I'd also
    suggest adding a validation to the LineItem model to prevent a quantity
    greater than 1.
    On Thursday, February 21, 2013 9:29:46 AM UTC-6, Erwin wrote:

    In the site I am working on , all products are unique ( yes, it's a
    craftwork site...) so I need to fix the qty in the cart to 1 ... ( user
    cannot order more )

    Should I make the input value read-only ( so user cannot modify it ... )
    or can I set a parameter ?

    thanks for feedback...
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedFeb 21, '13 at 3:34p
activeFeb 21, '13 at 4:09p
posts2
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Andrew Hooker: 1 post Erwin: 1 post

People

Translate

site design / logo © 2022 Grokbase