Jump to content

Edit History

Grzegorz Zych

Grzegorz Zych


missing letter

Hello,
I am creating a new extension for Presta 8

I want to add a new field somewhere in checkout - payment. I've seen many posts, websites, etc. and couldn't find a working solution.

Basically, I want to use any hook - I don't know which one is the most suitable. I tried many hooks, but I didn't see any effect.


I expect to see any change, any effect in the checkout payment section. Then I want to get the data from this field into the actionValidateOrder hook

my code:

//mainExtensionFile.php

	$this->registerHook('displayPaymentTopForm');	


	...


public function hookDisplayPaymentTop($params)
	{
		return $this->display(__FILE__, '/views/templates/hook/display-payment-top.tpl');
	}



//views/templates/hook/display-payment-top.tpl
<div class="form-group">
    <label id="teeest" for="your_field_name">test</label>
    <input type="text" id="your_field_name" name="test" value="test">
</div>

 

Grzegorz Zych

Grzegorz Zych


remove text

Hello,
I am creating a new extension for Presta 8

I want to add a new field somewhere in checkout - payment. I've seen many posts, websites, etc. and couldn't find a working solution.

Basically, I want to use any hook - I don't know which one is the most suitable. I tried many hooks, but I didn't see any effect.


I expect to see any change, any effect in the checkout payment section. Then I want to get the data from this field into the actionValidateOrder hook

my code:

//mainExtensionFile.php

	$this->registerHook('displayPaymentTopForm');	


	...


public function hookDisplayPaymentTop($params)
	{
		return $this->display(__FILE__, '/views/templates/hook/display-payment-top.tpl');
	}



//views/templates/hook/display-payment-top.tpl
div class="form-group">
    <label id="teeest" for="your_field_name">test</label>
    <input type="text" id="your_field_name" name="test" value="test">
</div>

 

Hello,
I am creating a new extension for Presta 8

I want to add a new field somewhere in checkout - payment. I've seen many posts, websites, etc. and couldn't find a working solution.

Basically, I want to use any hook - I don't know which one is the most suitable. I tried many hooks, but I didn't see any effect.


I expect to see any change, any effect in the checkout payment section. Then I want to get the data from this field into the actionValidateOrder hook

Translated with DeepL.com (free version)

my code:

//mainExtensionFile.php

	$this->registerHook('displayPaymentTopForm');	


	...


public function hookDisplayPaymentTop($params)
	{
		return $this->display(__FILE__, '/views/templates/hook/display-payment-top.tpl');
	}



//views/templates/hook/display-payment-top.tpl
div class="form-group">
    <label id="teeest" for="your_field_name">test</label>
    <input type="text" id="your_field_name" name="test" value="test">
</div>

 

×
×
  • Create New...