close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping Pick Up Option

Thread began 5/15/2011 12:56 pm by Maplemac | Last modified 5/18/2011 11:43 am by Jason Byrnes | 2396 views | 9 replies |

Maplemac

Shipping Pick Up Option

Hi
I have to add an option for the client to pick up the order so the shipping will be zero.

I have added a checkbox to checkout.php

to checkout:
<input type="checkbox" name="pickup" value="1" />

And a hidden to confirm.php

to confirm:
<input type="hidden" name="pickup" value="<?php echo isset($_POST[pickup]?$_POST[pickup]:""); ?>" />


When I try and add a session variable to the confrm.php it does not find the form element 'pickup'

What am I doing wrong or should I be doing this another way.

I was planning on setting a discount when session varible exists 'pickup'

Thanks

www.perfectharmonybaskets.com

Sign in to reply to this post

Jason ByrnesWebAssist

this code:
<input type="hidden" name="pickup" value="<?php echo isset($_POST[pickup]?$_POST[pickup]:""); ?>" />

is not correct, it should be:
<input type="hidden" name="pickup" value="<?php echo isset($_POST['pickup']?$_POST['pickup']:""); ?>" />


also, make sure that the hidden form element code is inside of the form tag with the rest of the hidden form elements on the confirm page

Sign in to reply to this post

Maplemac

Where exactly do I add the hidden form element code as there are no other hidden form elements on the confirm.php page.
I am using Powerstore 5 with ECart

If i add it to the form elements on process_transaction.php I get a page error when I click on Checkout.
Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

what payment gat4eway are you using.

Sign in to reply to this post

Maplemac

PP Standard

Sign in to reply to this post

Jason ByrnesWebAssist

it should go in the webassist/plugins/shopping_cart/process_transaction.php file.

look for the following line:

php:
<form name="checkout_PP_LI_Hid"  action="https://www.PayPal.com/cgi-bin/webscr" method="post">



and change it to:

php:
<form name="checkout_PP_LI_Hid"  action="https://www.PayPal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="pickup" value="<?php echo isset($_POST['pickup'])?$_POST['pickup']:""?>" />
Sign in to reply to this post

Maplemac

As soon as I make those changes to the process_transaction.php and add the server behaviour I get a HTTP500 error once clickig on checkout.
I have attached the process_transaction.php file

Attached Files
process_transaction.zip
Sign in to reply to this post

Jason ByrnesWebAssist

use this code:

php:
<form name="checkout_PP_LI_Hid"  action="https://www.PayPal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="pickup" value="<?php echo isset($_POST['pickup'])?$_POST['pickup']:""?>" />
Sign in to reply to this post

Maplemac

Thanks and hopefully final question.
How to set the discount if the pickup checkbox is checked and the two towns that get free delivery are not in the shipping address.

Using if session variable = pickup with value of 1 is not picking up the discount.
Do I need more details.

Attached Files
WA_Store_Cart_PHP.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...