Issue on Single Purchase of $1,000 or greater

Permalink Browser Info Environment

I have found a bug with the module and patched it, but there are still a couple issues that are related to the same thing and should probably be taken care of without workarounds.

1) on view.purchase.amount.php within the elements folder, on line 21 you are using echo number_format($controller->paymentAmount,2). What occurs is that the number format breaks at the , so if you put anything > 1000 it truncates it to 2.00 or 3.00. Therefore, the total label next to the submit button shows 1.00 instead of $1000.00. All I did was remove the number_format from the input so it reads $controller->paymentAmount and it fixed the issue.

2) On the Add/Edit block the same issue occurs. If you enter a single purchase, submit the 1000.00 value it saves the value of 1000.00 as 1,000.00. Once I go to edit the total, after it is 1,000 it resets the total to 1.00 as it breaks at the comma.

Let us know if this helps resolve an issue and if there is a release that will occur in the future that corrects my temporary workaround.


Informatics Inc.

Type: Discussion
Status: In Progress
View Replies:
InformaticsInc replied on at Permalink Reply
On the Add/Edit popover, another option would be to add number validation so even if it does get changed to 1,000.00 it won't let you submit the value.
InformaticsInc replied on at Permalink Reply
Any feedback on this issue? Understanding our support is past the window, it is still in your best interest to fix this issue as it persists still within your module.

Informatics Inc.

concrete5 Environment Information

# concrete5 Version

# concrete5 Packages
Advanced Forms (1.13.2), Payment Form (2.1.4), Designer Content (3.1.1), Easy tabs (1.7.2), FileTree (1.3.1), Flickr Photos (1.2.1), IWLC Events (0.0.17), Pro Blog (12.4.4), Video Gallery Manager (0.9.2).

# concrete5 Overrides
blocks/agenda_item, blocks/autonav, blocks/button_link, blocks/button_links, blocks/content_testimonial, blocks/event_checkmark_block, blocks/event_view_all, blocks/external_button_link, blocks/external_button_links, blocks/header_group_block, blocks/homepage_callout_item, blocks/homepage_callout_items, blocks/homepage_featured, blocks/homepage_slider, blocks/homepage_video, blocks/image, blocks/profile_item, blocks/testimonail_with_image, blocks/testimonial, blocks/upcoming_events, languages/ar, languages/cs_CZ, languages/da_DK, languages/de_DE, languages/el_GR, languages/es_AR, languages/es_ES, languages/es_MX, languages/es_PE, languages/fa_IR, languages/fi_FI, languages/fr_FR, languages/it_IT, languages/ja_JP, languages/nb_NO, languages/nl_NL, languages/pl_PL, languages/pt_BR, languages/pt_PT, languages/ro_RO, languages/ru_RU, languages/sk_SK, languages/sl_SI, languages/sv_SE, languages/tr_TR, languages/vi_VN, languages/zh_TW, themes/iwlc

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12

# Server API

# PHP Version

# PHP Extensions
apache2handler, bcmath, bz2, calendar, com_dotnet, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 2500
memory_limit - 128M
post_max_size - 3M
sql.safe_mode - Off
upload_max_filesize - 64M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
xdebug.max_nesting_level - 100
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.