Commit ff6bb992 by 王东红

优化结算页面

parent ad24eeed
<?php
/**
* Developer: Hemant Kumar Singh Magento Developer
* Website: http://www.wishusucess.com/
*/
namespace JTool\CustomClass\Model\Plugin;
class AttributeMergerPlugin
{
public function afterMerge(\Magento\Checkout\Block\Checkout\AttributeMerger $subject, $result)
{
if (array_key_exists('telephone', $result)) {
$result['telephone']['additionalClasses'] = 'teliphone_number';
}
return $result;
}
}
\ No newline at end of file
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/ObjectManager/etc/config.xsd">
<type name="\Magento\Checkout\Block\Checkout\AttributeMerger">
<plugin name="customAttributeMerger" type="\JTool\CustomClass\Model\Plugin\AttributeMergerPlugin"/>
</type>
</config>
\ No newline at end of file
<?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="JTool_CustomClass" setup_version="1.0.0" active="true"></module>
</config>
\ No newline at end of file
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'JTool_CustomClass',
__DIR__
);
\ No newline at end of file
...@@ -193,6 +193,7 @@ ...@@ -193,6 +193,7 @@
padding: 20px; padding: 20px;
} }
} }
.teliphone_number{width:100% !important;;}
@media(min-width: 768px){ @media(min-width: 768px){
.page-title-wrapper~.columns{ .page-title-wrapper~.columns{
margin-top:0; margin-top:0;
......
...@@ -958,6 +958,9 @@ footer{ ...@@ -958,6 +958,9 @@ footer{
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
} }
.checkout-container{
width: 81%;
}
} }
@media(max-width: 639.98px){ @media(max-width: 639.98px){
.page-header .actions.wishlist-dropdown{ .page-header .actions.wishlist-dropdown{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment