Doase anybody know how to disable pagination on mysite.com/checkout/cart/ page ?
I Want all my cart items to appear on the same page.
How to do it using XML config ( if possible ) ?
Thanks a lot!
Doase anybody know how to disable pagination on mysite.com/checkout/cart/ page ?
I Want all my cart items to appear on the same page.
How to do it using XML config ( if possible ) ?
Thanks a lot!
Follow this step
Stores > Configuration > Sales > Checkout > Shopping Cart > Number of Items to Display Pager = 0
Create your module with sequence from Magento_Checkout:
app/code/Vendor/Module/etc/module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0">
<sequence>
<module name="Magento_Checkout" />
</sequence>
</module>
</config>
Override default configuration value:
app/code/Vendor/Module/etc/config.xml:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<checkout>
<cart>
<number_items_to_display_pager>0</number_items_to_display_pager>
</cart>
</checkout>
</default>
</config>
Don't forget clear cache. Write me if you have any issues.