Hi,
In setting up BSDDS, I noticed what you are noticing: If your store is at:
There are a number of problems, but if it's at:
It's OK. Looks like some paths are missing. I tracked a few down to go.php, but I'm still looking for the rest.
Hi,
In setting up BSDDS, I noticed what you are noticing: If your store is at:
There are a number of problems, but if it's at:
It's OK. Looks like some paths are missing. I tracked a few down to go.php, but I'm still looking for the rest.
What's broken in go.php? The only forward I can find is on line 124:
window.location = "{$GLOBALS['ROOT']}cart/cart.php"
So if $GLOBALS['ROOT'] is set to "http://www.website.com/store/" in your config.php, it should be interpreted as this:
window.location = "http://www.website.com/store/cart/cart.php"
As far as I can tell that should work.
Uh oh, that seems to be only on my local copy, maybe I didn't commit the changes or something. Lemme do a pass-through and post an update.
Okay apparently I had v0.12 with a bunch of fixes sitting in a directory here for the past while but never uploaded it. v0.12 is online now and should be a bit better.
If you find any other broken stuff please let me know, I'll be sure to check my hard drive for fixes. :)
might I suggest that you change it to a PHP header redirect to reduce the reliance on JS:
header("Location: {$GLOBALS['ROOT']}cart/cart.php")
COol.. i'll try this new version out...
Question...
I use Download Counter for wordpress to keep track how many time something has been downloaded...
How can I use a url like this:
http://mysite.com/wp-content/plugins/DownloadCounter/download.php?id=1
instead of a regular one?
jezmck: True, I think the PHP header redirect would work fine there. Though if they don't have Javascript, the shopping cart's not gonna work very well.
Universal: That'd all be in /includes/functions.php listPurchases().
Though I'd recommend using Google Analytics or another Javascript solution instead of gumming up links. But that's me.
each link like that is a different album/song
http://mysite.com/wp-content/plugins/DownloadCounter/download.php?id=1
http://mysite.com/wp-content/plugins/DownloadCounter/download.php?id=2
http://mysite.com/wp-content/plugins/DownloadCounter/download.php?id=3
would all be different songs....
I was trying to keep it all in Wordpress for easy access...
Okay.. I created a directory called store2 to test version 12...
uploaded.. didn't have the problems that I had with 11... until from the shopping cart I clicked on "download your files"
I got the following error...
Warning: include(../../cart/cartclass.php) [function.include]: failed to open stream: No such file or directory in /home/universa/public_html/store2/completed/index.php on line 4
Warning: include() [function.include]: Failed opening '../../cart/cartclass.php' for inclusion (include_path='.:../:../includes') in /home/universa/public_html/store2/completed/index.php on line 4
Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "shoppingCart" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/universa/public_html/store2/completed/index.php on line 10
The v12 works great! Thanks a lot!!
I noticed one thing, when using the "BSDDS cart" (instead of the paypal cart), go.php does not verify the price is valid. This can be fixed by adding this to go.php at around line 44:
// verify price selection
if($products[$_GET['id']][price] == "any") {
if(!$_GET[price] > 0) { // if "any", make sure we're over zero
die('invalid price');
}
}
else if($products[$_GET[id]][price] > 0) {
if (!in_array($_GET[price], $prices)) {
die('invalid price');
}
}
else {
die('invalid price');
}
draker,
does this take into effect free downloads?
Universal: huh, not sure why that would be happening.
draker: glad it works for you. Cool, I'll look at implementing that or something like it. I process all my own orders so I haven't had to worry about it.
okay.. for the sake of getting this done and done right...
how much will you charge me to install this for me???
bump
Just email me at brad@bradsucks.net and let me know what you're looking for exactly.
done!
Oops, sorry, UniversalIndieRecords! I was gone for a few days. Yes, you're absolutely right that code I put in wont work for free downloads. You'd probably have to change the one line to
else if($products[$_GET[id]][price] >= 0) {
I'm not the best programmer anymore! Cheers!
You must log in to post.