 stu-green
|
Hi Brad,
I just came across your download store and have been trying it out, looks good.
I want to use my own hosting rather than Amazon so I’ve specified a location and placed the file there. I also left the Amazon section of the config.php unentered.
This is my items.ini
#
# newborns test store
#
id = 1
name = blah blah blah song 2
type = song
price = 00.00
location = http://cheek.webclubbing.net/store/downloads/
filename = dis-engage_-_makina
formats = 192k MP3
192k MP3 = .mp3
thumbnail =
thumbnail_link =
This is my store http://cheek.webclubbing.net/store/
When I pick this free track, go to the cart and then click ‘Download your files’ I get redirect through the notify.php as you would expect but then end up on a blank page with a link as so:
http://cheek.webclubbing.net/store/completed/?tx=795748d519a624670dfb47023dd91a94
What could I be doing wrong?
|
 stu-green
|
I seem to have got a step closer to solving this myself.
In the index.php of the completed folder is the following.
<?
ini_set(“include_path”, “.:../:../includes”);
// transaction completed, clear the cart
include “../../cart/cartclass.php”;
include “../config.php”;
I altered ../../cart/cartclass.php to become ../cart/cartclass.php
and I know get a page saying completed purchase and a download link. The download link does nothing but I’m guessing there might be a further similar thing I need to do to the above code.
|
 stu-green
|
Indeed I was correct.
I was required to edit index.php in completed folder again:
ini_set(“include_path”, “.:../:../includes”);
to become ini_set(“include_path”, “../includes”);
Now my free download section seems fully functional!
|
 jezmck
|
It would be better to append to the path, rather than replace it.
<?php ini_set('include_path',ini_get('include_path').':../includes:'); ?>
note that the colon is the list separator for *nix machines.
refer to:
http://uk.php.net/manual/en/function.ini-set.php
|