dannel77 Posted October 28, 2007 Posted October 28, 2007 I have setup the shop so that I offer customers free shipping, but this should only be linked to 1 of the payment options (payment in advance), as it is now some of the customers ignore what I have written ("choose only this shipping alterantive if you would like to pay in advance") and and choose the free shipping and then pays with credit card, is there a solution to this problem? Thanks, Daniel
star3am Posted October 28, 2007 Posted October 28, 2007 Have a look for Free Shipper, option in contributions I have setup the shop so that I offer customers free shipping, but this should only be linked to 1 ofthe payment options (payment in advance), as it is now some of the customers ignore what I have written ("choose only this shipping alterantive if you would like to pay in advance") and and choose the free shipping and then pays with credit card, is there a solution to this problem? Thanks, Daniel I'm an osCommerce Pimp ..
♥Monika in Germany Posted October 28, 2007 Posted October 28, 2007 I have setup the shop so that I offer customers free shipping, but this should only be linked to 1 ofthe payment options (payment in advance), as it is now some of the customers ignore what I have written ("choose only this shipping alterantive if you would like to pay in advance") and and choose the free shipping and then pays with credit card, is there a solution to this problem? Thanks, Daniel I would add a simple check on the checkout_confirmation page, as in: you have chosen payment option 'paypal_ipn'? if ($payment == 'paypal_ipn') { ... } then add to this the shipping option that is allowed, say 'flat_flat' (you get the correct shipping name by rightclicking and viewing checkout_shipping, near the radio buttons) if ($payment == 'paypal_ipn' && $shipping != 'flat_flat)) { ... } so if they have chosen the good payment, but bad shipping, send them back to checkout shipping for a new try if ($payment == 'paypal_ipn' && $shipping[id] != 'flat_flat)) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } they can repeat the loop as often as they need to read the text you added for them ;-) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
dannel77 Posted October 29, 2007 Author Posted October 29, 2007 Thanks Monika. I tried to add this code to the checkout_confirmation.php page, but where extacly should it be added? I believe it is correct with 'moneyorder' and 'table4_table4'. if ($payment == 'moneyorder' && $shipping[id] != 'table4_table4')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } I get this error message: "Parse error: syntax error, unexpected ')' in ..."
Kawazu Posted October 29, 2007 Posted October 29, 2007 You have an extra ) in your if statement... change it to if ($payment == 'moneyorder' && $shipping[id] != 'table4_table4') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } and try it again. Ian Osos Web Developer
dannel77 Posted October 29, 2007 Author Posted October 29, 2007 Thanks, now it works but in the wrong way.. If the customer chooses the "$0 shipping" option on the first page (checkout_shipping.php) then there should only be possible to choose the "pre-payment" option on the next page (checkout_payment.php). Now it works like if the customer chooses any option but "$0 shipping" they can't choose the "pre-payment" option on the next page. Appreciate the help!
♥Monika in Germany Posted October 29, 2007 Posted October 29, 2007 Thanks, now it works but in the wrong way.. If the customer chooses the "$0 shipping" option on the first page (checkout_shipping.php) then there should only be possible to choose the "pre-payment" option on the next page (checkout_payment.php). Now it works like if the customer chooses any option but "$0 shipping" they can't choose the "pre-payment" option on the next page. Appreciate the help! sorry for the double brackets above... to show only 1 payment option for a special shipping method, you need to add some code to the update status part of the payment modules ... that will hide the module ... I think there are contribs out there for this, and I cover it also in my book. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
dannel77 Posted October 29, 2007 Author Posted October 29, 2007 Looked for a contrib under Shipping but found none. Can't this be solved somehow by modifying the code bit: if ($payment == 'moneyorder' && $shipping[id] != 'table4_table4') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } Thanks.
dannel77 Posted November 25, 2007 Author Posted November 25, 2007 BUMP Is there no one here that has a suggestion how this could be solved? I recieve orders from customers who chose the "free payment" option but pays with credit card (and not in advance) it's tiresome contacting them and ask them to transfer the shipping fee to our account. Thanks, Dan.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.