armed-smoking
 
Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Storez » [fixed] Orders not reporting correct quantity
[fixed] Orders not reporting correct quantity
A comprehensive shopping cart solution.
Topic initiation via Bugger.

Go to page Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Storez

View previous topic :: View next topic  
Author Message
AIPman1
Nice Poster
Nice Poster

Offline Offline
Joined: Jan 16, 2008
Posts: 30

PostPosted: Thu Jan 31, 2008 12:48 am
Post subject: Re: Orders not reporting correct quantity

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.


AIPman1's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.54 (Fedora)/4.1.20/5.0.4/9.1.2.1
Back to top
View user's profile Visit poster's website
AIPman1
Nice Poster
Nice Poster

Offline Offline
Joined: Jan 16, 2008
Posts: 30

PostPosted: Sat Feb 02, 2008 5:26 am
Post subject: Re: Orders not reporting correct quantity

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.


AIPman1's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.54 (Fedora)/4.1.20/5.0.4/9.1.2.1
Back to top
View user's profile Visit poster's website
RickC
Manager
Manager

Offline Offline
Joined: Nov 09, 2006
Posts: 53
Location: Sharps Chapel, TN
PostPosted: Sat Feb 09, 2008 11:35 am
Post subject: Re: Orders not reporting correct quantity

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


RickC's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux infong 2.4 /5.0.91-log (client: 5.0.92)/5.2.17/9.3.3.0
Back to top
View user's profile Visit poster's website
AIPman1
Nice Poster
Nice Poster

Offline Offline
Joined: Jan 16, 2008
Posts: 30

PostPosted: Sat Feb 09, 2008 12:22 pm
Post subject: Re: Orders not reporting correct quantity

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


AIPman1's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 2.0.54 (Fedora)/4.1.20/5.0.4/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1457
Location: Netizen
PostPosted: Sat Feb 09, 2008 3:08 pm
Post subject: Re: Orders not reporting correct quantity

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.
Code::
			$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')");


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Storez
Page 2 of 2
All times are GMT + 9.5 Hours
Go to page Previous  1, 2



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum