Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: Product Page Issues.....Solved

Product Page Issues.....Solved 9 years 5 months ago #11016

Having 3 problems on Product page.

1 Layout. Cart Custom fields options and all the Tabs are out of place

2 imags when additional images are clicked they open in the browser instead of in the product window

3 custom fields title not displaying
Last Edit: 9 years 5 months ago by Head Gone.
The topic has been locked.

Product Page Issues 9 years 5 months ago #11030

Hi,

1st problem
The screenshot looks really messy. Apparently there is an opened <DIV> tag. (without the close </div> tag) which cause all those layout problems.

Do you happen to have any HTML tag in the "short description" field? Check the short description and make sure you didn't forget to close any div tag (or <span> tag). Ideally you shouldn't have any HTML tags in the short description field. short description should be plain text, because that field is being used to generate the META DESCRIPTION tag (for search engines)

-- OR it might also be caused because of the custom field you use. Are you using a 3rd party custom field plugin? (3rd party custom field means; it doesn't come with Virtuemart by default)

2nd problem:
Looks like it is because of jQuery conflict issue. I need to see your website. Provide me URL where i can browse and see the console logs.

3rd problem
See this topic and apply the same patch:
www.flexiblewebdesign.com/forum-joomla-virtuemart-template-sportmart-support/2452-plugin-title-not-showing#10993

regards,
Support
Last Edit: 9 years 5 months ago by Support.
The topic has been locked.

Product Page Issues 9 years 5 months ago #11042

1. .YES its really messy..
No open tags etc. yes its 3rd party cutom field plugin that allows + and - to options but it was working normal before changing template.
so I guess no fix..

2.. link...
headgone.net/shop/custom-headlights/customize-your-headlight

3..im using cleanmart where exactly is that css file?
Last Edit: 9 years 5 months ago by Head Gone.
The topic has been locked.

Product Page Issues 9 years 5 months ago #11043

as far as Custom Fields. I compared to Virtuemart pdf product layout and i think your template missing some css or wording to display title and handle multiple options. Im not good at php but you can take a look at this....

(Virtuemart php layout...)

<?php // Product custom_fields
if (!empty($this->product->customfieldsCart)) { ?>
<div class="product-fields">
<?php foreach ($this->product->customfieldsCart as $field)
{ ?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-fields-title" ><strong><?php echo $field->custom_title ?></strong></span>
<?php echo JHTML::tooltip($field->custom_tip, $field->custom_title, 'tooltip.png'); ?>
<span class="product-field-display"><?php echo $field->display ?></span>

<span class="product-field-desc"><?php echo $field->custom_field_desc ?></span>
</div><br/ >
<?php
}
?>


Now Your template



if ($params->get('productdetails_ajax',1) and !empty($this->product->customfieldsCart)) {
foreach ($this->product->customfieldsCart as $field) {
if ($field->field_type == "A") {
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('
jQuery(document).ready(function(){
jQuery.fn.FlexibleChildAjax();
});
');
}
}
The topic has been locked.

Product Page Issues 9 years 5 months ago #11058

hi,

The problem is happening because you are using 3rd party custom field plugin.

Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default_addtocart.php

find this line:
$string = "".preg_replace($patterns, $replacements, $field->display)."";
and replace it with this:
$string = "".$field->display."";
// $string = "".preg_replace($patterns, $replacements, $field->display)."";
echo $string;

everything will be good to go then.

- To display the "Custom field title", open this CSS file:
headgone.net/shop/templates/motorsports/html/com_virtuemart/assets/css/flexibleVM2Global.css

scroll to the bottom and include this rule:
div.product-field.product-field-type-E span.product-fields-title, #FlexibleDetailsRight div.product-field.product-field-type-E span.product-fields-title { display:block;}


Regards.
Support
Last Edit: 9 years 5 months ago by Support.
The topic has been locked.

Product Page Issues 9 years 5 months ago #11068

I added that first line and it double up the custom fields. so i did this below without editing the css file and its closer to normal...

$string = "".$field->display."";
}

?>
<span class="product-fields-title" ><strong><?php echo $field->custom_title ?></strong></span> 
<?php if ($field->custom_tip) {
echo JHTML::tooltip ($field->custom_tip, JText::_ ($field->custom_title), 'tooltip.png');} ?></span>
<div class="product-field product-field-type-<?php echo $field->field_type ?>">

Thanks. only issue remain is #2 additional images still opens in Parent Window and not in product display window
The topic has been locked.

Product Page Issues 9 years 5 months ago #11090

Hi,


Attachment Pasted_Image_10_19_14__4_16_PM.png not found



If you don't know how to remove the 2nd jQuery from there, then look at this topic:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/523-the-easiest-way-to-solve-jquery-conflict-issues

regards.
The topic has been locked.

Product Page Issues.....Solved 9 years 5 months ago #11114

Thx..
The topic has been locked.

Product Page Issues.....Solved 9 years 5 months ago #11134

sure your welcome.

case solved. topic is locked.

regards.
The topic has been locked.
Time to create page: 0.135 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo