I have a store that will be launched in Norway, and in the first version I will only handle 1 payment option "Attached invoice". This means, no payment module needed for my Spree app.
My question is then;
All my customers are going to be Norwegian, and I would like to disable the "Country" and "Zones" option and leave this out from the checkout process. I guess one approach would be to set default values and hide the input fields. Is this the way to go? Where should I start?
in the config/initializers/spree.rb file not sure if there is a similar option for countries but I left countries in on mine and removed all except UK.
On Tuesday, September 18, 2012 2:07:19 PM UTC+1, silver-f wrote:
> Hi Spree gurus,
> I have a store that will be launched in Norway, and in the first version I > will only > handle 1 payment option "Attached invoice". This means, no payment module > needed for my Spree app.
> My question is then;
> All my customers are going to be Norwegian, and I would like to disable > the "Country" and "Zones" option and > leave this out from the checkout process. I guess one approach would be to > set default values and hide the input fields. > Is this the way to go? Where should I start?
I manange to remove the country fields for scountry (shipping) and bcountry (billig country) with Deface. However, even though my default country is set, I still get
"Country can not be blank" when proceeding with the checkout. (when country fields are hidden).
On Wednesday, September 19, 2012 10:36:50 AM UTC+2, ashga wrote:
> for states I did: -
> config.address_requires_state = false
> in the config/initializers/spree.rb file not sure if there is a similar > option for countries but I left countries in on mine and removed all except > UK.
> On Tuesday, September 18, 2012 2:07:19 PM UTC+1, silver-f wrote:
>> Hi Spree gurus,
>> I have a store that will be launched in Norway, and in the first version >> I will only >> handle 1 payment option "Attached invoice". This means, no payment module >> needed for my Spree app.
>> My question is then;
>> All my customers are going to be Norwegian, and I would like to disable >> the "Country" and "Zones" option and >> leave this out from the checkout process. I guess one approach would be >> to set default values and hide the input fields. >> Is this the way to go? Where should I start?
On Monday, 1 October 2012 at 08:53, silver-f wrote:
> Thanks ashga.
> I manange to remove the country fields for scountry (shipping) and bcountry (billig country) with Deface.
> However, even though my default country is set, I still get
> "Country can not be blank" when proceeding with the checkout. (when country fields are hidden).
> How can I set the default country? Any ideas?
> On Wednesday, September 19, 2012 10:36:50 AM UTC+2, ashga wrote:
> > for states I did: -
> > config.address_requires_state = false
> > in the config/initializers/spree.rb file not sure if there is a similar option for countries but I left countries in on mine and removed all except UK.
> > On Tuesday, September 18, 2012 2:07:19 PM UTC+1, silver-f wrote:
> > > Hi Spree gurus,
> > > I have a store that will be launched in Norway, and in the first version I will only > > > handle 1 payment option "Attached invoice". This means, no payment module needed for my Spree app.
> > > My question is then;
> > > All my customers are going to be Norwegian, and I would like to disable the "Country" and "Zones" option and
> > > leave this out from the checkout process. I guess one approach would be to set default values and hide the input fields.
> > > Is this the way to go? Where should I start?
> > > Thank you very much
> -- > You received this message because you are subscribed to the Google Groups "Spree" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/Ot1SVKXdLxkJ.
> To post to this group, send email to spree-user@googlegroups.com (mailto:spree-user@googlegroups.com).
> To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com (mailto:spree-user+unsubscribe@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
On Monday, 1 October 2012 at 5:58 PM, Ash Ganatra wrote:
> Not sure if this will work for you but I removed all the countries from my default tax zone (not sure if you used tax on your store)
> so when I browse to /admin/zones/1/edit I only have the UK in the list.
> On Monday, 1 October 2012 at 08:53, silver-f wrote:
> > Thanks ashga.
> > I manange to remove the country fields for scountry (shipping) and bcountry (billig country) with Deface.
> > However, even though my default country is set, I still get
> > "Country can not be blank" when proceeding with the checkout. (when country fields are hidden).
> > How can I set the default country? Any ideas?
> > On Wednesday, September 19, 2012 10:36:50 AM UTC+2, ashga wrote:
> > > for states I did: -
> > > config.address_requires_state = false
> > > in the config/initializers/spree.rb file not sure if there is a similar option for countries but I left countries in on mine and removed all except UK.
> > > On Tuesday, September 18, 2012 2:07:19 PM UTC+1, silver-f wrote:
> > > > Hi Spree gurus,
> > > > I have a store that will be launched in Norway, and in the first version I will only > > > > handle 1 payment option "Attached invoice". This means, no payment module needed for my Spree app.
> > > > My question is then;
> > > > All my customers are going to be Norwegian, and I would like to disable the "Country" and "Zones" option and
> > > > leave this out from the checkout process. I guess one approach would be to set default values and hide the input fields.
> > > > Is this the way to go? Where should I start?
> > > > Thank you very much
> > -- > > You received this message because you are subscribed to the Google Groups "Spree" group.
> > To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/Ot1SVKXdLxkJ.
> > To post to this group, send email to spree-user@googlegroups.com (mailto:spree-user@googlegroups.com).
> > To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com (mailto:spree-user+unsubscribe@googlegroups.com).
> > For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
> -- > You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree-user@googlegroups.com (mailto:spree-user@googlegroups.com).
> To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com (mailto:spree-user+unsubscribe@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
1. Create a copy of _billing.html.erb and _shipping.html.erb into your Spree app to override it. 2. Remove the label and textfield in both files and replace with
> On Monday, 1 October 2012 at 08:53, silver-f wrote:
> Thanks ashga.
> I manange to remove the country fields for scountry (shipping) and > bcountry (billig country) with Deface. > However, even though my default country is set, I still get
> "Country can not be blank" when proceeding with the checkout. (when > country fields are hidden).
> How can I set the default country? Any ideas?
> On Wednesday, September 19, 2012 10:36:50 AM UTC+2, ashga wrote:
> for states I did: -
> config.address_requires_state = false
> in the config/initializers/spree.rb file not sure if there is a similar > option for countries but I left countries in on mine and removed all except > UK.
> On Tuesday, September 18, 2012 2:07:19 PM UTC+1, silver-f wrote:
> Hi Spree gurus,
> I have a store that will be launched in Norway, and in the first version I > will only > handle 1 payment option "Attached invoice". This means, no payment module > needed for my Spree app.
> My question is then;
> All my customers are going to be Norwegian, and I would like to disable > the "Country" and "Zones" option and > leave this out from the checkout process. I guess one approach would be to > set default values and hide the input fields. > Is this the way to go? Where should I start?
> Thank you very much
> -- > You received this message because you are subscribed to the Google Groups > "Spree" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/spree-user/-/Ot1SVKXdLxkJ. > To post to this group, send email to spree...@googlegroups.com<javascript:> > . > To unsubscribe from this group, send email to > spree-user+...@googlegroups.com <javascript:>. > For more options, visit this group at > http://groups.google.com/group/spree-user?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Spree" group. > To post to this group, send email to spree...@googlegroups.com<javascript:> > . > To unsubscribe from this group, send email to > spree-user+...@googlegroups.com <javascript:>. > For more options, visit this group at > http://groups.google.com/group/spree-user?hl=en.