Forum
Missing shippings_list variable
I can't list shipping methods (they are in DB)
page:
perch_shop_cart([
'template'=>'cart/cart.html'
]);
template:
<perch:form id="shipping_method" method="post" app="perch_shop">
<h4>Shipping method</h4>
<perch:error for="all" type="login">
<p class="error">Sorry, there was a problem.</p>
</perch:error>
<div>
<perch:label for="shipping">Method</perch:label>
<perch:input type="select" options="<perch:shop id="shippings_list" />" id="shipping" required="true" placeholder="Please choose" />
<perch:error for="shipping" type="required">Required</perch:error>
</div>
<div>
<perch:input type="submit" id="submit" value="OK!" />
<perch:input type="hidden" id="r" />
</div>
</perch:form>
diag:
Perch Runway: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_forms (1.8.3), perch_shop_orders (1.0.8), perch_shop_products (PERCH_SHOP_VERSION), perch_shop (1.0.8), perch_members (1.5)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_categories (12), perch2_category_counts (0), perch2_category_sets (1), perch2_collection_index (0), perch2_collection_items (0), perch2_collection_revisions (0), perch2_collections (0), perch2_content_index (11), perch2_content_items (6), perch2_content_regions (6), perch2_forms (0), perch2_forms_responses (0), perch2_members (10), perch2_members_forms (1), perch2_members_member_tags (0), perch2_members_sessions (4), perch2_members_tags (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (8), perch2_page_templates (13), perch2_pages (12), perch2_resource_log (1251), perch2_resource_tags (0), perch2_resources (1260), perch2_resources_to_tags (0), perch2_settings (27), perch2_shop_addresses (92), perch2_shop_admin_index (64), perch2_shop_brands (1), perch2_shop_cart (164), perch2_shop_cart_data (125), perch2_shop_cart_items (67), perch2_shop_countries (250), perch2_shop_currencies (152), perch2_shop_customers (9), perch2_shop_emails (1), perch2_shop_index (5643), perch2_shop_option_values (5), perch2_shop_options (1), perch2_shop_order_items (35), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (37), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (125), perch2_shop_product_options (63), perch2_shop_product_tags (0), perch2_shop_products (219), perch2_shop_promotions (1), perch2_shop_search (137), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (2), perch2_shop_tax_exhibits (111), perch2_shop_tax_group_rates (1), perch2_shop_tax_groups (1), perch2_shop_tax_locations (1), perch2_shop_tax_rates (1), perch2_shop_variants (115), perch2_user_passwords (0), perch2_user_privileges (70), perch2_user_role_privileges (31), perch2_user_roles (3), perch2_users (3)
Users: 3
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_forms',
'perch_members',
'perch_shop',
);
Editor plug-ins: markitup
H1: 109a69624a248c0385f9f4b5d6640edd
L1: 68699d7536715fcdd89d78099c7e37d5
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: rgb(54,54,54)
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.8.31: done
headerScheme: dark
update_runway_2.8.31: done
latest_version: 2.8.15
on_sale_version: 2.8.31
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_shop_update: 1.0.8
perch_shop_price_tax_mode: inc
perch_shop_trade_price_tax_mode: inc
perch_shop_site_url: https://
perch_shop_product_url: /shop/products/{slug}
perch_shop_default_currency: 36
perch_shop_reporting_currency: 36
perch_shop_invoice_number_format: 2016%'.04d
perch_members_login_page: /members/login.php?r={returnURL}
logoPath: /admin/resources/rebellalogotyppng-1.png
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /var/www/virtuals/perch/cz.rebella
PERCH_SCHEDULE_SECRET: samdbCS7soBYl6BE
PERCH_DB_USERNAME: rebella
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: virtuals_perch_cz_rebella
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: jiri@pixelpromo.cz
PERCH_EMAIL_FROM_NAME: Jiří Zavadil
PERCH_LOGINPATH: /admin
PERCH_PATH: /var/www/virtuals/perch/cz.rebella/admin
PERCH_CORE: /var/www/virtuals/perch/cz.rebella/admin/core
PERCH_RESFILEPATH: /var/www/virtuals/perch/cz.rebella/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/Prague
PERCH_IMAGE_LIB: imagick
PERCH_DEBUG: 1
PERCH_RUNWAY: 1
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/virtuals/perch/cz.rebella/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
PERCH_SHOP_VERSION: 1.0.8
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS
PHP: 5.4.45-0+deb7u4
Zend: 2.4.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.5.44
MySQL server: 5.5.44-0+deb7u1
Free disk space: 23.32 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, json, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, curl, intl, mysql, mysqli, pdo_mysql, imagick, mhash
GD: No
ImageMagick: Yes
PHP max upload size: 1024M
PHP max form post size: 128M
PHP memory limit: 128M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
SCRIPT_URL: /admin/core/settings/diagnostics/
SCRIPT_URI: https://rebella-cz.test.pixelpromo.cz/admin/core/settings/diagnostics/
HTTP_HOST: rebella-cz.test.pixelpromo.cz
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=25qknkt13gra0h067kmin7okq1; cmsa=1; cmssb=1; p_m=e8d71dbeb7be2dbec2c54f20b00fc1a1b4cc2ef0
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://rebella-cz.test.pixelpromo.cz/admin/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
PATH: /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE: <address>Apache/2.2.22 (Debian) Server at rebella-cz.test.pixelpromo.cz Port 80</address>
SERVER_SOFTWARE: Apache/2.2.22 (Debian)
SERVER_NAME: rebella-cz.test.pixelpromo.cz
SERVER_ADDR: 89.185.250.67
SERVER_PORT: 80
REMOTE_ADDR: 80.95.250.163
DOCUMENT_ROOT: /var/www/virtuals/perch/cz.rebella
SERVER_ADMIN: [no address given]
SCRIPT_FILENAME: /var/www/virtuals/perch/cz.rebella/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 39265
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1472512896.525
REQUEST_TIME: 1472512896
I don't believe the cart will have
shippings_list
in it by default. You'd need to pass those in. The cart is intended for displaying the contents of the cart.It doesn't :( I've done it better now :) thanks