Forum
Strange behavior from perch_shop_customer_addresses();
I have placed the perch_shop_customer_addresses();
function on the account page of my site. For some reason every time I go through checkout, additional addresses are listed.
https://nlms.ptwclients.com/account/
login with:
user - elliot@watermain.co
password - 1
Notice the list of "Saved Addresses"
There is no way to add addresses during the checkout process, the user enters billing and shipping addresses when they create their account.
It seems that whatever addresses are selected as the billing and shipping addresses are saved to the account over again, creating duplicate addresses.
In the checkout process, the user sets their billing and shipping addresses with perch_shop_order_address_form();
that form only ever lists two address options for each and it seems that the addresses that are selected in that form are the ones being duplicated.
Why is this occurring?
Diagnostic report follows, should I provide the code for the checkout/account pages in question?
PERCH INFORMATION
Perch: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (4.6), perch_gallery (2.8.6), perch_shop_orders (1.0), perch_shop_products (1.0), perch_shop (1.0), perch_members (1.5)
DB driver: PDO
DB tables: perch2_blog_authors (2), perch2_blog_comments (1), perch2_blog_index (58), perch2_blog_posts (2), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (0), perch2_categories (9), perch2_category_counts (4), perch2_category_sets (3), perch2_content_index (376), perch2_content_items (65), perch2_content_regions (27), perch2_gallery_albums (2), perch2_gallery_image_versions (36), perch2_gallery_images (6), perch2_members (1), perch2_members_forms (2), perch2_members_member_tags (0), perch2_members_sessions (3), perch2_members_tags (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (12), perch2_resource_log (58), perch2_resource_tags (0), perch2_resources (28), perch2_resources_to_tags (0), perch2_settings (36), perch2_shop_addresses (93), perch2_shop_admin_index (115), perch2_shop_brands (3), perch2_shop_cart (135), perch2_shop_cart_data (67), perch2_shop_cart_items (30), perch2_shop_countries (248), perch2_shop_currencies (152), perch2_shop_customers (22), perch2_shop_emails (1), perch2_shop_index (121), perch2_shop_option_values (0), perch2_shop_options (0), perch2_shop_order_items (58), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (29), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (0), perch2_shop_product_options (0), perch2_shop_product_tags (0), perch2_shop_products (2), perch2_shop_promotions (0), perch2_shop_search (2), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (5), perch2_shop_tax_exhibits (29), perch2_shop_tax_group_rates (4), perch2_shop_tax_groups (2), perch2_shop_tax_locations (2), perch2_shop_tax_rates (4), perch2_shop_variants (0), perch2_user_passwords (0), perch2_user_privileges (40), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (3)
Users: 3
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_blog',
'perch_gallery',
'perch_members',
'perch_shop',
);
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup, redactor
H1: 9c702c695b88f1858251d0b4961e9a28
L1: ea6b7a565b306e5b31909206d102b996
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #69b853
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.8.13: done
latest_version: 2.8.15
on_sale_version: 2.8.29
perch_gallery_update: 2.8.5
perch_blog_update: 5.0
perch_blog_post_url: /news/post.php?s={postSlug}
update_2.8.27: done
headerScheme: dark
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_basicUpload: 0
update_2.8.29: done
perch_members_update: 1.4
perch_shop_price_tax_mode: exc
perch_shop_site_url: https://
perch_shop_product_url: /shop/products/{slug}
perch_shop_default_currency: 142
perch_shop_reporting_currency: 142
perch_shop_invoice_number_format: Invoice%d
perch_members_login_page: /members/login.php?r={returnURL}
logoPath: /edit/resources/logo2x.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: ptwclien_nlms
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: ptwclien_nlms-perch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: elliot@watermain.co
PERCH_EMAIL_FROM_NAME: Elliot Berg
PERCH_LOGINPATH: /edit
PERCH_PATH: /home/ptwclients/public_html/nlms/edit
PERCH_CORE: /home/ptwclients/public_html/nlms/edit/core
PERCH_RESFILEPATH: /home/ptwclients/public_html/nlms/edit/resources
PERCH_RESPATH: /edit/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/ptwclients/public_html/nlms/edit/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_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS
PHP: 5.5.35
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
MySQL server: 5.6.28-log
Free disk space: 3.10 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, sqlite3, pdo_sqlite, htscanner, mhash, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 128M
PHP max form post size: 128M
PHP memory limit: 512M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
CONTEXT_DOCUMENT_ROOT: /home/ptwclients/public_html/nlms
DOCUMENT_ROOT: /home/ptwclients/public_html/nlms
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: cmsa=1; p_m=5137db470804d3cba82405ef1b2e276f8cbdfd52; _ga=GA1.2.1259999718.1462562737; PHPSESSID=2f643e8ed07481d12767bedaef6fb5cc
HTTP_HOST: nlms.ptwclients.com
HTTP_REFERER: https://nlms.ptwclients.com/edit/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 67.85.169.187
REMOTE_PORT: 52665
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /edit/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/ptwclients/public_html/nlms/edit/core/settings/diagnostics/index.php
SCRIPT_NAME: /edit/core/settings/diagnostics/index.php
SERVER_ADDR: 74.124.210.174
SERVER_ADMIN: webmaster@nlms.ptwclients.com
SERVER_NAME: nlms.ptwclients.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VzCyoMCR7ycABu5QbPoAAAjR
PHP_SELF: /edit/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1462809248.39
REQUEST_TIME: 1462809248
argc: 1
Is it a new set for every order placed? We do duplicate a lock the address against an order, so it may be that legitimate duplicates just aren't being filtered out of the listing.
Yes, a new set of addresses is being added with every order placed.
Ok, that sounds like what's happening then. We'll get it fixed.
I think this is the same problem I have been having where it lists multiple addresses. I thought the adding of multiple addresses was the problem but it sounds like that is what it should do.
Looking forward to the update on the filtering.