DragonflyCMS Projects > Storez > [fixed] Orders not reporting correct quantity (page 2) > Community Forums > Phoenix Netology
Forum Index > eCommerce > Storez

[fixed] Orders not reporting correct quantity Reply to topic


I'm going to post my php settings and hope that maybe you can spot something in there that my settings are not good.

I re-did the entire site, reinstalled Dragonfly, configured it to minimum stuff, all default. Only thing installed is Storez, which is configured to the best of my knowledge correctly. The fresh installs still do the same thing on the one product added.

--------------------------------------
PHP Core

Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /usr/lib/php/modules /usr/lib/php/modules
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:.: .:.:
log_errors Off On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 60 60
max_input_time 60 60
memory_limit 32M 32M
open_basedir /var/www/vhosts/dimestoredistro.com/httpdocs:/tmp no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from Ian@dimestoreproductions.com no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 3M 3M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
------------------------------------------------

I appreciate your taking time to look. I really think this has to be something simple, some setting not right somewhere. If there is ANY information I can give to help diagnose this, please let me know.

Please enter your server specs in your user profile! 😢


I have tried installing Storez on another completely fresh domain name on the same server...and have the same problem.

I believe it is a server/software setting, and I would believe diagnosing this would help others who run into this problem in checkout, because it really is a killer, cant use the program if it's not reporting quantity and price in order records.

I hope to hear on the ideas I've expressed for solving this. I really love Dragonfly and every glitch or problem I've run into has been an easy fix of something that wasn't set right or that I did wrong. I believe this problem is no less simple, if we look at settings that work vs. mine.

If anyone reading this can take the time to help, as we all know Phoenix is a very busy person, let me know.

Please enter your server specs in your user profile! 😢


Needs an Edit in the class.checkout.php file line #445

FROM: VALUES ('$orderID', '$usercartinfo[user_id]', '$usercartinfo[type]', '$iid', '$sid', '".Fix_Quotes($prodCode)."', '".Fix_Quotes($prodName)."', '".Fix_Quotes($prodBrand)."', '".Fix_Quotes($prodModel)."', '$prodInstant', '$itemCost', '$qty', '$qtyremain', '0')");

TO: VALUES ('$orderID', '$usercartinfo[user_id]', '$usercartinfo[type]', '$iid', '$sid', '".Fix_Quotes($prodCode)."', '".Fix_Quotes($prodName)."', '".Fix_Quotes($prodBrand)."', '".Fix_Quotes($prodModel)."', '$prodInstant', '0', '$itemCost', '$qty', '$qtyremain')");

That fixed it for me also working with Sandbox

Please enter your server specs in your user profile! 😢


I will try that!!!!!!! Thank you!!!!!!!

Please enter your server specs in your user profile! 😢


Thanks RickC - I can now see how that occurred when I added the instant download code Embarassed

The real issue is that I have missed upgrading a query to a more correct format - inserts should really be in the form

INSERT INTO $table (column1, column2, column3, etc)
VALUES ($value1, $value2, $value3, etc)

I'll fix that one and many others I haven't done yet so it can't happen again.
$db->sql_query("INSERT INTO ".$prefix."_cart_orders_cartitems (orderID, userID, userType, itemID, prodID, prodCode, prodName, prodBrand, prodModel, prodInstant, prodDLcount, itemCost, qty, qtyRemain) VALUES ('$orderID', '$usercartinfo[user_id]', '$usercartinfo[type]', '$iid', '$sid', '".Fix_Quotes($prodCode)."', '".Fix_Quotes($prodName)."', '".Fix_Quotes($prodBrand)."', '".Fix_Quotes($prodModel)."', '$prodInstant', '0', '$itemCost', '$qty', '$qtyremain')");

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are Australia/Adelaide


Jump to: