AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => General Extensions => Topic started by: natdroid on April 12, 2021, 08:09:22 PM

Title: hook fast loginn
Post by: natdroid on April 12, 2021, 08:09:22 PM
he there.
How do hook Authenticating login buttons in 1.3beta fast checkout?
Title: Re: hook fast loginn
Post by: abolabo on April 13, 2021, 04:22:45 AM
he there.
How do hook Authenticating login buttons in 1.3beta fast checkout?

Hi, good question.
Can you add some hookvariable into public_html/extensions/fast_checkout/storefront/view/default/template/responses/checkout/login.tpl
for example
<?php echo $this->getHookVar('login_extension'); ?> at the end of file

And then try to call $that->view->addHookVar('login_extension', '<button>custombtn</button>');
inside your hook onControllerResponsesCheckoutPay_InitData()
where $that = $this->baseObject;

Hope this helps.

Please show us result and we'll include your solution into release

Title: Re: hook fast loginn
Post by: natdroid on April 13, 2021, 05:30:45 AM
Thank you! Please do add
Title: Re: hook fast loginn
Post by: abolabo on April 14, 2021, 03:44:28 AM
Thank you! Please do add

done:-)

https://github.com/abantecart/abantecart-src/commit/915d095ddfd3f084ebb76b04dab5352b266d86b1