Ben (şablon sayfasını çoğaltarak ve onu değiştirmeden) sayfasına bir blok ekleyerek ödeme başarı sayfasına bazı bilgiler eklemek istiyorum.
I've looked at the downloadable module and tried to copy it but that didn't work. I have a custom module and I've tried to do this :
1) adding a block file to : ...\app\code\local\SHANI\MyModule\Block\checkout\Details.php
class SHANI_MyModule_Block_Checkout_Details extends Mage_Checkout_Block_Onepage_Success
{
}
2) adding a template file to : ...\app\design\frontend\default\default\template\mymodule\checkout\details.phtml
<?php
echo "test ffdagdf";
?>
... \ App \ tasarım \ önuç \ default \ default \ layout \ mymodule.xml: 3) blok ekleme
<default>
</default>
....
....
....
<checkout_onepage_success>
<reference name="checkout.success">
<block type="mymodule/checkout_success" name="mymodule.checkout.details" template="mymodule/checkout/details.phtml"/>
</reference>
</checkout_onepage_success>
Şekilde yapmak için o mu? Ne eksik?
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / Update / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
Ben Lrrr ama hala şans yazdı mymodule.xml değiştirmek denedim ...
<checkout_onepage_success>
<reference name="checkout.success">
<block type="mymodule/checkout_details" name="mymodule.checkout.details" template="mymodule/checkout/details.phtml"/>
</reference>
</checkout_onepage_success>
Başka bir fikir sorun ne?
I'm trying to do the same thing with the product view page and I was able to add a block to the "product.info.additional" but not to the "product.info".
Bu çalışıyor:
<catalog_product_view>
<reference name="product.info.additional">
<block type="catalog/product_view" name="mymodule.saledetails" before="-" template="mymodule/product/details.phtml"/>
<block type="mymodule/product_participant_list" name="mymodule.participants" before="-" template="mymodule/product/participant/list.phtml"/>
</reference>
</catalog_product_view>
Ancak bu değil
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view" name="mymodule.saledetails" before="-" template="mymodule/product/details.phtml"/>
</reference>
<reference name="product.info.additional">
<block type="mymodule/product_participant_list" name="mymodule.participants" before="-" template="mymodule/product/participant/list.phtml"/>
</reference>
</catalog_product_view>
I'm trying to move this block from "product.info.additional" to "product.info" because I want to show this block under the Quick Overview (in the default template) and not under the Details. Why doesn't it work under the "product.info"?