Virtuemart Image Template Override

More
14 Jun 2013 12:06 #1130 by thatch10
Hi, the template override for vm images distributed with J4Schema appears to be different for the one in use here
J4schema Demo Site

In the provided template override the tag is inserted as below
// Product Main Image
if (!empty($this->product->images[0])) {
    ?>
    <div class="main-image" {VM_MAIN_IMAGE}>
	<?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"', false, "class='modal'", true); ?>
    </div>
<?php } // Product Main Image END ?>

In the demo page the tag appears after the medium-image class as below
<div class="main-image">
	<img src="/images/stories/virtuemart/product/cca3cd5db813ee6badf6a3.jpg" alt="cca3cd5db813ee6badf6a3.jpg" class="medium-image" id="medium-image"  itemprop="image" /><span class="vm-img-desc">cca3cd5db813ee6badf6a3.jpg</span>    </div>

At the moment when attempting to check out my structured data I am getting the message

Warning: Incomplete microdata with schema.org.

and for the image, no url

please see below.

This image is hidden for guests.
Please log in or register to see it.



Can you please advise where to best place the image tag to get the url in position.

Thatch

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 12:18 #1131 by admin
mhm... are you using the standard template or a custom one?
did you copied template overrides manually or using J4Schema feature?
are you using Joomla 1.5 or 2.5?

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 13:15 - 14 Jun 2013 13:17 #1134 by thatch10
Apologies

Joomla! 2.5.11
Php 5.4.14

Its a custom template made by Joomlart, called JA Hawkstore www.joomlart.com/demo/#ja_hawkstore

overrides have been copied by comparing the two files (template override and J4schema) in windiff and inserting the override manually.

None of the tokens have been amended, just inserting the token name into .php override files I what I think to be the appropriate place. Obviously in curly brackets, eg { VM_MAIN_IMAGE } and without the spaces.
Last edit: 14 Jun 2013 13:17 by thatch10. Reason: Added the appropriate token with spaces as example

Please Log in or Create an account to join the conversation.

More
16 Jun 2013 13:02 #1140 by admin
Thank you for reporting it!
I forgot to copy a tag!

please change the text with the following one:
// Product Main Image
if (!empty($this->product->images[0])) {
    ?>
    <div class="main-image">
	<?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image" {VM_MAIN_IMAGE}', false, "class='modal'", true); ?>
    </div>
<?php } // Product Main Image END ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.262 seconds