Webshop Plus! v.2.0 for WWB7
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
I have modified the Paypal button on the 'thank you' page so thatname and address gets passed to paypal so the customer doesnt have to re-enter it. The new code is
<?php
// display PayPal checkout?
$form = '
<form target="PayPal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_ext-enter">
<input type="hidden" name="redirect_cmd" value="_xclick">
<input type="hidden" name="business" value="'.$paypal_email.'">
<input type="hidden" name="item_name" value="'.$dbts_title.' Order '.$orderid.'">
<input type="hidden" name="item_number" value="'.$orderid.'">
<input type="hidden" name="amount" value="'.number_format($_SESSION['nettotal'], 2).'">
<input type="hidden" name="currency_code" value="'.$currency.'">
<input type="hidden" name="shipping" value="'.$_SESSION['shipping1'].'">
<input type="hidden" name="handling" value="'.$_SESSION['handling'].'">
<input type="hidden" name="return" value="'.$paypal_thankyoupage.'">
<input type="hidden" name="cancel_return" value="'.$paypal_cancelpage.'">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="receiver_email" value="'.$paypal_email.'">
<input type="hidden" name="no_shipping" value="'.$require_address.'">
<input type="hidden" name="no_note" value="'.$allow_message.'">
<input type="hidden" name="first_name" value="'.$_SESSION['firstname'].'">
<input type="hidden" name="last_name" value="'.$_SESSION['lastname'].'">
<input type="hidden" name="address1" value="'.$_SESSION['address'].'">
<input type="hidden" name="address2" value="'.$_SESSION['address2'].'">
<input type="hidden" name="city" value="'.$_SESSION['city'].'">
<input type="hidden" name="state" value="'.$_SESSION['state'].'">
<input type="hidden" name="zip" value="'.$_SESSION['zip'].'">
<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but6.gif" alt="Make payments with PayPal, it\'s fast, free, and secure!">
</form>
';
echo $form;
?>
I found it better not to pass the email address as Paypal assumes your customer has a paypal account and doesn't dispay the name and address data but here it is incase anyone needs it
<input type="hidden" name="email" value="'.$_SESSION['email'].'">
Regards
Paul
<?php
// display PayPal checkout?
$form = '
<form target="PayPal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_ext-enter">
<input type="hidden" name="redirect_cmd" value="_xclick">
<input type="hidden" name="business" value="'.$paypal_email.'">
<input type="hidden" name="item_name" value="'.$dbts_title.' Order '.$orderid.'">
<input type="hidden" name="item_number" value="'.$orderid.'">
<input type="hidden" name="amount" value="'.number_format($_SESSION['nettotal'], 2).'">
<input type="hidden" name="currency_code" value="'.$currency.'">
<input type="hidden" name="shipping" value="'.$_SESSION['shipping1'].'">
<input type="hidden" name="handling" value="'.$_SESSION['handling'].'">
<input type="hidden" name="return" value="'.$paypal_thankyoupage.'">
<input type="hidden" name="cancel_return" value="'.$paypal_cancelpage.'">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="receiver_email" value="'.$paypal_email.'">
<input type="hidden" name="no_shipping" value="'.$require_address.'">
<input type="hidden" name="no_note" value="'.$allow_message.'">
<input type="hidden" name="first_name" value="'.$_SESSION['firstname'].'">
<input type="hidden" name="last_name" value="'.$_SESSION['lastname'].'">
<input type="hidden" name="address1" value="'.$_SESSION['address'].'">
<input type="hidden" name="address2" value="'.$_SESSION['address2'].'">
<input type="hidden" name="city" value="'.$_SESSION['city'].'">
<input type="hidden" name="state" value="'.$_SESSION['state'].'">
<input type="hidden" name="zip" value="'.$_SESSION['zip'].'">
<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but6.gif" alt="Make payments with PayPal, it\'s fast, free, and secure!">
</form>
';
echo $form;
?>
I found it better not to pass the email address as Paypal assumes your customer has a paypal account and doesn't dispay the name and address data but here it is incase anyone needs it
<input type="hidden" name="email" value="'.$_SESSION['email'].'">
Regards
Paul
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
No, you aren't missing anything, but if you don't specify what you want, I can't know.
For such issues, you should contact me privately through my site (in my signature) contact form with your requirements.
For such issues, you should contact me privately through my site (in my signature) contact form with your requirements.
Last edited by Navaldesign on Wed Dec 16, 2009 6:45 am, edited 1 time in total.
www.dbtechnosystems.com
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
I'm not sure whay you are posting in this section of the forum, as the cart seems perfectly working.
For the images issues, seems like they ARE on the server, but they won't display (or, which I can't check, seems they 0 size). Try this:
1. Check images permissions: should be 644
2. Preview the page in FF. Right click the pics that don't show, and save them locally, then manually upload them on the server / cart/images folder.
Refresh the page to see if it appears.
Your popups also seem working fine.
For the images issues, seems like they ARE on the server, but they won't display (or, which I can't check, seems they 0 size). Try this:
1. Check images permissions: should be 644
2. Preview the page in FF. Right click the pics that don't show, and save them locally, then manually upload them on the server / cart/images folder.
Refresh the page to see if it appears.
Your popups also seem working fine.
www.dbtechnosystems.com
-
-
- Posts: 12
- Joined: Fri Feb 06, 2009 7:28 pm
- Location: USA
- Contact:
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
-
-
- Posts: 12
- Joined: Fri Feb 06, 2009 7:28 pm
- Location: USA
- Contact:
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Pls take the time to read the manual which contains all features descriptions and possibilities of the cart.
The cart support shipping fees but not all those options you mention. For those you will need a professional cart that can use the APIs of USP, Fedex etc to calculate shipping.
The cart support shipping fees but not all those options you mention. For those you will need a professional cart that can use the APIs of USP, Fedex etc to calculate shipping.
www.dbtechnosystems.com
- me.prosenjeet
-
- Posts: 1302
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Naval,
I am not sure where to post this, here or in the DBTS form extension.
My client has 18 products with about 15 varieties in each. What he is looking for is actually an order form and not online sales/payment.
He wants that the user selects the variety of product and the quantity and then submit so that the order form details reach the company to process the order.
Something like
Product A----------[
]Varieties=(can be drop down or 'tick' from list)----------Quantity(drop down 1,2,3...)
Product B----------[
]Varieties=(can be drop down or 'tick' from list)----------Quantity(drop down 1,2,3...)
Product will not have a select button but the variety will have the details of the product.
So we have 2 fields to be selected by the visitor for a product...
1) Variety
2) Quantity.
Further this will be a multipage order form so if the user doesn't like any of the products on page 1, he can click on a button to move to next page. That is if the form is of 15 pages, he can select several products from various pages and submit it.
How can this be done?
I am not sure where to post this, here or in the DBTS form extension.
My client has 18 products with about 15 varieties in each. What he is looking for is actually an order form and not online sales/payment.
He wants that the user selects the variety of product and the quantity and then submit so that the order form details reach the company to process the order.
Something like
Product A----------[

Product B----------[

Product will not have a select button but the variety will have the details of the product.
So we have 2 fields to be selected by the visitor for a product...
1) Variety
2) Quantity.
Further this will be a multipage order form so if the user doesn't like any of the products on page 1, he can click on a button to move to next page. That is if the form is of 15 pages, he can select several products from various pages and submit it.
How can this be done?
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------