{"id":2010,"date":"2014-06-15T21:45:53","date_gmt":"2014-06-15T19:45:53","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=2010"},"modified":"2020-10-04T21:52:30","modified_gmt":"2020-10-04T19:52:30","slug":"oscommerce-2-3-setting-up-downloadable-products","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=2010","title":{"rendered":"Oscommerce 2.3 : Setting up Downloadable Products"},"content":{"rendered":"<h2 id=\"setting_up_downloadable_products\">Setting up Downloadable Products<\/h2>\n<p>Downloads are fairly easy to set up, but the download mod can be a littly quirky on different server setups. The below steps should help you get your downloads working:<\/p>\n<ol>\n<li>\n<div><strong>Enable downloads<\/strong> Admin \u2013&gt; Configuration \u2013&gt; Downloads \u2013&gt; Enable Downloads = true.<\/div>\n<\/li>\n<li>\n<div><strong>Downloads by Redirect<\/strong> should be on for Unix systems according to the help but in some casess may need to be off. (Test it both ways to see what works for you.)<\/div>\n<\/li>\n<li>\n<div>Whilst you are in this menu you should also set the expiry, no. of downloads, etc.<\/div>\n<\/li>\n<li>\n<div>Set your <strong>pub\/<\/strong> directory to chmod 777<\/div>\n<\/li>\n<li>\n<div>Set your <strong>download\/<\/strong> directory to chmod 755 or chmod 777. (Sometimes 755 does not work and 777 must be used.)<\/div>\n<\/li>\n<li>\n<div>Create your product for download in the Add Products section of the admin.<\/div>\n<\/li>\n<li><strong>Its weight must be 0 or it will not work correctly. this will bypass shipment page<br>\n<\/strong><\/li>\n<\/ol>\n<ol>\n<li>\n<div><strong>You <em>MUST<\/em> assign an attribute to your product or the download link won&#8217;t appear after checkout.<\/strong><\/div>\n<\/li>\n<li>\n<div>For the <strong>Option name<\/strong> you could use \u201cVersion x\u201d and for the <strong>Option value<\/strong> you could use \u201cDownload: Windows-English\u201d.<\/div>\n<\/li>\n<li>\n<div>Be sure your file (i.e. \u201cmyfile.exe\u201d) is in the <strong>download\/<\/strong> directory.<\/div>\n<\/li>\n<li>\n<div>In the Admin \u2013&gt; Catalog \u2013&gt; Product Attributes, there is a field that says \u201cFilename\u201d when you are creating a new product attribute. This is where you put \u201c<strong>myfile.exe<\/strong>\u201d. (No path information needed). You also specify the number of days the download link is available and the number of downloads allowed.<\/div>\n<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/download.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-2012\" src=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/download-300x23.jpg\" alt=\"download\" width=\"498\" height=\"23\"><\/a><\/p>\n<p>Go to Admin \u2013&gt; Localization \u2013&gt; Orders Status and change the <strong>Downloads Status<\/strong> for <strong>Delivered<\/strong> to true by ticking the tick box marked \u201cAllow downloads of virtual products at this order status level\u201d. If you set the allow downloads on other order status then customers could download your product prior to you clearing your payment.<\/p>\n<p><a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/order_status.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-2013\" src=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/order_status-300x101.jpg\" alt=\"order_status\" width=\"300\" height=\"101\" srcset=\"https:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/order_status-300x101.jpg 300w, https:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/order_status.jpg 689w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><strong>TO BYPASS PAYMENT PAGE<\/strong><br>\n&#8211; MUST: Go into your shops admin module &gt;&gt; paymet, set &#8220;<a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/06\/FreeProductCheckout_1.1.zip\">FreeProductCheckout_1.1<\/a>&#8221; payment module as the first payment method at &#8220;Sort order of display&#8221;. Make it 0 and the other payment method(s) higher.<\/p>\n<p>&#8211; Open your oSC file &#8220;catalog\/checkout_payment.php&#8221;<\/p>\n<p>&#8211; just before:<br>\nrequire(DIR_WS_LANGUAGES . $language . &#8216;\/&#8217; . FILENAME_CHECKOUT_PAYMENT);<\/p>\n<p>ADD:<br>\n\/\/ BOF skip if only 1 payment method available. IF YOU HAVE 2 PAYMENT METHODS then &#8220;set tep_count_payment_modules() == 2&#8221;<br>\nif (tep_count_payment_modules() == 1 ) {<br>\n$payment_select = $payment_modules-&gt;selection();<br>\n$payment = $payment_select[0][&#8216;id&#8217;];<br>\nif (!tep_session_is_registered(&#8216;payment&#8217;)) tep_session_register(&#8216;payment&#8217;);<br>\ntep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, &#8221;, &#8216;SSL&#8217;));<br>\n}<br>\n\/\/ EOF<\/p>\n\n\n<p>Please check too :<\/p>\n\n\n\n<p>https:\/\/forums.oscommerce.com\/topic\/236224-oscommerce-download-feature\/<\/p>\n\n\n\n<p><div class=\"video-container\"><iframe loading=\"lazy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/_UsJX6OMatY?feature=oembed&#038;wmode=opaque\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up Downloadable Products Downloads are fairly easy to set up, but the download mod can be a littly quirky on different server setups. The below steps should help you get your downloads working:&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2841,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2010"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2010"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2841"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}