Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
tmccaff
Jeking What errors you get?
That would help, wouldn't it. The your details have changed error.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
jeking
That would help, wouldn't it. The your details have changed error.
The issue is with the ot_insurance "addition" to the order. On entry to the OPC confirmation page, the order's total is $160.08 and after running the "final" order-totals, the ot_insurance is adding an 'insurance' flag to the session ($_SESSION['insurance']) and updating the order's total to $162.08.
The "loop" is causes since the session-based information about the total has changed ... don't want to surprise the customer with that extra $2.00 when they get to the checkout_success page!
Where did/does that order-total come from?
Re: One-Page Checkout [Support Thread]
Thanks I see that now; quick question it says to add this code in ot_reward_points.php after function collect_posts
PHP Code:
PHP Code:
if (isset($_SESSION['redeem_flag']) && $_SESSION['redeem_flag'])
$_POST['redeem_flag'] = $_SESSION['redeem_flag'];
Here is the code in that function. Do I need to replace this code with one above? instead of request it's supposed to be session?
PHP Code:
PHP Code:
function collect_posts()
{
if($_REQUEST['redeem_checkout_flag'])
if((isset($_REQUEST['redeem_flag']) && $_REQUEST['redeem_flag']) || (isset($_REQUEST['redeem_points']) && $_REQUEST['redeem_points']>0))
{
$_SESSION['redeem_points']=$this->get_points_redeeming();
$_SESSION['redeem_value']=$_SESSION['redeem_points']*GetRedeemRatio($_SESSION['customer_id']);
}
else
$this->clear_posts();
}
Re: One-Page Checkout [Support Thread]
@tmccaff, since I don't use reward_points you'll need to wait for validation from another Zenner that's successfully integrated reward_points with OPC.
Re: One-Page Checkout [Support Thread]
Ok thanks. Quick question with checkout without account will work with onepage or no?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
The issue is with the ot_insurance "addition" to the order. On entry to the OPC confirmation page, the order's total is $160.08 and after running the "final" order-totals, the ot_insurance is adding an 'insurance' flag to the session ($_SESSION['insurance']) and updating the order's total to $162.08.
The "loop" is causes since the session-based information about the total has changed ... don't want to surprise the customer with that extra $2.00 when they get to the checkout_success page!
Where did/does that order-total come from?
Adding insurance is a check box on the page, so checking the box would add the $2, which is displayed, to the total.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.5.0 of
One-Page Checkout to the Zen Cart plugins' area for review; I'll post back here when it's available for download.
This version contains the changes associated with the following
GitHub issues:
#104: Defer installation until admin login.
#105: Split template blocks into separate files for easier re-arrangement
#106: Move jQuery processing to separately-loaded .js file, with minified version.
It's a major move forward in
OPC's release, making it easier to customize since each of the major template "blocks" (e.g. payment-address, shopping-cart) are moved to a separate file. That way, you can move the blocks around more easily by simply updating your template's version of tpl_checkout_one_default.php.
In addition, the main page's jQuery processing has been split into a constant-setting file that then loads the actual jQuery processing (full-size or minified, based on an admin configuration setting). This allows (a) the ever-growing script file to be minimized and (b) for that file to be loaded after the page has been rendered by the browser ... both page-level load-time improvements.
v1.5.0 is now available for download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2095
Re: One-Page Checkout [Support Thread]
Quick question: Will it work on ZC1.5.5f?
Thanks,
jpda
Re: One-Page Checkout [Support Thread]
Re: One-Page Checkout [Support Thread]
Thank you!:smile:
Cheers,
jpda