Magento 如果属性值为“否”,则产品视图页面中的CSS设计问题

Magento 如果属性值为“否”,则产品视图页面中的CSS设计问题,magento,Magento,我们正在使用magento网站。我们创建了“货到付款”属性 在产品页面中,我们将显示货到付款可用或不使用属性值 属性值=是=> 属性值=否=> 若我们给出的值为“否”,则表示上述链接中出现了设计问题 1下面显示的是“按块传递” 2上面缺少水平线:关键要素文本 3关键功能的字体大小不同 页面的完整代码: 请用下面的代码替换您的div delivery_详细信息 <div class="delivery_details"> <div cl

我们正在使用magento网站。我们创建了“货到付款”属性

在产品页面中,我们将显示货到付款可用或不使用属性值

属性值=是=>

属性值=否=>

若我们给出的值为“否”,则表示上述链接中出现了设计问题

1下面显示的是“按块传递”

2上面缺少水平线:关键要素文本

3关键功能的字体大小不同

页面的完整代码:


请用下面的代码替换您的div delivery_详细信息

<div class="delivery_details">


                    <div class="COD">
                    <?php $attribute = $_product->getResource()->getAttribute('cod_available');
                        $attribute_value = $attribute ->getFrontend()->getValue($_product);

                            if ($attribute_value == "Yes"){ ?>
                                <h5> CASH ON DELIVERY </h5>       
                                <div class="Delivery_hover_details">?<p class="killing"><?php echo "Available";?></p></div>
                            <?php }else{ ?>
                                  <i class="fa fa-times"></i>
                                  <p>
                                    <h5> CASH ON DELIVERY </h5>
                                    <?php echo " Not Available"; ?>
                                  </p>
                                  <?php } ?>
                               <span class="coupontooltip">
                                   <div class="cod_content">
                                       <h5>How do I place a Cash on Delivery (COD) order?</h5>
                                        <p>All items that have the "Cash on Delivery Available" icon are valid for order by Cash on Delivery.</p>
                                        <p>Add the item(s) to your cart and proceed to checkout.When prompted to choose a payment option, select "Cash on Delivery". </p>
                                        <p>Once you place the order you will receive confirmation call from our customer support for validation with in 48 hours. Once verified and confirmed, your order will be processed for shipment in the time specified, from the date of confirmation. You will be required to make a cash-only payment to our courier partner at the time of delivery of your order to complete the payment.</p>
                                        <p>Terms & Conditions</p>
                                        <p>The maximum order value for COD is ₹5000.</p>
                                        <p>e-Gift Vouchers or Store Credit cannot be used for COD orders.</p>
                                        <p>Cash-only payment at the time of delivery.</p>
                                    </div>
                                </span>

                            </div>

你错过了在一个条件内关闭一个div。这现在必须起作用。

你的问题是什么?请用Quick_2类将代码部分发布到div中好吗?@Enigmativity如果我们将属性值设置为否,那么设计问题就会发生。我想这个链接应该看起来像我刚刚做了改变,请再做一次,并反馈我一旦我移动了额外的,它开始工作,谢谢所有的支持
<div class="delivery_details">


                    <div class="COD">
                    <?php $attribute = $_product->getResource()->getAttribute('cod_available');
                        $attribute_value = $attribute ->getFrontend()->getValue($_product);

                            if ($attribute_value == "Yes"){ ?>
                                <h5> CASH ON DELIVERY </h5>       
                                <div class="Delivery_hover_details">?<p class="killing"><?php echo "Available";?></p></div>
                            <?php }else{ ?>
                                  <i class="fa fa-times"></i>
                                  <p>
                                    <h5> CASH ON DELIVERY </h5>
                                    <?php echo " Not Available"; ?>
                                  </p>
                                  <?php } ?>
                               <span class="coupontooltip">
                                   <div class="cod_content">
                                       <h5>How do I place a Cash on Delivery (COD) order?</h5>
                                        <p>All items that have the "Cash on Delivery Available" icon are valid for order by Cash on Delivery.</p>
                                        <p>Add the item(s) to your cart and proceed to checkout.When prompted to choose a payment option, select "Cash on Delivery". </p>
                                        <p>Once you place the order you will receive confirmation call from our customer support for validation with in 48 hours. Once verified and confirmed, your order will be processed for shipment in the time specified, from the date of confirmation. You will be required to make a cash-only payment to our courier partner at the time of delivery of your order to complete the payment.</p>
                                        <p>Terms & Conditions</p>
                                        <p>The maximum order value for COD is ₹5000.</p>
                                        <p>e-Gift Vouchers or Store Credit cannot be used for COD orders.</p>
                                        <p>Cash-only payment at the time of delivery.</p>
                                    </div>
                                </span>

                            </div>