WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Accepting orders from anywhere but shipping only to a single country
  • Print
Pages: [1]   Go Down

Author Topic: Accepting orders from anywhere but shipping only to a single country  (Read 4362 times)

Offline svsanchez

  • Posts: 589
Accepting orders from anywhere but shipping only to a single country
« on: May 22, 2015, 08:00:40 PM »
Hello everyone.

I need to configure Bakery so that it allows people from anywhere in the world to make a purchase, but limit the shipping only to Guatemala. The reason for this is there are about 2 million Guatemalans living abroad but their families live in Guatemala, so they need to buy from the country they live in and have the product delivered to their loved ones here.

How can I do this? I am using Bakery 1.6
Logged

freeSbee

  • Guest
Re: Accepting orders from anywhere but shipping only to a single country
« Reply #1 on: May 23, 2015, 08:34:22 PM »
Hi svsanchez

Use the customer address form (invoice) and the shipping address form:
http://www.bakery-shop.ch/#shipping_address

For the customer address form modify the country list at /modules/bakery/languages/countries/ES.php

If you want to limit shipping to Guatemala only, modify the country select of the shipping address form. Search the code below (view_form.php about line 358):
Code: [Select]
// Prepare ship country options
for ($n = 1; $n <= count($MOD_BAKERY['TXT_COUNTRY_NAME']); $n++) {
and replace it by
Code: [Select]
// Prepare ship country options
$MOD_BAKERY['TXT_COUNTRY_CODE'] = array(); $MOD_BAKERY['TXT_COUNTRY_NAME'] = array();
$MOD_BAKERY['TXT_COUNTRY_CODE'][1] = 'GT'; $MOD_BAKERY['TXT_COUNTRY_NAME'][1] = 'Guatemala';
for ($n = 1; $n <= count($MOD_BAKERY['TXT_COUNTRY_NAME']); $n++) {

Regards Christoph
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Accepting orders from anywhere but shipping only to a single country
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2