1

Is it possible to add the rwd minicart to my own custom theme? and if so how could I do it?

I have tried copying minicart.phtml and items.phtml to my own theme and trying to call minicart.phtml in my local xml but it doesn't appear to be working

5
  • Which theme are you used ? Commented Nov 4, 2016 at 17:01
  • yes,possiable.. i have done for a customer
    – Amit Bera
    Commented Nov 4, 2016 at 17:14
  • i am using my own theme based on the base theme, how is it possible? thank you
    – Oli Tuck
    Commented Nov 4, 2016 at 17:23
  • it possiable.. Need to change code at js fie
    – Amit Bera
    Commented Nov 4, 2016 at 17:27
  • can you tell me how to do the whole process?
    – Oli Tuck
    Commented Nov 4, 2016 at 18:11

1 Answer 1

0

in your local.xml file add

    <!-- Header ====================================================================== -->
     <reference name="header">
        <block type="checkout/cart_minicart" name="minicart_head" template="checkout/cart/minicart.phtml" before="-">
            <block type="checkout/cart_sidebar" name="minicart_content" template="checkout/cart/minicart/items.phtml">
                <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/cart/minicart/default.phtml</template></action>
                <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/minicart/default.phtml</template></action>
                <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/minicart/default.phtml</template></action>
                <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/minicart/default.phtml</template></action>

                <block type="core/text_list" name="cart_sidebar.cart_promotion" as="cart_promotion" translate="label" module="checkout">
                    <label>Mini-cart promotion block</label>
                </block>
                <block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
                    <label>Shopping Cart Sidebar Extra Actions</label>
                </block>
            </block>
        </block>
    </reference>

In your template/page/html/header.phtml file add

<?php echo $this->getChildHtml('minicart_head'); ?>

Copy checkout/cart/minicart/default.phtml - checkout/cart/minicart/items.phtml and checkout/cart/minicart.phtml in your theme

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.