OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

download link

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> download link
Page: [1]
 
 
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
download link - 9/19/2006 13:56:58   
how do you do a download file link in php? i have the file on my server but when i put the link there it dosnt go to the file. it goes to my shops back end.
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 14:47:26   
I'm being spectacularly stupid today due to working too many hours so this may be dumb but can't you just write the link to the file onto the page using Echo?

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 14:53:46   
what is echo? i am not good with php.

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:17:23   
:) That has to be the understatement of the year!!!

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:19:54   
Oh er sorry but that was funny. Echo is the basic print statement you issue in php. It's the thing all the training starts with. :)

I suspect we may have crossed wires here. Are you trying to do a link in a php program or are you just trying to download a php file?

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 15:24:34   
LOL. im sorry but i am new with php, and i have a cart i am using that runs on php.

i want to have free files for download. i dont know how to code from scratch so i copied the link for one of my other products and just substituted the file name for the one i want to have as a download. when i click on the link it will work once but the next time i click on it . it will go to my backend admin area.


(in reply to jaybee)
Spooky

 

Posts: 26723
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: download link - 9/19/2006 15:27:27   
Are you performing this action (linking to a file) within the cart web based administration or are we talking about manually adding a link from an htm/php page to a file?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

Sp:)ky


(in reply to zoom)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:28:29   
Don't apologise, it's only funny if you know PHP. Best laugh I've had in a rotten couple of weeks, so thanks.

What shop are you using?

OOOOOPs I'm going to get my hand slapped now for laughing at the customers. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 15:32:21   

quote:

ORIGINAL: Spooky

Are you performing this action (linking to a file) within the cart web based administration or are we talking about manually adding a link from an htm/php page to a file?


the file is in a file download area on my server that all of the other files for download are, so i am going to say yes, that it is in the admin area.


(in reply to Spooky)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 15:33:24   

quote:

ORIGINAL: jaybee

Don't apologise, it's only funny if you know PHP. Best laugh I've had in a rotten couple of weeks, so thanks.

What shop are you using?

OOOOOPs I'm going to get my hand slapped now for laughing at the customers. :)



you can laugh at me, its okay. i dont take myself seriously

i am using cs-cart. ihave never used php before so i am learining as i go.

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:38:00   
Don't know it so I'll nip off and take a look. What usually happens is that you add another product via your shop admin panel, you shouldn't need to be messing around in the code.



_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 15:43:24   
this is the thing..... i can add the products via the admin panel just fine. but i have a page for free downloads. now, the store dosnt have a way to have free items and i dont know how to code as such. so i was making a button to link to the file that is a free download.

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:51:29   
OK, from what I can see, you go to your admin panel which looks like its www.yourwebsite.com/admin.php or something similar.

Log in and on the left there's a menu. One of the options is add new product.

Click it and you get a product page up. Add all the details about the file and at the bottom there's a tick box for "downloadable product" tick it.
hit the add new button when you've filled in all your other bits, the page will refresh and another tab will appear at the top labelled Files.

In there you can link to the file on your server.

This is the link to their demo store so you can play around without mucking yours up. :)
http://demo.cs-cart.com/admin.php

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 15:54:46   
that part is fine, the problem is that there is no FREE option and download right from there. i want to have a button that once clicked the download immediatly begins. the cart dosnt allow for that so i need to do it myself. (with help)

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 15:55:01   
quote:

ORIGINAL: zoom

this is the thing..... i can add the products via the admin panel just fine. but i have a page for free downloads. now, the store dosnt have a way to have free items and i dont know how to code as such. so i was making a button to link to the file that is a free download.


OK, well at least I know how the store works now. :):):)

Don't think you're going to get away with that. Plus, when the store needs to be updated for security patches or whatever, any code you've added will just get overwritten.

Do you have a web site that the store is part of or just a store?


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 16:05:47   
the website is the store.

www.lcphotostudio.com

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 16:38:38   
Sorry, I got stuck on a phone call.

The easiest way to do it would be to have the store as a sub site. Have your main entry page as a normal HTML front end and then link to the store, that way you could have two routes, store and free downloads, the free downloads being a separate page you can stick your buttons on.

That said, it's nuts that you can't put free products through the shop. Have you spoken to them? Is there an add-on?

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 16:42:48   
I just went on their forums and there are loads of people talking about having the word free show up when the item value is zero.

I reckon your best bet is to go sign up over there and let them walk you through it. It certainly seems like it's possible.

http://vb.cs-cart.com/index.php

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 16:45:22   

quote:

ORIGINAL: jaybee

Sorry, I got stuck on a phone call.

The easiest way to do it would be to have the store as a sub site. Have your main entry page as a normal HTML front end and then link to the store, that way you could have two routes, store and free downloads, the free downloads being a separate page you can stick your buttons on.

That said, it's nuts that you can't put free products through the shop. Have you spoken to them? Is there an add-on?


i agree with you , others want to have free stuff too but it cant be done stock.

i was thinking of having a link to another page outside the cart for free stuff. i would have liked to have it under one roof but it looks as though i cant.

thanks alot

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 16:46:01   
Here you go...

She sets a price for the product then applies a discount of the full amount so it nets out at zero.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 16:52:00   

quote:

ORIGINAL: jaybee

Here you go...

She sets a price for the product then applies a discount of the full amount so it nets out at zero.



hmmm, thats a thought. missed that one.

thanks for finding that

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 17:08:57   
Gotta be easier than wading around in the code. Even when you know what you're doing it's a pain and then there's the dreaded email telling you of the urgent site update you need to do. It's when you get that sinking feeling that you haven't made a note of all the changes you did and you just know you've got to start all over.

You will see numbers of us groaning every time a new phpbb upgrade is announced. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 17:12:11   
ive already seen them. i bought this cart right after the new release. i am documenting everything i do, i have 2 of these carts.

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 17:19:07   
It looks quite nice. I've used Zen Cart and Cube Cart and once I have the current site out of the way I have one to do with OSCommerce for Smashbox Cosmetics. That'll be a hoot but at least I won't have to buy any makeup for the rest of my life. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/19/2006 17:22:30   
this cart is the first ive used. i think its very good, but i dont have anything to compare it to. for the most part its very easy to get going. is just the code i didnt know how to make modifications to

(in reply to jaybee)
jaybee

 

Posts: 14442
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: download link - 9/19/2006 17:39:09   
One word......

don't

if there's an easier way, take it. and now I'm off to bed.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to zoom)
zoom

 

Posts: 129
Joined: 4/2/2004
Status: offline

 
RE: download link - 9/28/2006 8:54:33   
im back...

i put the picture up of the graphic i want for download, i link it to the file of the picture that is on the server, but when i go to my site and click on it i just get a pop up of the picure in explorer, i dont get the save as window

thanks

_____________________________

www.planethi-fi.com
www.skytopdesigns.com

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> General Web Development >> download link
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts