
Originally Posted by
lat9
If there's a jscript_ module that's included in the /includes/modules/pages/checkout_payment page, that needs to be copied to /includes/modules/pages/checkout_one.
while that may work, i'm not really sure why you would say that.
there is a file in the checkout_one directory, that is available for anyone to see by downloading the zip, it's contents are:
PHP Code:
<?php
/**
* developed, copyrighted and brought to you by @proseLA (github)
* https://mxworks.cc
* copyright 2022 proseLA
*
* some portions of code may be copyrighted and licensed by www.zen-cart.com
*
* Code is licensed under the MIT license.
*
* Javascript for Square WebPay module
* specifically for One Page Checkout
*
* 04/2022 project: square_webPay v1.0.0 file: jscript_square_webPay.php
*/
if (!file_exists($squareWebPay_jscript = DIR_FS_CATALOG . DIR_WS_MODULES . 'pages/checkout_payment/jscript_square_webPay.php')) {
return false;
}
require $squareWebPay_jscript;
both files need to be there.
the idea to only have 1 file to maintain was yours, so i'm unclear why you would recommend doing something different on this board.
Bookmarks