form number missing

Issues related to forms.
Post Reply
katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

form number missing

Post by katman » Sun Dec 03, 2017 6:16 am

Hi,

I have set up a shopping cart which works perfectly in preview but not when loaded live onto website server which has php enabled and the page is .php.

When add to shopping cart is pressed, there is a notice the cart is empty instead of popping up with the item listed. Also, the price at the bottom of the page is blank. Below is the preview.

Image

Do I have to enable something?

Online live version

Image
Last edited by katman on Sun Dec 03, 2017 8:48 am, edited 2 times in total.

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Sun Dec 03, 2017 8:23 am

Which shopping cart did you use?
What is the URL of the page?
What are your settings?
Can you please be more specific?

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Sun Dec 03, 2017 8:24 am

paypal mini cart is being used for the whole page and it works fine for the other items and in preview.



Image

Image
Image
Image

os0 is Pitch
os1 is offset
Price is amount with ID "total"

Image

Image

custom sprocket form

Image

I have used the search function for paypal on the forum and read the existing links on the 6 pages I found. I am not being lazy, I also watched the Spanish WB tutorial on paypal forms on YouTube by Hernán Pena though I don't speak Spanish it was quite helpful. And I have looked through a number of paypal's variable pages
Last edited by katman on Mon Dec 04, 2017 8:55 am, edited 1 time in total.

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Sun Dec 03, 2017 11:38 am

The form needs and 'action', it may not be empty.
Please see the configuration of the other forms.

Note that there is no support on (free) extensions. The extension is provided "AS IS".

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Sun Dec 03, 2017 7:54 pm

Thanks for looking into this Pablo,

The pricing is working now but not the shopping cart.



PAYpal is in the action

Image
Last edited by katman on Mon Dec 04, 2017 8:56 am, edited 1 time in total.

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Sun Dec 03, 2017 9:01 pm

The form has two 'amount' fields. Maybe that is the problem?

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Sun Dec 03, 2017 11:51 pm

two? I can only see one, I will look harder, thanks

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Mon Dec 04, 2017 3:32 am

sorry, spoke too soon, it is not working. I thought I had it working but it is still only working in preview mode and not live.

I am at a loss to know why it works perfectly in preview (firefox and chrome) but not live on the server.

The tutorial I followed was posted in 2017 and mine works just like his in preview only. https://www.youtube.com/watch?v=MGJurSPABFE

If I simply ad 5.00 to the "EDITBOX" "TOTAL" "AMOUNT" value, shopping cart adds item but then the calculation does not work.
If I leave "AMOUNT" value blank, shopping cart will not add item as seen in the link below. The only difference between the one that works and the one that does not is 5.00 in the amount value. I have cut and pasted the form and only changed names to avoid conflicts.

The problem seems to be with the "editbox", or the amount value can't be left blank.

The WB tutorial I watched on line, leaves the amount value empty when using the calculation option. I just can't seem to get it working live, only in preview.

This works perfectly in preview with the amount value empty;
Last edited by katman on Mon Dec 04, 2017 8:56 am, edited 1 time in total.

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Mon Dec 04, 2017 6:56 am

The form still has two amount fields. Please remove the one in "hidden fields".

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Mon Dec 04, 2017 7:02 am

I am sorry, I must be blind because I don't see two "amount" in form.

Image

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Mon Dec 04, 2017 7:04 am

You also have an input field with the name 'amount'. The one in 'Hidden Fields' should be removed.

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Mon Dec 04, 2017 7:08 am

Do you mean this one? If so, this is how it is demonstrated in the tutorial and why does it work in preview?

Both forms are set up exactly the same way but only one does not work. I am sorry if I am not understanding or seeing something Pablo.
I removed it from hidden fields and reuploaded and still the same, cart empty. Also, the one that has both "amount" in hidden and input field is working?

Image
Last edited by katman on Mon Dec 04, 2017 7:13 am, edited 1 time in total.

User avatar
Pablo
 
Posts: 16765
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: form number missing

Post by Pablo » Mon Dec 04, 2017 7:11 am

Do you mean this one?
Yes
If so, this is how it is demonstrated in the tutorial
There may be an error in the tutorial. Having two fields with the same name is not valid.
and why does it work in preview?
It may work under some circumstances but the code is wrong, so there is no guarantee it will always work.

katman
 
 
Posts: 136
Joined: Sun Dec 21, 2008 7:02 am

Re: form number missing

Post by katman » Mon Dec 04, 2017 7:19 am

Ok, I removed it, still is not working.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests