Forum
Empty Country dropdown
Hi
In Perch Shop, on the customer create stage, the country dropdown is empty. I've added a shipping zone and have my Tax location set, but its remaining empty.
I'm calling the form by;
<?php
if (!perch_member_logged_in()) {
// Returning customer login form
perch_member_form('~perch_shop/templates/shop/checkout/customer_login.html');
// New customer sign up form
PerchSystem::set_var('country_list', PerchShop_Countries::get_list_options());
perch_member_form('~perch_shop/templates/shop/checkout/customer_create.html');
}
?>
The form is from the default, just styled with bootstrap (but I have also tested with the default).
What am I missing?
I updated Shop from Gamma 33 (running the update first)
Diagnostics
Perch: 2.8.29, PHP: 5.6.10, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_shop_orders (1.0), perch_shop_products (1.0), perch_shop (1.0), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', 'perch_shop', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Volumes/FFD Web Work/Element/Manufacturing-Lab Website/root/perch
PERCH_CORE: /Volumes/FFD Web Work/Element/Manufacturing-Lab Website/root/perch/core
PERCH_RESFILEPATH: /Volumes/FFD Web Work/Element/Manufacturing-Lab Website/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: elementml
DOCUMENT_ROOT: /Volumes/FFD Web Work/Element/Manufacturing-Lab Website/root
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Looks like you've got some very old code there.
https://docs.grabaperch.com/addons/shop/customers/
Ah, thank you.
Yes, I've been catching up from gamma 21 replacing old code... missed that one.