Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: hook fast loginn  (Read 4555 times)

Offline natdroid

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
hook fast loginn
« on: April 12, 2021, 08:09:22 PM »
he there.
How do hook Authenticating login buttons in 1.3beta fast checkout?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: hook fast loginn
« Reply #1 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

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline natdroid

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
Re: hook fast loginn
« Reply #2 on: April 13, 2021, 05:30:45 AM »
Thank you! Please do add

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod