Block loads on configurable product page but not on simple product page
I created an extension to show the price split in parcels on product page but it only renders on configurable products not on simple products. Here are all the files of my extension:
/app/code/local/Newer7/Parcelamento/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Newer7_Parcelamento>
<version>0.1.0</version>
</Newer7_Parcelamento>
</modules>
<frontend>
<routers>
<parcelamento>
<use>standard</use>
<args>
<module>Newer7_Parcelamento</module>
<frontName>parcelamento</frontName>
</args>
</parcelamento>
</routers>
<layout>
<updates>
<parcelamento>
<file>newer7_parcelamento.xml</file>
</parcelamento>
</updates>
</layout>
</frontend>
<global>
<helpers>
<parcelamento>
<class>Newer7_Parcelamento_Helper</class>
</parcelamento>
</helpers>
</global>
<adminhtml>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<parcelamento>
<title>Newer7 Parcelamento</title>
<sort_order>70</sort_order>
</parcelamento>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
<default>
<parcelamento>
<parcelamento_general>
<enabled>0</enabled>
<parcelamento_jquery>1</parcelamento_jquery>
<parcelamento_xparcelas>0</parcelamento_xparcelas>
<parcelamento_desconto>0</parcelamento_desconto>
<parcelamento_minimo>0</parcelamento_minimo>
</parcelamento_general>
</parcelamento>
</default>
</config>
/app/code/local/Newer7/Parcelamento/etc/system.xml
<?xml version="1.0"?>
<config>
<tabs>
<parcelamento translate="label" module="parcelamento">
<label>Newer7</label>
<sort_order>110</sort_order>
</parcelamento>
</tabs>
<sections>
<parcelamento translate="label" module="parcelamento">
<class>separator-top</class>
<label>Parcelamento</label>
<tab>parcelamento</tab>
<sort_order>100</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<parcelamento_general translate="label">
<label>Configurações</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Ativar</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selecione para ativar/desativar o módulo.</comment>
</enabled>
<parcelamento_jquery translate="label">
<label>Habilitar jQuery</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_enabledisable</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Desabilite se estiver sendo carregado por outro módulo.</comment>
</parcelamento_jquery>
<parcelamento_xparcelas translate="label">
<label>Quantidade de parcelas</label>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite a quantidade máxima de parcelas.</comment>
</parcelamento_xparcelas>
<parcelamento_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto à vista.</comment>
</parcelamento_desconto>
<boleto_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto no boleto.</comment>
</boleto_desconto>
<parcelamento_minimo translate="label">
<label>Parcela Mínima</label>
<frontend_type>text</frontend_type>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor mínimo de cada parcela.</comment>
</parcelamento_minimo>
</fields>
</parcelamento_general>
</groups>
</parcelamento>
</sections>
</config>
/app/design/frontend/base/default/layout/newer7_parcelamento.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addItem" ifconfig="parcelamento/parcelamento_general/parcelamento_jquery"><type>js</type><name>newer7_parcelamento/jquery-1.11.0.js</name></action>
</reference>
</default>
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view" name="valores" as="valores" template="newer7_parcelamento/valores.phtml" />
</reference>
</catalog_product_view>
</layout>
I'm using RWD package. Does anyone can give me a light what is going on? Thanks!
magento-1.9 layout extensions
add a comment |
I created an extension to show the price split in parcels on product page but it only renders on configurable products not on simple products. Here are all the files of my extension:
/app/code/local/Newer7/Parcelamento/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Newer7_Parcelamento>
<version>0.1.0</version>
</Newer7_Parcelamento>
</modules>
<frontend>
<routers>
<parcelamento>
<use>standard</use>
<args>
<module>Newer7_Parcelamento</module>
<frontName>parcelamento</frontName>
</args>
</parcelamento>
</routers>
<layout>
<updates>
<parcelamento>
<file>newer7_parcelamento.xml</file>
</parcelamento>
</updates>
</layout>
</frontend>
<global>
<helpers>
<parcelamento>
<class>Newer7_Parcelamento_Helper</class>
</parcelamento>
</helpers>
</global>
<adminhtml>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<parcelamento>
<title>Newer7 Parcelamento</title>
<sort_order>70</sort_order>
</parcelamento>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
<default>
<parcelamento>
<parcelamento_general>
<enabled>0</enabled>
<parcelamento_jquery>1</parcelamento_jquery>
<parcelamento_xparcelas>0</parcelamento_xparcelas>
<parcelamento_desconto>0</parcelamento_desconto>
<parcelamento_minimo>0</parcelamento_minimo>
</parcelamento_general>
</parcelamento>
</default>
</config>
/app/code/local/Newer7/Parcelamento/etc/system.xml
<?xml version="1.0"?>
<config>
<tabs>
<parcelamento translate="label" module="parcelamento">
<label>Newer7</label>
<sort_order>110</sort_order>
</parcelamento>
</tabs>
<sections>
<parcelamento translate="label" module="parcelamento">
<class>separator-top</class>
<label>Parcelamento</label>
<tab>parcelamento</tab>
<sort_order>100</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<parcelamento_general translate="label">
<label>Configurações</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Ativar</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selecione para ativar/desativar o módulo.</comment>
</enabled>
<parcelamento_jquery translate="label">
<label>Habilitar jQuery</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_enabledisable</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Desabilite se estiver sendo carregado por outro módulo.</comment>
</parcelamento_jquery>
<parcelamento_xparcelas translate="label">
<label>Quantidade de parcelas</label>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite a quantidade máxima de parcelas.</comment>
</parcelamento_xparcelas>
<parcelamento_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto à vista.</comment>
</parcelamento_desconto>
<boleto_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto no boleto.</comment>
</boleto_desconto>
<parcelamento_minimo translate="label">
<label>Parcela Mínima</label>
<frontend_type>text</frontend_type>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor mínimo de cada parcela.</comment>
</parcelamento_minimo>
</fields>
</parcelamento_general>
</groups>
</parcelamento>
</sections>
</config>
/app/design/frontend/base/default/layout/newer7_parcelamento.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addItem" ifconfig="parcelamento/parcelamento_general/parcelamento_jquery"><type>js</type><name>newer7_parcelamento/jquery-1.11.0.js</name></action>
</reference>
</default>
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view" name="valores" as="valores" template="newer7_parcelamento/valores.phtml" />
</reference>
</catalog_product_view>
</layout>
I'm using RWD package. Does anyone can give me a light what is going on? Thanks!
magento-1.9 layout extensions
I guess you are calling your block with some<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?
– Julien Loizelet
14 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago
add a comment |
I created an extension to show the price split in parcels on product page but it only renders on configurable products not on simple products. Here are all the files of my extension:
/app/code/local/Newer7/Parcelamento/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Newer7_Parcelamento>
<version>0.1.0</version>
</Newer7_Parcelamento>
</modules>
<frontend>
<routers>
<parcelamento>
<use>standard</use>
<args>
<module>Newer7_Parcelamento</module>
<frontName>parcelamento</frontName>
</args>
</parcelamento>
</routers>
<layout>
<updates>
<parcelamento>
<file>newer7_parcelamento.xml</file>
</parcelamento>
</updates>
</layout>
</frontend>
<global>
<helpers>
<parcelamento>
<class>Newer7_Parcelamento_Helper</class>
</parcelamento>
</helpers>
</global>
<adminhtml>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<parcelamento>
<title>Newer7 Parcelamento</title>
<sort_order>70</sort_order>
</parcelamento>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
<default>
<parcelamento>
<parcelamento_general>
<enabled>0</enabled>
<parcelamento_jquery>1</parcelamento_jquery>
<parcelamento_xparcelas>0</parcelamento_xparcelas>
<parcelamento_desconto>0</parcelamento_desconto>
<parcelamento_minimo>0</parcelamento_minimo>
</parcelamento_general>
</parcelamento>
</default>
</config>
/app/code/local/Newer7/Parcelamento/etc/system.xml
<?xml version="1.0"?>
<config>
<tabs>
<parcelamento translate="label" module="parcelamento">
<label>Newer7</label>
<sort_order>110</sort_order>
</parcelamento>
</tabs>
<sections>
<parcelamento translate="label" module="parcelamento">
<class>separator-top</class>
<label>Parcelamento</label>
<tab>parcelamento</tab>
<sort_order>100</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<parcelamento_general translate="label">
<label>Configurações</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Ativar</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selecione para ativar/desativar o módulo.</comment>
</enabled>
<parcelamento_jquery translate="label">
<label>Habilitar jQuery</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_enabledisable</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Desabilite se estiver sendo carregado por outro módulo.</comment>
</parcelamento_jquery>
<parcelamento_xparcelas translate="label">
<label>Quantidade de parcelas</label>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite a quantidade máxima de parcelas.</comment>
</parcelamento_xparcelas>
<parcelamento_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto à vista.</comment>
</parcelamento_desconto>
<boleto_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto no boleto.</comment>
</boleto_desconto>
<parcelamento_minimo translate="label">
<label>Parcela Mínima</label>
<frontend_type>text</frontend_type>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor mínimo de cada parcela.</comment>
</parcelamento_minimo>
</fields>
</parcelamento_general>
</groups>
</parcelamento>
</sections>
</config>
/app/design/frontend/base/default/layout/newer7_parcelamento.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addItem" ifconfig="parcelamento/parcelamento_general/parcelamento_jquery"><type>js</type><name>newer7_parcelamento/jquery-1.11.0.js</name></action>
</reference>
</default>
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view" name="valores" as="valores" template="newer7_parcelamento/valores.phtml" />
</reference>
</catalog_product_view>
</layout>
I'm using RWD package. Does anyone can give me a light what is going on? Thanks!
magento-1.9 layout extensions
I created an extension to show the price split in parcels on product page but it only renders on configurable products not on simple products. Here are all the files of my extension:
/app/code/local/Newer7/Parcelamento/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Newer7_Parcelamento>
<version>0.1.0</version>
</Newer7_Parcelamento>
</modules>
<frontend>
<routers>
<parcelamento>
<use>standard</use>
<args>
<module>Newer7_Parcelamento</module>
<frontName>parcelamento</frontName>
</args>
</parcelamento>
</routers>
<layout>
<updates>
<parcelamento>
<file>newer7_parcelamento.xml</file>
</parcelamento>
</updates>
</layout>
</frontend>
<global>
<helpers>
<parcelamento>
<class>Newer7_Parcelamento_Helper</class>
</parcelamento>
</helpers>
</global>
<adminhtml>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<parcelamento>
<title>Newer7 Parcelamento</title>
<sort_order>70</sort_order>
</parcelamento>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
<default>
<parcelamento>
<parcelamento_general>
<enabled>0</enabled>
<parcelamento_jquery>1</parcelamento_jquery>
<parcelamento_xparcelas>0</parcelamento_xparcelas>
<parcelamento_desconto>0</parcelamento_desconto>
<parcelamento_minimo>0</parcelamento_minimo>
</parcelamento_general>
</parcelamento>
</default>
</config>
/app/code/local/Newer7/Parcelamento/etc/system.xml
<?xml version="1.0"?>
<config>
<tabs>
<parcelamento translate="label" module="parcelamento">
<label>Newer7</label>
<sort_order>110</sort_order>
</parcelamento>
</tabs>
<sections>
<parcelamento translate="label" module="parcelamento">
<class>separator-top</class>
<label>Parcelamento</label>
<tab>parcelamento</tab>
<sort_order>100</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<parcelamento_general translate="label">
<label>Configurações</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enabled translate="label">
<label>Ativar</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selecione para ativar/desativar o módulo.</comment>
</enabled>
<parcelamento_jquery translate="label">
<label>Habilitar jQuery</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_enabledisable</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Desabilite se estiver sendo carregado por outro módulo.</comment>
</parcelamento_jquery>
<parcelamento_xparcelas translate="label">
<label>Quantidade de parcelas</label>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite a quantidade máxima de parcelas.</comment>
</parcelamento_xparcelas>
<parcelamento_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto à vista.</comment>
</parcelamento_desconto>
<boleto_desconto translate="label">
<label>Desconto à vista</label>
<frontend_type>text</frontend_type>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor para o desconto no boleto.</comment>
</boleto_desconto>
<parcelamento_minimo translate="label">
<label>Parcela Mínima</label>
<frontend_type>text</frontend_type>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Digite o valor mínimo de cada parcela.</comment>
</parcelamento_minimo>
</fields>
</parcelamento_general>
</groups>
</parcelamento>
</sections>
</config>
/app/design/frontend/base/default/layout/newer7_parcelamento.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addItem" ifconfig="parcelamento/parcelamento_general/parcelamento_jquery"><type>js</type><name>newer7_parcelamento/jquery-1.11.0.js</name></action>
</reference>
</default>
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view" name="valores" as="valores" template="newer7_parcelamento/valores.phtml" />
</reference>
</catalog_product_view>
</layout>
I'm using RWD package. Does anyone can give me a light what is going on? Thanks!
magento-1.9 layout extensions
magento-1.9 layout extensions
asked 24 mins ago
Filipe MarquesFilipe Marques
366
366
I guess you are calling your block with some<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?
– Julien Loizelet
14 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago
add a comment |
I guess you are calling your block with some<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?
– Julien Loizelet
14 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago
I guess you are calling your block with some
<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?– Julien Loizelet
14 mins ago
I guess you are calling your block with some
<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?– Julien Loizelet
14 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago
add a comment |
1 Answer
1
active
oldest
votes
Well, finally I've already find out what was going on:
I had to insert a snippet on the view.phtml to call the block but there was a condition there:
<?php if($_product->getTypeId() == 'configurable' && Mage::getStoreConfig('parcelamento/parcelamento_general/enabled')): ?>
<?php echo $this->getChildHtml("valores"); ?>
<?php endif; ?>
I removed
$_product->getTypeId() == 'configurable' &&
from the condition and it worked.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f258053%2fblock-loads-on-configurable-product-page-but-not-on-simple-product-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Well, finally I've already find out what was going on:
I had to insert a snippet on the view.phtml to call the block but there was a condition there:
<?php if($_product->getTypeId() == 'configurable' && Mage::getStoreConfig('parcelamento/parcelamento_general/enabled')): ?>
<?php echo $this->getChildHtml("valores"); ?>
<?php endif; ?>
I removed
$_product->getTypeId() == 'configurable' &&
from the condition and it worked.
add a comment |
Well, finally I've already find out what was going on:
I had to insert a snippet on the view.phtml to call the block but there was a condition there:
<?php if($_product->getTypeId() == 'configurable' && Mage::getStoreConfig('parcelamento/parcelamento_general/enabled')): ?>
<?php echo $this->getChildHtml("valores"); ?>
<?php endif; ?>
I removed
$_product->getTypeId() == 'configurable' &&
from the condition and it worked.
add a comment |
Well, finally I've already find out what was going on:
I had to insert a snippet on the view.phtml to call the block but there was a condition there:
<?php if($_product->getTypeId() == 'configurable' && Mage::getStoreConfig('parcelamento/parcelamento_general/enabled')): ?>
<?php echo $this->getChildHtml("valores"); ?>
<?php endif; ?>
I removed
$_product->getTypeId() == 'configurable' &&
from the condition and it worked.
Well, finally I've already find out what was going on:
I had to insert a snippet on the view.phtml to call the block but there was a condition there:
<?php if($_product->getTypeId() == 'configurable' && Mage::getStoreConfig('parcelamento/parcelamento_general/enabled')): ?>
<?php echo $this->getChildHtml("valores"); ?>
<?php endif; ?>
I removed
$_product->getTypeId() == 'configurable' &&
from the condition and it worked.
answered 12 mins ago
Filipe MarquesFilipe Marques
366
366
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f258053%2fblock-loads-on-configurable-product-page-but-not-on-simple-product-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I guess you are calling your block with some
<?php echo $this->getChildHtml('valores') ?>
. If I am right, could you tell us in which template and where in this template you are doing this call ?– Julien Loizelet
14 mins ago
Julien, thanks for the help! You were totaly right and there was a condition to call this block to load only configurable products! I removed the condition and it worked. Thanks!
– Filipe Marques
11 mins ago