cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.1 help in theme

Magento 2.1 help in theme

Hi,

 

I am new to magento 2.1 and i am facing problem in showing container main container is showing find and under the main container there are two more container one is showing fine but other does not.

 

<container name="cart.summary" label="Cart Summary Container" htmlTag="div" htmlClass="cart-summary" after="checkout.cart.form">
                          <container name="car.calculate-shipping-cart-totals-area" label="Cart Summary Main Container" htmlTag="div" htmlClass="calculate-shipping-cart-totals-area fix">  
                                <container name="cart.pull-left" label="Cart Summary Left Container" htmlTag="div" htmlClass="col-md-5 pull-left">  
                                    <block class="Magento\Checkout\Block\Cart\Coupon" name="checkout.cart.coupon" as="coupon" template="cart/coupon.phtml"/>
                                </container>
                                
                                 <container name="cart.pull-right" label="Cart Summary Right Container" htmlTag="div" htmlClass="cart_totals col-md-5 pull-right">  
                               <block class="Magento\Checkout\Block\Cart\Shipping" name="checkout.cart.shipping" as="shipping" template="cart/shipping.phtml" after="checkout.cart.coupon">
                                <arguments>
                                    <argument name="jsLayout" xsi:type="array">
                                        <item name="types" xsi:type="array">
                                            <item name="form.input" xsi:type="array">
                                                <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
                                                <item name="config" xsi:type="array">
                                                    <item name="provider" xsi:type="string">checkoutProvider</item>
                                                    <item name="deps" xsi:type="array">
                                                        <item name="0" xsi:type="string">checkoutProvider</item>
                                                    </item>
                                                    <item name="template" xsi:type="string">ui/form/field</item>
                                                    <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
                                                </item>
                                            </item>
                                        </item>
                                       
                                          
                                    </argument>
                                </arguments>
                            </block>
                         
                                </container>
                          </container>
                            
                            
                                
                           
                           
                          
                        </container>

 

cart.pull-left container is not showing and coupon block is out of the main container.

 

Second how we can show the cross sell products in sidebar of shopping cart page.

 

anyway to call the cross sell product block directly in .phtml file like we did in magento 1.

 

thanks

1 REPLY 1

Re: Magento 2.1 help in theme

Hi @DSS Rashid,



Could you please clarify this sentence that you wrote?
"I am new to magento 2.1 and i am facing problem in showing container main container is showing find and under the main container there are two more container one is showing fine but other does not."

 

Also, if you can provide screenshots, that would be helpful for the community to be able to help you.



Best regards.
Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.