Contributions
Must agree to Terms
The "Must Agree To Terms" contribution enhances standard OSC Checkout logic by forcing the customer to agree to the store's terms in order to place a new order.
Expand All / Collapse All
If you are using the Valid XHTML Mod - this might be what you need. It contains one file:
checkout_confirmation_chg_valid_xhtml.php
So you'll need to download the complete package and use the above file to mod the checkout_confirmation.php page.
Hope someone finds this useful.
I have merged the javascript disabled (Phliplip) and PayPal (red-ray) fixes.
*****************
Includes full package with fix page
*****************
Many thanks to original authors and all contributors.
All info as the last upload from me, except you don't need that one it you get this one.
Well after uploading the last file, I noticed that the table produced wasn't quite like the other tables on the page - the cellpadding was off so there was no gap between the contents of the table and the edge.
I've altered the code to produce that, and also noticed that the u tag for the link was opened twice with only one close so dropped the redundant open.
The style="main" definition for the u was also not working so I've moved it to the td cell definition as is the way it is normally defined in osCommerce.
Sorry for the double upload..
I went to install this and as always went through the html first.
There were several html errors including a row and cell being opened without anything in and without proper termination. There was also a redundant bold tag floating outside of any cells with no close, a floating cell close probably originally linked to the redundant code above.
There were a few others too and I've also reflowed the html to make it logically indented. Out of personal choice, I've also brought the form close tag up to button_confirm_order.gif so that it is more like the original code for anyone looking to add other contributions and needing code easy to read.
This is NOT the complete contribution. It is based on 1.6.6 and only replaces the /catalog/checkout_confirmation_chg.php file from that upload. It does NOT include the PayPal fix by red-ray.de.
After Paypal-payment you will be redirected to the checkout_confirmation.php page and get an error that you didn't agreed to the terms!
Fixed it with just a few lines in two files
###
This is NOT a complete distribution!
It replaces my previous post!
###
v.1.5.5 includes html layout that throws the tables off. I have only fixed the two affected lines in the installation file for the /catalog/checkout_confirmation.php.chg file.
++++BONUS++++
This is a FULL PACKAGE including the Javascript Off fix.
Enjoy this great contribution by it's original author and contributors.
This includes all files from v1.5.4
In 1.5.4 the code makes it so that when you click anywhere in the cell (including the "terms & conditions" link, checkbox, and "I have read the conditions of use and I agree to them") the box gets checked. This is a huge problem because the customer has not yet read the terms.
I changed "catalog/checkout_conformation" so that the checkbox does NOT get checked when you click just anywhere in the cell (including on the "terms & conditions" link. ) Instead, it only gets checked when the checkbox is clicked.
I don't really know PHP so I hope I haven't screwed anything up. It works perfectly for me in Internet Explorer and FireFox.
This is a fix for captainq's question/bug of 15 Nov 2005.
This is my first contribution, and if there is any comments on this fix
please contact me.
This is not complete contrib, only txt-file of what to add.
Answer: The checkout_confirmation page lets you confirm the order without having checked the box.
Also, the link to the terms and conditions doesnt work when javascript is disabled.
I will try myself to get this fixed over the next week, but thought i should put up here in case anyone can do it sooner.
NOTE: FILE ATTACHED IS EMPTY TEXT FILE ZIPPED UP TO ALLOW THIS POST
same as "Must Agree to Terms v1.5.3" but with spanish language pack added.
Igual que el "Must Agree to Terms v1.5.3.zip" pero con la versión española añadida.
Full package
Changed popup_conditions.php - it now corresponds with shop design / layout and other popup windows.
Important Multilanguage-Fix
Changed link popup_conditions.php in checkout_confirmation.php to <?php echo tep_href_link('popup_conditions.php'); ?>
-> will keep the user selected language, has always shown osc default language before
This file only contains the german/checkout_confirmation_chg.php
It includes a very long text alternative for 'CONDITION_AGREEMENT' which should cover the german law. (No warranty)
====
Die Datei enthält nur german/checkout_confirmation_chg.php
Als 'CONDITION_AGREEMENT' ist ein sehr langer Text hinterlegt, der den Anforderungen des BGB genügen sollte. (Ohne Gewähr)
- Fixed a Javascript-error I kept getting an error when clicking the checkbox or the table cell
- extended the alert() to alert(unescape()) to improve handling of special characters (Umlaute)
- moved define('TEXT_CLOSE_WINDOW') to the right language files - didn't work before
- corrected bad misspelling in german language
- better style in checkout_confirmation.php +underlined link
Some little tweaks:
- I've made the popup window with the conditions bigger (used to be 220x200 pixels, now it's 800x600) and added scrollbars because the conditions on my website were unreadable in the previous contribution.
- Added define('TEXT_CLOSE_WINDOW') to language files
In the previous contributions there would be a link called TEXT_CLOSE_WINDOW to close the window at the end of the conditions popup because it wasn't defined.
Thanks to the other contributors!
Updated german text and changed filenames from .php.chg to chg.php, so my htmleditor GoLive was able to recognize it. Included new popup_conditions.php from rubygirl as well.
All you need is this.
the popup_conditions.php file wasn't pulling the data from the conditions.php file - so here is the new file - simply replace or rewrite existing popup file...
Changed the files so that instead of a ahref=_blank statement now the conditions will show in a popup.
The "Must Agree To Terms" contribution enhances standard OSC Checkout logic by forcing the customer to agree to the store's terms in order to place a new order.
Note: Contributions are used at own risk.