Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
[+TASK] Add possibility to hide shipping cost block in cart (not hidd…
Browse files Browse the repository at this point in the history
…en by default) (#132)
  • Loading branch information
avstudnitz committed Feb 26, 2013
1 parent 0e9bc5d commit 936b716
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/app/code/community/FireGento/GermanSetup/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@
<options>
<additional_information><![CDATA[Zusätzlich können noch Kosten oder Steuern anfallen, die nicht über uns abgeführt bzw. von uns in Rechnung gestellt werden.]]></additional_information>
</options>
<cart>
<hide_shipping>0</hide_shipping>
</cart>
</checkout>
<customer>
<address_templates>
Expand Down
13 changes: 13 additions & 0 deletions src/app/code/community/FireGento/GermanSetup/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,19 @@
</additional_information>
</fields>
</options>
<cart>
<fields>
<hide_shipping translate="label" module="germansetup">
<label>Hide estimated shipping costs in cart</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>500</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</hide_shipping>
</fields>
</cart>
</groups>
</checkout>
<google>
Expand Down
8 changes: 8 additions & 0 deletions src/app/design/frontend/base/default/layout/germansetup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,14 @@
</reference>
</germansetup_frontend_agreements>

<checkout_cart_index>
<reference name="checkout.cart">
<action method="unsetChild" ifconfig="checkout/cart/hide_shipping">
<name>shipping</name>
</action>
</reference>
</checkout_cart_index>

<checkout_onepage_index>
<reference name="head">
<action method="addCss">
Expand Down
3 changes: 2 additions & 1 deletion src/app/locale/de_DE/FireGento_GermanSetup.csv
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@
"Email Settings","Email-Einstellungen"
"Tax Settings","Steuer-Einstellungen"

"Delivery Time","Lieferzeit"
"Delivery Time","Lieferzeit"
"Hide estimated shipping costs in cart","Geschätzte Versandkosten im Warenkorb verstecken"

0 comments on commit 936b716

Please sign in to comment.