- Posts: 29
- Thank you received: 0
Product Display layout misalignment
-
Nick Rains
Inactive member -
- Member
-
Less
More
12 years 1 week ago #27829
by Nick Rains
Replied by Nick Rains on topic Product Display layout misalignment
I have found another mis-alignment issue with the product details page:
srv12.netregistry.net/~nini4758/index.ph...-104-detail?Itemid=0
For a digital download product the extra text has pushed the Add to Cart text down leaving behind the background and the amount selector which sits behind the download file name.
srv12.netregistry.net/~nini4758/index.ph...-104-detail?Itemid=0
For a digital download product the extra text has pushed the Add to Cart text down leaving behind the background and the amount selector which sits behind the download file name.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 week ago #27838
by ivan.milic
Replied by ivan.milic on topic Product Display layout misalignment
Open:
templates\hot_furniturestore\html\com_virtuemart\productdetails\default.php
Move this:
between this two lines:
<div class="width50 floatleft">
<div class="spacer-buy-area">
and this:
insert above this line:
templates\hot_furniturestore\html\com_virtuemart\productdetails\default.php
Move this:
Code:
<?php // Product Short Description
if (!empty($this->product->product_s_desc)) { ?>
<div class="product-short-description">
<?php /** @todo Test if content plugins modify the product description */
echo $this->product->product_s_desc; ?>
</div>
<?php } // Product Short Description END ?>
between this two lines:
<div class="width50 floatleft">
<div class="spacer-buy-area">
and this:
Code:
if (!empty($this->product->customsChilds)) { ?>
<div class="product-fields">
<?php foreach ($this->product->customsChilds as $field) { ?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field->field_type ?>">
<span class="product-fields-title" ><b><?php echo JText::_($field->field->custom_title) ?></b></span>
<span class="product-field-desc"><?php echo JText::_($field->field->custom_value) ?></span>
<span class="product-field-display"><?php echo $field->display ?></span>
</div><br/ >
<?php
} ?>
</div>
<?php } ?>
insert above this line:
Code:
<?php // Display the add to cart button END ?>
Please Log in to join the conversation.
-
Nick Rains
Inactive member -
- Member
-
Less
More
- Posts: 29
- Thank you received: 0
12 years 1 week ago - 12 years 1 week ago #27855
by Nick Rains
The first edit worked fine, thanks. Although there was no line <div class="spacer-buy-area">
The second section breaks the page with this error:
Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\nickdev\jupgrade\templates\hot_furniturestore\html\com_virtuemart\productdetails\default.php on line 154
I can see no problems with any < but I am not that down on PHP syntax. I have attached the edited file to see if it needs a tiny tweak. I am doing these edits on a local server which I why I posted the PHP file not a link.
Replied by Nick Rains on topic Product Display layout misalignment
The first edit worked fine, thanks. Although there was no line <div class="spacer-buy-area">
The second section breaks the page with this error:
Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\nickdev\jupgrade\templates\hot_furniturestore\html\com_virtuemart\productdetails\default.php on line 154
I can see no problems with any < but I am not that down on PHP syntax. I have attached the edited file to see if it needs a tiny tweak. I am doing these edits on a local server which I why I posted the PHP file not a link.
Last edit: 12 years 1 week ago by Nick Rains.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 week ago #27869
by ivan.milic
Replied by ivan.milic on topic Product Display layout misalignment
Yes ok missed <?php at start of second code:
so move <?php also
Code:
<?php
if (!empty($this->product->customsChilds)) { ?>
<div class="product-fields">
<?php foreach ($this->product->customsChilds as $field) { ?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field->field_type ?>">
<span class="product-fields-title" ><b><?php echo JText::_($field->field->custom_title) ?></b></span>
<span class="product-field-desc"><?php echo JText::_($field->field->custom_value) ?></span>
<span class="product-field-display"><?php echo $field->display ?></span>
</div><br/ >
<?php
} ?>
</div>
<?php } ?>
so move <?php also
Please Log in to join the conversation.
-
Nick Rains
Inactive member -
- Member
-
Less
More
- Posts: 29
- Thank you received: 0
12 years 1 week ago #27948
by Nick Rains
Replied by Nick Rains on topic Product Display layout misalignment
OK, done that. Added the extra <?php
The page now loads without an error message...
However, I'm sorry to report that now the "Add to Cart" button has completely vanished from some products
srv12.netregistry.net/~nini4758/index.ph...2013-detail?Itemid=0
and the digital download products still have the button background hidden behind text and misaligned from the "Add to Cart" text. The link still works, it's the button image that's not behind the link itself.
srv12.netregistry.net/~nini4758/index.ph...-104-detail?Itemid=0
Nick
The page now loads without an error message...
However, I'm sorry to report that now the "Add to Cart" button has completely vanished from some products
srv12.netregistry.net/~nini4758/index.ph...2013-detail?Itemid=0
and the digital download products still have the button background hidden behind text and misaligned from the "Add to Cart" text. The link still works, it's the button image that's not behind the link itself.
srv12.netregistry.net/~nini4758/index.ph...-104-detail?Itemid=0
Nick
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 week ago - 12 years 1 week ago #27955
by ivan.milic
Replied by ivan.milic on topic Product Display layout misalignment
<div class="addtocart-bar" ...
does not even exist on page, eater you removed it accidentally or it disappeared from some condition you set in vm admin config
does not even exist on page, eater you removed it accidentally or it disappeared from some condition you set in vm admin config
Last edit: 12 years 1 week ago by ivan.milic.
Please Log in to join the conversation.
Time to create page: 0.107 seconds