jaimeweb Posted October 13, 2008 Share Posted October 13, 2008 OMG please someone help me :(. Ok i am having a problem which im sure many of you have had before. My only way of payment method is through paypal. But for some reason my stock level never go's down. Now i sell clothing and products that have different sizes and colours ect. for example: T-shirt / avalible in size: S,M,L,XL and colours: black, white, red. Oscommerce does not alow me to make attributes for all of these and still keep track of which are in stock and out of stock. Can someone please point me to the right mod so i can do this. I have just tried to install a mod i found on the net but it didnt work and i had to go back to the original files...now for some reason i am gettin this message when i add something to my cart or click cart contents. 1054 - Unknown column 'popt.products_options_track_stock' in 'field list' select popt.products_options_name, popt.products_options_track_stock, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from products_options popt, products_options_values poval, products_attributes pa where pa.products_id = '32' and pa.options_id = '1' and pa.options_id = popt.products_options_id and pa.options_values_id = '20' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '1' and poval.language_id = '1' [TEP STOP] Can someone tell me where the problem is and what i have done. :(. Also i have just installed the Paypal IPN script which i learnt i had to have for the stock level mod to work correctly. Please help! thank you so much Link to comment Share on other sites More sharing options...
♥Vger Posted October 13, 2008 Share Posted October 13, 2008 The error is being caused by an incomplete install of QT Pro (Quanity Tracking Professional). You have to uninstall all of it, not just new files but the amendments to existing files. Vger Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 Ah ha. I know what may be causing this. I did try to install a script that allows me to keep track of me stock level but i got confussed and messed it up a little and then tried to replace the files i had replaced with their original ones, but somehting went wrong. Becuase if i add a product to the cart with no attributes it works fine. but if i add a product with attributes it comes up with this error on page address: www.mysite.com/store/checkout_shipping.php 1054 - Unknown column 'popt.products_options_track_stock' in 'field list' select popt.products_options_name, popt.products_options_track_stock, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from products_options popt, products_options_values poval, products_attributes pa where pa.products_id = '32' and pa.options_id = '1' and pa.options_id = popt.products_options_id and pa.options_values_id = '20' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '1' and poval.language_id = '1' [TEP STOP] So i think its something to do with that. can anyone help me try and get this working again. I have tried replacing the files again with their original ones...but it doesnt seem to work. Also i know ive not removed the script completely becuase when i login to my admin panel, in the Configuration tab there is a new option that says "Prod Info (QTPro)". That only appeard when i tried to install that add on. I dont think that should be there anymore if i had removed it completely! Hope this helps Link to comment Share on other sites More sharing options...
Guest Posted October 13, 2008 Share Posted October 13, 2008 Ah ha. I know what may be causing this. I did try to install a script that allows me to keep track of me stock level but i got confussed and messed it up a little and then tried to replace the files i had replaced with their original ones, but somehting went wrong. Becuase if i add a product to the cart with no attributes it works fine. but if i add a product with attributes it comes up with this error on page address: www.mysite.com/store/checkout_shipping.php 1054 - Unknown column 'popt.products_options_track_stock' in 'field list' select popt.products_options_name, popt.products_options_track_stock, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from products_options popt, products_options_values poval, products_attributes pa where pa.products_id = '32' and pa.options_id = '1' and pa.options_id = popt.products_options_id and pa.options_values_id = '20' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '1' and poval.language_id = '1' [TEP STOP] So i think its something to do with that. can anyone help me try and get this working again. I have tried replacing the files again with their original ones...but it doesnt seem to work. Also i know ive not removed the script completely becuase when i login to my admin panel, in the Configuration tab there is a new option that says "Prod Info (QTPro)". That only appeard when i tried to install that add on. I dont think that should be there anymore if i had removed it completely! Hope this helps You should not duplicate posts and then ignore the answers provided in the other forum. You were told to manually undo the changes that you made to existing files. BTW. This was reported as a duplicate post, so I hope it gets removed. Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 I didny mean to. I took a while to post so i must of clicked it twice. sorry. i didnt ignore it i just didnt read it until i reposted another message. sorry Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 Yes i understand but i thought i had undo all the changes...but obviously not :(... Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 ?? :( Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 Can anyone help me with this as i still am having a problem. And i dont no any way around it. Link to comment Share on other sites More sharing options...
lindsayanng Posted October 13, 2008 Share Posted October 13, 2008 you didnt undo all your changes because you would not be getting that error. You need to open the shopping_cart.php and compare it to an old backup and find where the QT track code was entered.. if you put notes in the fields where you made changes, then you should be just fine removing it.. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 i have replaced all the files with the old ones. and im still getting this error...although i did need to make new entries in the php admin for the sql...i havnt removed them....would i need to? Link to comment Share on other sites More sharing options...
lindsayanng Posted October 13, 2008 Share Posted October 13, 2008 you can restore your database to the backup that you SHOULD have made before making any changes to it... OR you can write a query that will undo what the code had you do HOWEVER, it doesnt seem that just because the info is in the database it has to be put on the page.. SOMETHING has to be asking for it from your .php pages A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 well this is the code i put in phpoadmin to run the new script: how do i reverse this? ...no i didnt make a backup....i know from now on! :( # ===== QTPro ===== # This SQL code will instert the configuration menu 'Prod Info (QTPro)' and it's keys. # As "DELETE FROM ... " is run before every entry this file can be run over the same database as many times as you like =) # This is good as it makes updating easy. # Future contributors; Please continue this tradition. # ==================== # Insert configuration group for Product Information page DELETE FROM configuration_group WHERE configuration_group_id=888001; INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (888001, 'Prod Info (QTPro)', 'Configuration options for the Product Information page. This configuration menu is acctually the menu for the contribution QTPro.', 8, 1); # Insert configuration keys for Product Information Page DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_PLUGIN'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Product Info Attribute Display Plugin', 'PRODINFO_ATTRIBUTE_PLUGIN', 'multiple_dropdowns', 'The plugin used for displaying attributes on the product information page.', 888001, 1, now(), NULL, 'tep_cfg_pull_down_class_files(\'pad_\','); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_SHOW_OUT_OF_STOCK'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Show Out of Stock Attributes', 'PRODINFO_ATTRIBUTE_SHOW_OUT_OF_STOCK', 'True', '<b>If True:</b> Attributes that are out of stock will be displayed.<br /><br /><b>If False:</b> Attributes that are out of stock will <b><em>not</em></b> be displayed.</b><br /><br /><b>Default is True.</b>', 888001, 10, now(), NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),'); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_MARK_OUT_OF_STOCK'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Mark Out of Stock Attributes', 'PRODINFO_ATTRIBUTE_MARK_OUT_OF_STOCK', 'Right', 'Controls how out of stock attributes are marked as out of stock.', 888001, 20, now(), NULL, 'tep_cfg_select_option(array(\'None\', \'Right\', \'Left\'),'); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_OUT_OF_STOCK_MSGLINE'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Display Out of Stock Message Line', 'PRODINFO_ATTRIBUTE_OUT_OF_STOCK_MSGLINE', 'True', '<b>If True:</b> If an out of stock attribute combination is selected by the customer, a message line informing on this will displayed.', 888001, 30, now(), NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),'); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Prevent Adding Out of Stock to Cart', 'PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK', 'True', '<b>If True:</b> Customer will not be able to ad a product with an out of stock attribute combination to the cart. A javascript form will be displayed.', 888001, 40, now(), NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),'); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_ACTUAL_PRICE_PULL_DOWN'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Use Actual Price Pull Downs', 'PRODINFO_ATTRIBUTE_ACTUAL_PRICE_PULL_DOWN', 'False', '<font color="red"><b>NOTE:</b></font> This can only be used with a satisfying result if you have only one option per product.<br /><br /><b>If True:</b> Option prices will displayed as a final product price.<br /><br /><b>Default is false.</b>', 888001, 40, now(), NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),'); DELETE FROM configuration WHERE configuration_key='PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST'; INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('Display table with stock information', 'PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST', 'True', '<b>If True:</b> A table with information on whats on stock will be displayed to the customer. If product doesn\'t have any attributes with tracked stock; the table won\'t be displayed.<br /><br /><b>Default is true.</b>', 888001, 50, now(), NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),'); Link to comment Share on other sites More sharing options...
lindsayanng Posted October 13, 2008 Share Posted October 13, 2008 that i can not help you with.. i am not very good with that and since i never used that contribution, it is even more beyond what i can do.. but hopefully someone else can come by and help A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 Ohhh Never minddddd. ive done it :)! Woooo Hooooo Link to comment Share on other sites More sharing options...
lindsayanng Posted October 13, 2008 Share Posted October 13, 2008 posting what you did will help others with similar issues A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jaimeweb Posted October 13, 2008 Author Share Posted October 13, 2008 I just installed it again. lol and it worked this time. i prob did summut rong last time Link to comment Share on other sites More sharing options...
Guest Posted October 13, 2008 Share Posted October 13, 2008 I just installed it again. lol and it worked this time. i prob did summut rong last time That is an understatement. Link to comment Share on other sites More sharing options...
Django.1 Posted January 21, 2009 Share Posted January 21, 2009 The confusion is about the the two sql files. You should run both files config.sql and new_install.sql. I made the same mistake thinking the new_install.sql file would only be for a new OScommerce installation. (got the same error) But it's for a new QTPro installation so even if you have modified store you should run both sql files. Hope this brings some clarity. :rolleyes: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.