jordan Posted April 8, 2003 Posted April 8, 2003 I just wanted to make sure you were using something compatible with Downloads Controller v5.3 Am I :?: :?: :?: i think i have csv 2.2 this script was pre installed by my hosting company so i am not sure. Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 8, 2003 Posted April 8, 2003 You have to ask your hosting site what version they are installing. Quote
jordan Posted April 8, 2003 Posted April 8, 2003 ok it is cvs 2.2 does this mean this contrib won't work? it sure looks cool and what i need for my site. :? Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 8, 2003 Posted April 8, 2003 Do you have in the Payment Modules the settings for orders_status? Â If you do, then it should work. Quote
jordan Posted April 8, 2003 Posted April 8, 2003 no. the order status is in the localizations section of admin. what do i need to do to get them in the right place with csv 2.2? Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 8, 2003 Posted April 8, 2003 When you go to the Payment Modules ... and click on an activemodule ... do you see: Set Order Status Quote
jordan Posted April 8, 2003 Posted April 8, 2003 When you go to the Payment Modules ... and click on an active module ... do you see: Set Order Status No i don't, i can only turn the payment modules on or off, even the active one. Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 8, 2003 Posted April 8, 2003 Can you peek inside /includes/modules/shipping/item.php and flat.php and zones.php and grab the Version tags from them? Quote
jordan Posted April 8, 2003 Posted April 8, 2003 Can you peek inside /includes/modules/shipping/item.php and flat.php and zones.php and grab the Version tags from them? Gladly, zones.php is v 1.15 2002/11/23 02:08:12 thomasamoulton Exp $ flat.php is v 1.36 2002/11/23 02:08:12 thomasamoulton Exp $ item.php is v 1.35 2002/11/23 02:08:12 thomasamoulton Exp $ I really appreciate your help on this. Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 9, 2003 Posted April 9, 2003 I am surprised that v5.3 is working for you. Â It is designed to work with newer shipping and payment modules. Â The orders_status is set based on the orders_status setting in the new Payment modules. Â Be sure to verify that it does work properly for each payment type. Â As to shipping, it should work right ... as it is looking for weight. Â But the control features of the Downloads Controller was designed to regulate when a download was allowed based on the Payment method used and that payment methods orders_status setting. Quote
jordan Posted April 9, 2003 Posted April 9, 2003 is there anything i can do to make the download controller work? like can i upgrade my payment modules? what versions of the above files do i need to get it to work? i am willing to do some work to get it to work. my store is still in it's peliminary stages and it is not up for customer use. i did not realize i was using a older code base. i might as well upgrade now instead of later when it is online and full of products. i would be distressed if i have to redo the whole database. Thanks again for your help. Quote It's a Zoo in Here, Literaly...
Ajeh Posted April 9, 2003 Posted April 9, 2003 Any reason why you can't get the current version? Â There are so many changes between your version and now it would be a good idea if you don't mind a little extra work reinstalling etc. Â If you do decide to update, rename your current shop something like /fred and either make a new MySQL or make a good backup if you have a lot of products and categories loaded. Quote
onimusha Posted April 9, 2003 Posted April 9, 2003 hi linda.. i'm using os commerce 2.2cvs.last time, my download modules doesn't work properly for example, when the product need to be paid before the download link available, the link is still show up, even there is no payment have been made. Therefore, i'm trying to add your download controller V5.3 to my cart and followed your instruction carefully. Actually i did not replace the general.php files in both admin and catalog folder since the changes you make is small, so i just add those couple of lines just like u said. After all, i manage to run the download module without any problems. I want to say thank you very much to u linda. U r great. :lol: Quote onimusha watanabe
Ajeh Posted April 10, 2003 Posted April 10, 2003 I am glad that worked for you ... later after I break a few things on my server I may need your help ... :D Â You email address trips off a bug I am encountering. And when I have more time and if you are free ... I could use some help trying to trigger the bug again. Â My idea is if you tripped the bug once ... you can trip the bug again ... 8) Quote
azer Posted November 21, 2003 Posted November 21, 2003 (edited) hi linda im trying to install the contribution 02/18/2003 - Downloads Controller v5.2 - MS1 on ms1 ian loaded , i use beyond compare to check the difference between my files and yours ...  firstable , i didnt know if i had to install this one or 02192003 - DownLoads Controller v5.3 wFree ShipPay Module since my download could be free or have a price ...  secondo u give in your zip package :  checkout_process.php   mine is : $Id: checkout_process.php,v 1.10 your is : $Id: checkout_process.php,v 1.125   i have a lot of difference other differences , but i dont know if they are part of modification i have to do to make downlaod controller works or is it differences due to different version of checkout_process.php , as i can only see // webmaker for the $sql_data_array = line 57 !?  expemple:  i have :  1. for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {  where u have LINE 100: for ($i=0; $i<sizeof($order_totals); $i++) {[/CODE : 2. i have : [CODE]if ((DOWNLOAD_ENABLED == 'true') && isset($attributes_values['products_attributes_filename']) && tep_not_null($attributes_values['products_attributes_filename'])) {  you have only line 126 : if (DOWNLOAD_ENABLED == 'true') {  3. i have : if ($order->products[$i]['attributes']) {  where u have if (isset($order->products[$i]['attributes'])) {  4. i have  for ($j=0; $j<sizeof($order->products[$i]['attributes']); $j++) {  where u have line 178:  for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {  5. strange : i have this time : if (DOWNLOAD_ENABLED == 'true') {  u have line 205 :  if ((DOWNLOAD_ENABLED == 'true') && isset($attributes_values['products_attributes_filename']) && tep_not_null($attributes_values['products_attributes_filename'])) {   FOR the account_history_info.php :   i have : <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">  u have line 61 :  <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">  as u can see i m very afraid to do any changement since it seems to be important part of the files ...  best regards Edited November 21, 2003 by azer Quote MS2
Jack_mcs Posted December 5, 2003 Posted December 5, 2003 After installing Downloads Controller, I got the error message "1064 - You have an error in your SQL syntax..." on my admin page. A search for a solution came up with an old thread that posted some changes to the order.php files. I made those changes and now I get "//missing sort fields" displayed. This appears to be from part of the code that was added to admin/orders.php. I've doubled checked the code I added and can't see where a mistake was made. Â I don't know if this is related but in the readme it says "Add a new Order Status...." I don't know how to do this but since it has a default value and I won't be using the downloads part of this distribution, I figured it wouldn't matter. But just in case, can someone explain to me how to do this? I went tomy admin page, and click on Orders Status but don't know what to do next. Â Any suggestions on either of these problems would be greatly appreciated. Â Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Kylie Posted December 6, 2003 Posted December 6, 2003 :D  Hi, I'm presently trying to get the downloads controller working myself. I had that error on the admin page as well.. (I can't remember which page!) error code 1064 near 'limit 0,10' at line 1  My solution to this was to restore my backup database and add the downloads controller database again. I think the downloadscontroller section of the database became corrupted after trying to get the downloads to work....  As I have been trying to add this component I have been writing a simple to follow step by step which I thought could be added to the README txt of the package. which answers your question "Add a new Order Status" No. 3 ( Contents below) A directory structure listing text would also be good to ensure one has all the files.  I've put the whole step by step here in the hope that anyone who has this working can fill out the blanks and correct any errors... **Be Warned** Not sure about steps 6 to 9.....I still do not have this contribution working. I am doing a test with a free product and no weight.... this just continues to the end ...all other payment catagories are the same(congratulations order success and no download) Never see a download button!  In the file catalog/includes/modules/downloads.php is says // The link will appear only if: // - Download remaining count is > 0, AND // - The file is present in the DOWNLOAD directory, AND EITHER // - No expiry date is enforced (maxdays == 0), OR // - The expiry date is not reached  So: Unless I'm missing an admin file: I cannot find anywhere to edit this information Where do you set the download remaining count? Is the download directory the default oscommerce download dir? Where do you set the expiry date?  I have been through every section of the admin at least 10 times maybe I can't see the forest for the trees.  Step by step ( 2003/12/04 Kylie) for Oscommerce 2.2-MS2 and Download Controller5.3 MS2.2  1. Untar /unzip the contents into respective folders. 2. Insert the contents of downloads_controller.sql into database (via phpadmin or via adminstration control panel ->configuration ->tools ->backup. 3. GOTO admin ->configuration ->localization ->orderstatus ->insert new item, name it ->Updated 4. GOTO admin ->configuration ->download Downloads Controller Update Status Value = 4 (See below) Downloads Controller Order Status Value = 2 (allows immediate downloads) Downloads Controller Order Status Value = Less than 2 will show Downloads Controller "on hold" message  5. GOTO admin ->configuration ->modules ->shipping Select FREE shipping ->install  6. Set payment module order status GOTO admin ->configuration ->modules ->payment Downloads Controller Update Status Value = 4 Pending = 1 Processing = 2 (I think this is correct??) Delivered = 3 Updated = 4 (Your new item)but could be different depending on how many orders_status settings you have.  7.. GOTO admin ->configuration ->choose product ->edit When product weight is 0, only Free Shipping shows. When total product price is 0 and product weight is 0 only Free Payment shows.  8. GOTO admin ->configuration ->modules -> payment ->select your payment type -> in order status there should be pending delivered, and the new "updated" (your download control)  9. GOTO admin ->configuration ->catalog -> product attributes down the bottom of the page insert in filename your download file....  10. GOTO admin ->configuration ->downloads ->set downloads to true. (This is also where other settings for the downloads controller are)  **Sprinkle** **Sprinkle** Kylie Quote
Kylie Posted December 6, 2003 Posted December 6, 2003 :P Downloads Controller...Got it working Addition to my previous post..... I have the download controller working now... and have download buttons at end of purchase and in the customers section...Yahoo!!!! My step by step seems to be right...  Follow my step by step then Follow this test example go to modules ->payment choose money order -> set it to processing (has a value of 2)  (My attributes section is "as is" Oscommerce 2.2MS) then go to configuration ->catalog ->product attributes down the bottom of the page ID Product name ->choose one of your products from drop down box-> Option Name -> choose version Option Value -> Download: Windows - English Don't add anything to value price or prefix at this stage in the filename section add unreal.zip (it comes with default installation) Expiry days 7 downloads 2  Log onto to your test account select the product you have just defined.. add to cart choose the money order continue on to checkout confirmation..... You should see the download button now...  Don't download your file yet... goto your "my account section" of your test customer then to "my orders" -> then view the order you just did... You should see the download button there now.... with expiry date and how many downloads remaining.... Download your file  the file admin\customers\orders.php is still giving the same error an error.... Having read all the posts regarding this contribution. Line 397, 400, 402 edit the end of these lines to look like this and ot.class = 'ot_total'"; (Your removing the $order) This will at least allow the oders.php page to show without the mysql error... and you can still edit, delete, invoice, packing slip.....  **Sprinkle** **Sprinkle** Kylie Quote
Jack_mcs Posted December 6, 2003 Posted December 6, 2003 Kylie - Thanks for posting this. I was able to fix my problems and it answered some questions I've had about using OSC that had nothing to do with this contribution. I only installed this package to use the free shipping part so I don't have all of the entries you mentioned. Hopefully that is because I don't have downloads enabled. But so far, thanks to your help, it seems to be working as it should. :) Â Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
amyloo Posted December 10, 2003 Posted December 10, 2003 Shoot. I deleted the version option. Could somebody tell me what the values are in which fields and tables so I can sneak it back into the dB?  Dumb.  I like this cart, though. http://www.tetradequestrian.com/catalog  Trying to get my boss at work to think more about open source than making everything from scratch. See how it goes. Quote
happyyo Posted December 13, 2003 Posted December 13, 2003 Hi there :) Thanks a lot for sharing with us the "steps" by "steps" :) Â I am pretty new in databases.... and I dont know what to do exactlly with the contribution file "downloads_controler.sql". What do I have to do?? I have to add the content of the file into my original database??? if so, where?? Â Thanks a lot in advance :rolleyes: Quote
tommy916 Posted December 19, 2003 Posted December 19, 2003 How do i change the number of "3 downloads remaining"? Quote
tommy916 Posted December 19, 2003 Posted December 19, 2003 i think i found in Configuration > Download > Maximum number of downloads. I changed it to 20. And I tried to order it, it gave me 3 instead of 20. can anyone help me how to fix this problem. Quote
Steve2004 Posted December 21, 2003 Posted December 21, 2003 Tommy,  Configuration > Download > Maximum number of downloads sets it for every new product you add, if you want to change the maximum number downloads and expiry days for an exsisting product go to admin/catalog/product attributes to edit each product individually.  i'm just getting to grips with all this myself!  Hope this helps  Regards  Steve Quote
Guest Posted December 21, 2003 Posted December 21, 2003 processing the order with a money is not the way to go, if you are going to let people download . .. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.