download link (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


zoom -> 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 -> 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?




zoom -> RE: download link (9/19/2006 14:53:46)

what is echo? i am not good with php.




jaybee -> RE: download link (9/19/2006 15:17:23)

[sm=rofl6.gif] That has to be the understatement of the year!!!




jaybee -> 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. [:D]

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?




zoom -> 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.





Spooky -> 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?




jaybee -> 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. [&:]




zoom -> 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.





zoom -> 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.




jaybee -> 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.





zoom -> 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.




jaybee -> 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. [:D]
http://demo.cs-cart.com/admin.php




zoom -> 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)




jaybee -> 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. [:D][:D][:D]

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?




zoom -> RE: download link (9/19/2006 16:05:47)

the website is the store.

www.lcphotostudio.com




jaybee -> 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?




jaybee -> 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




zoom -> 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




jaybee -> 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.




zoom -> 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




jaybee -> 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. [&o]




zoom -> 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.




jaybee -> 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. [:D]




zoom -> 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




jaybee -> 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.




zoom -> 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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125