Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Product description not staying within product-info-box - any ideas? 
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Ok, the link is www.minervapromotions.com/gladrag

I am running 1.0.19870.1 and very very loosely using the modern theme - at this point it’s so customized you can’t tell that’s what it was originally customized from.

Right now, my product description won’t fit up next to the add to cart box where it needs to be.  I’ve checked and made sure the code for it is located in product-info-box, but it doesn’t seem to be working.

Am I missing something really obvious here?

Image Attachments
Firebug.jpgEnd.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
ikuzyk
Magento Team
 
Avatar
Total Posts:  60
Joined:  2007-08-09
Ternopil, Ukraine
 

hi sherrie

carefully review your code cause now your “description-box” div is out of “product-info-box” div

this is how it looks now:

<div class="product-info-box">
    <
form action="http://minervapromotions.com/gladrag/checkout/cart/add/uenc/aHR0cDovL21pbmVydmFwcm9tb3Rpb25zLmNvbS9nbGFkcmFnL2ktaGVhcnQtbGEuaHRtbA==/product/1/" method="post" id="product_addtocart_form">
    * * * * * * * * * *
    </
form>
</
div>
<
div style="" class="description-box">
    <
h4 style="" class="border-head">Description</h4>
    * * * * * * * * * *
</
div>

hope its help

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Thanks for your reply!

But ... it’s in there in my code and still not acting like it, this is what I have at template/catalog/product/view.phtml

<div class="product-info-box">
    <
form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">
      <
fieldset>
      <
input type="hidden" name="product" value="<?php echo $_product->getId() ?>"/>
      <
input type="hidden" name="related_product" id="related-products-field" value=""/>
      </
fieldset>
      
<?php echo $this->getChildHtml('alert_urls'?> <?php echo $this->getChildHtml('product_type_data'?> <br/>
    </
form>
    <
div class="description-box">
      <
h4 class="border-head"><?php echo $this->__('Description'?></h4>
      
<?php echo nl2br($_product->getDescription()) ?> 
    
</div>
    <
script type="text/javascript">
                var 
productAddToCartForm = new VarienForm('product_addtocart_form');
                
productAddToCartForm.submit = function() {
                    
if(this.validator.validate()) {
                        this
.form.submit();
                    
}
                }
.bind(productAddToCartForm);
            
</script>
  
</div>
 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Well, I got it up there - but I had to put it ahead of the add-to-cart-box element, which seemed weird to me.  That’s ok, it works now. smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top