Page 1 of 1
Help with php!
Posted: Mon Feb 08, 2010 10:34 am
by sooppa
Would someone be kind enough to be a one-time mentor for me! I'm doing my sister's e-commerce site as she cannot afford to have it made herself. I'm good with html and css, but php is a foreign language. I set it up with Paypal check out. I had it working...then I tried to add a coupon code...then "check out" stopped working, so I removed all coupon code jargon, and now still, when you "add to cart", the page just refreshes itself. It must be something so simple that I'm just not seeing. I could call anyone or email back and forth. I'm smart and will catch on quick and will take as little of your time as possible.
http://togs4sprogs.com/birthday_tshirt.php
(If you go to "baby clothing" section of the site, as opposed to "children's clothing" - "add to cart" DOES work - the only difference with "children's clothing" is that I break out some of the form into a "php include" - but it worked before I added the coupon stuff

!)
I also have a problem setting up Dreamweaver so I can test PHP with my WAMP server, so I have to go live everytime I make a change - WAHHHH!
sophieannaevans@gmail.com
(sophieannaevans at g mail)
Re: Help with php!
Posted: Mon Feb 08, 2010 10:43 am
by aravona
I tried the site, and got the refresh on childrens clothing - on baby clothing I got a message from paypal saying there was a problem with the sellers site. Did you not back-up after you got it working the first time?
sooppa wrote:
I also have a problem setting up Dreamweaver so I can test PHP with my WAMP server, so I have to go live everytime I make a change - WAHHHH!
Whats happening with Dreamweaver (I use it daily to work with php / html / CSS ) and I also use WAMP. Usually you just code in dreamweaver / notepad then pop the file in the www folder in WAMP and load through localhost and your sorted. Whats Dreamweaver not doing properly?
Re: Help with php!
Posted: Mon Feb 08, 2010 12:54 pm
by sooppa
Thank you so much for replying. It's good to know that someone is listening!

I called paypal, and they said it's because that because I'd used the same html code for each button, (I just added another "input" line for each product with a special "item_name" to differentiate...but it worked for months that way! They r calling me back...Told them I needed them at least to let me use it until I can get another shopping cart which allows more automation.
Regarding WAMP, at one point that was working too (then I changed from trial version CS4 where I must have had the settings correct to DW CS3 and it won't work). before that, it seemed that my files were automatically being saved to the www folder as well as my site root folder. (I think, anyway). Do you mean I have to save everything in the www folder as well as site root? Or should my site root be in www?
I figured the problem is in my DW site settings as it worked before.
LOCAL INFO
Local root folder: C:\Users\Sophie Evans\Documents\togs4sprogs\
Enable Cache is checked
TESTING SERVER:
SERVER MODEL: php mysqul
ACCESS:ftp
FTP HOST: my godaddy ftp address (same as in remote info)
URL PREFIX:
http://localhost/www/ (before I had "
http://ftp.togs4sprogs.com" which didn't work either) .....
Use passive FTP is checked
REMOTE
Pretty sure I have ftp info right (godaddy) though not sure about the check boxes, I've tried toggling them all.
Re: Help with php!
Posted: Tue Feb 09, 2010 3:15 am
by aravona
Ahh ok. We use sagepay but I've never had to do much with them.
What I meant was I never use dreamweaver to link to my server, I save my files in their back-up / edit folder on my PC - test them using the WWW folder on WAMP (when not testing live) and then use an ftp uploader (filezilla) to put my files live. Probs not as simple as setting up through dreamweaver but it works (I have to use vista at work so...

)
I also use dreamweaver 8 (you wont believe how slow I was getting rid of MX!) I skip through about 5-10 sites a day constantly changing FTP details. Will have more of a look into it in my lunch hour for you, let me know if you get any further.
Re: Help with php!
Posted: Tue Feb 09, 2010 10:45 am
by sooppa
Wow - thank you. That is really cool of you. I haven't got any further with it yet. I'm now trying to frantically fix my broken paypal buttons - have to go through product by product and change the code, even though it worked for months the way I had it!!

But if you work anything out about the WAMP/Dreamweaver thing, you will definitely be my hero!!
Re: Help with php!
Posted: Tue Feb 09, 2010 12:15 pm
by aravona
Am currently setting up a site through my Dreamweaver + WAMP (after re-installing it cos I seem to have... lost it)on my home system. Will see if I can get that working (dreamweaver is lovingly backwards compatible I've found... least it was working through MX and DW 4 at uni)
I went through the standard setup and there was a section to choose where to save my files. So instead I went through into the advanced tab to try and find your information you posted in a more direct manner.
I put in this information and connected to my WAMP server fine:
Local Root Folder:
C:\Documents and Settings\Me\My Documents\WAMP\wamp\www\test
That dumps the files I made on DW straight into my WAMP ready for testing I dont see why creating a togs4sprogs folder within the WWW folder of your wamp and re-asigning your DW to link to there shouldnt allow you to test directly with your WAMP localhost. Though you'd have to have your other files there too of course ^^ Also watched a vid on installing paypal with a plugin for wordpress and I think each button is meant to be unique but I've not done it personally?
Re: Help with php!
Posted: Tue Feb 09, 2010 10:38 pm
by sooppa
Thanks for the DW advice - I'll definitely try that in the morning (it's late here!).
Yeah, after a lot of whining, I finally worked out that I have to go into every product page and change each button. Apparently the first time round, I should have created a "non hosted" button or something, which would then allow me to make changes to the drop down menu variables once I plugged it into my pages. Apparently, with the button I had created, I wasn't allowed to make changes...
Still don't understand why Paypal let me use it the way I had it for months and THEN it breaks, but still I'm just getting on with it...seems there's sometimes no rhyme or reason to things but maybe cuz I just don't understand it deeply enough....yet!
Re: Help with php!
Posted: Wed Feb 10, 2010 3:21 am
by aravona
sooppa wrote:Thanks for the DW advice - I'll definitely try that in the morning (it's late here!).
Np I was eating my dinner when I tried that anyway! I hope it works for you
sooppa wrote:
Still don't understand why Paypal let me use it the way I had it for months and THEN it breaks, but still I'm just getting on with it...seems there's sometimes no rhyme or reason to things but maybe cuz I just don't understand it deeply enough....yet!
You know they just want it to get to the point where they can charge you to fix it

At least that how it can seem when you know you know your stuff

Re: Help with php!
Posted: Thu Feb 11, 2010 2:32 pm
by sooppa
So I tried your advice (copied my site files to wamp's www folder). And I changed my Dreamweaver site settings accordingly. I get a different error now when I try to preview index, which loads as
http://localhost/index.php. Its an "http 404/file not found error", and says "oops the link to this site appears to be broken."
LOCAL INFO
Local root folder: C:\wamp\www\togs4sprogs\
TESTING SERVER:
SERVER MODEL: php mysqul
ACCESS:ftp
URL PREFIX:
http://localhost/
Any ideas? I wonder if the URL prefix is wrong???
Re: Help with php!
Posted: Thu Feb 11, 2010 2:51 pm
by sooppa
Never mind! It WAS the url prefix - should have been
URL PREFIX:
http://localhost/togs4sprogs.
IT WORKS!! THANKS SO MUCH!!!