Knowledgebase: Product Page Downloads
I'm trying to add downloads to my page, but when the box appears to select a file there aren't any files or directories displayed.
Posted by Nick Poindexter on 04 March 2010 05:04 PM
Files are loaded differently depending on which directory you are loading the product_modify.php script.

For example:

http://www..com/admin/product_modify.php?productid=1


Will allow you to select from any file in your /admin directory.

http://www..com/provider/product_modify.php?productid=1


Will allow you to select from any file in the /files/ directory.

If you would like to load all files under either directory please make the following change:

admin/product_modify.php


Find this code near line 49:
require $xcart_dir."/include/product_modify.php";
require $xcart_dir."/include/categories.php";


Immediately after insert this code:

#
# begin altered :: www.alteredcart.com
#
if(!empty($active_modules["Product_Page_Downloads"]))
include $xcart_dir."/modules/Product_Page_Downloads/ppd_product_modify.php";
#
# end altered :: www.alteredcart.com
#


Finally, copy the admin/ppd_popup_files.php file to the /provider directory overwriting the current file.

Related Articles

* The On Sale module discounts aren't applied when using Google Checkout or Gift certificates.
* How do I add the On Sale discounts to the Related or Upselling products on my main product display page?
* I'm receiving this error on the checkout page: "There was an error loading the shipping options, please try again. (You may need to refresh your browser.)"
* How do I include the downloads when cloning a product?

Still Have Questions? If you are unable to find a solution in the knowledgebase please open a support ticket for a personal response from alteredCart support.

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: