How to call block in phtml magento 1.9.*
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I need to make shipping -> "Pickup in store". But in shipping model we can't add
how can we do it in payment?
I have Block/Stores.php and template shipment/stores.phtml, I want to add this template to available.phtml in this place
I succesfuly overrided the onepageshipping_methodavailable.phtml
and added in my overrided available.phtml. But my stores.phtml doesn't joined.
magento-1.9
add a comment |Â
up vote
1
down vote
favorite
I need to make shipping -> "Pickup in store". But in shipping model we can't add
how can we do it in payment?
I have Block/Stores.php and template shipment/stores.phtml, I want to add this template to available.phtml in this place
I succesfuly overrided the onepageshipping_methodavailable.phtml
and added in my overrided available.phtml. But my stores.phtml doesn't joined.
magento-1.9
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I need to make shipping -> "Pickup in store". But in shipping model we can't add
how can we do it in payment?
I have Block/Stores.php and template shipment/stores.phtml, I want to add this template to available.phtml in this place
I succesfuly overrided the onepageshipping_methodavailable.phtml
and added in my overrided available.phtml. But my stores.phtml doesn't joined.
magento-1.9
I need to make shipping -> "Pickup in store". But in shipping model we can't add
how can we do it in payment?
I have Block/Stores.php and template shipment/stores.phtml, I want to add this template to available.phtml in this place
I succesfuly overrided the onepageshipping_methodavailable.phtml
and added in my overrided available.phtml. But my stores.phtml doesn't joined.
magento-1.9
edited Aug 28 at 3:51


Chintan Kaneriya
1129
1129
asked Aug 28 at 2:56


Sometimes Play
82
82
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
You did not add .phtml in template call you should use
<block type="shipment/stores" name="stores" template="shipment/stores.phtml"/>
or you can call directly block code inside phtml at the place of $this->getChildHtml('stores').
<?php echo $this->getlayout()->createBlock('shipment/stores')->setTemplate('shipment/stores.phtml')->toHtml();?>
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
 |Â
show 1 more comment
up vote
1
down vote
Try this
echo $this->getLayout()->createBlock('your/block')
->setTemplate('your/phtmlfile.phtml')->toHtml();
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You did not add .phtml in template call you should use
<block type="shipment/stores" name="stores" template="shipment/stores.phtml"/>
or you can call directly block code inside phtml at the place of $this->getChildHtml('stores').
<?php echo $this->getlayout()->createBlock('shipment/stores')->setTemplate('shipment/stores.phtml')->toHtml();?>
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
 |Â
show 1 more comment
up vote
1
down vote
accepted
You did not add .phtml in template call you should use
<block type="shipment/stores" name="stores" template="shipment/stores.phtml"/>
or you can call directly block code inside phtml at the place of $this->getChildHtml('stores').
<?php echo $this->getlayout()->createBlock('shipment/stores')->setTemplate('shipment/stores.phtml')->toHtml();?>
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
 |Â
show 1 more comment
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You did not add .phtml in template call you should use
<block type="shipment/stores" name="stores" template="shipment/stores.phtml"/>
or you can call directly block code inside phtml at the place of $this->getChildHtml('stores').
<?php echo $this->getlayout()->createBlock('shipment/stores')->setTemplate('shipment/stores.phtml')->toHtml();?>
You did not add .phtml in template call you should use
<block type="shipment/stores" name="stores" template="shipment/stores.phtml"/>
or you can call directly block code inside phtml at the place of $this->getChildHtml('stores').
<?php echo $this->getlayout()->createBlock('shipment/stores')->setTemplate('shipment/stores.phtml')->toHtml();?>
edited Aug 28 at 4:49


Abdul
7,4551834
7,4551834
answered Aug 28 at 4:44
Ansar Husain
790216
790216
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
 |Â
show 1 more comment
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
check in console is there any js error ?
– Ansar Husain
Aug 28 at 10:09
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
This error is coming because magento is not getting block shipment/stores
– Ansar Husain
Aug 28 at 10:39
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
can you share etc/config.xml file ?
– Ansar Husain
Aug 28 at 10:42
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
did you create block file Tsymbal_Shipment_Block_Stores ? and also did you check with flush cache ?
– Ansar Husain
Aug 28 at 11:02
 |Â
show 1 more comment
up vote
1
down vote
Try this
echo $this->getLayout()->createBlock('your/block')
->setTemplate('your/phtmlfile.phtml')->toHtml();
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
add a comment |Â
up vote
1
down vote
Try this
echo $this->getLayout()->createBlock('your/block')
->setTemplate('your/phtmlfile.phtml')->toHtml();
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Try this
echo $this->getLayout()->createBlock('your/block')
->setTemplate('your/phtmlfile.phtml')->toHtml();
Try this
echo $this->getLayout()->createBlock('your/block')
->setTemplate('your/phtmlfile.phtml')->toHtml();
answered Aug 28 at 4:35


Dinesh Yadav
3,1671730
3,1671730
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
add a comment |Â
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
If I use it, the block "3 delivery options" is not opened in the checkout, I click the "Continue" button in the "2 sending information", but nothing happens.
– Sometimes Play
Aug 28 at 10:07
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239794%2fhow-to-call-block-in-phtml-magento-1-9%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password