- Posts: 20
- Thank you received: 0
One more question for OT T-shirt template
- ivo de Bruin
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
8 years 11 months ago #8708
by ivo de Bruin
One more question for OT T-shirt template was created by ivo de Bruin
Hello Omegatheme,
I have a small but annoying problem. I cant locate the code to remove the following on my website (i added screenshots to show what parts i mean)
Below the product details there is text showing called Related products and products rating. I would like this to be gone, but i cant find anywhere to do that. Here is the link to see what i mean: Link: [url=http://https://www.funtshirts.nl/shop/fitness/lady-fit-performance-vest-detail/]Details page[/url]
Also i reinstalled the ot tshirt template a while ago and im not using google maps but it keeps loading google maps ( <script src=" maps.googleapis.com/maps/api/js?language=nl-NL "> ) also added a screenshot of that.
Can anyone help me removing it or at least tell me where the file(s) are for me to edit??
I have a small but annoying problem. I cant locate the code to remove the following on my website (i added screenshots to show what parts i mean)
Below the product details there is text showing called Related products and products rating. I would like this to be gone, but i cant find anywhere to do that. Here is the link to see what i mean: Link: [url=http://https://www.funtshirts.nl/shop/fitness/lady-fit-performance-vest-detail/]Details page[/url]
Also i reinstalled the ot tshirt template a while ago and im not using google maps but it keeps loading google maps ( <script src=" maps.googleapis.com/maps/api/js?language=nl-NL "> ) also added a screenshot of that.
Can anyone help me removing it or at least tell me where the file(s) are for me to edit??
Attachments:
Please Log in or Create an account to join the conversation.
8 years 11 months ago #8709
by Kiên
Replied by Kiên on topic One more question for OT T-shirt template
If you want disapear "Related " and "Reviews", please remove on code with file path:
root / templates/ ot_tshirt / html / com_virtuemart / productdetails / default.php line 255 and 256
The google map: I think it here: root / plugins / system / omgshortcodes / inc / shortcodes-handlers.php line 79
root / templates/ ot_tshirt / html / com_virtuemart / productdetails / default.php line 255 and 256
The google map: I think it here: root / plugins / system / omgshortcodes / inc / shortcodes-handlers.php line 79
Please Log in or Create an account to join the conversation.
- ivo de Bruin
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
- Posts: 20
- Thank you received: 0
8 years 11 months ago #8710
by ivo de Bruin
Replied by ivo de Bruin on topic One more question for OT T-shirt template
Thank you very much!
The related products etc are gone.
The google maps thing, do you mean that peace of code? --V
.((trim($disabled) == 'true') ? ' disabled' : ''
What do i do with it, do i have to remove it?
This little line causes the google maps code to apear?
The related products etc are gone.
The google maps thing, do you mean that peace of code? --V
.((trim($disabled) == 'true') ? ' disabled' : ''
What do i do with it, do i have to remove it?
This little line causes the google maps code to apear?
Please Log in or Create an account to join the conversation.
- ivo de Bruin
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
- Posts: 20
- Thank you received: 0
8 years 11 months ago #8711
by ivo de Bruin
Replied by ivo de Bruin on topic One more question for OT T-shirt template
Starting from line #556 there is google maps code. Is line 79 correct or should i do something in the code that starts from line 556??
The code starting from line 556 is this:
The code starting from line 556 is this:
Code:
/* Google maps */
public static function googlemap($atts, $content = null){
extract(Shortcodes_Parser::instance()->atts(array(
'title' => '',
'iframe_src' => '',
'addr' => '',
'lat' => '',
'lng' => '',
'ratio' => '',
'width' => '',
'height' => ''
), $atts));
$googlemap = '';
$map_id = self::randomString(10);
if( $iframe_src==''){
$address = str_replace(' ', '+', $addr);
$jsonResponse = @file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?address='.$address);
if ($jsonResponse) {
$jsonResponse = json_decode($jsonResponse);
$lat = $lat==''?$jsonResponse->results[0]->geometry->location->lat:$lat;
$lng = $lng==''?$jsonResponse->results[0]->geometry->location->lng:$lng;
}
}
$ratio = explode(':', $ratio);
$style = ' style="'.($width!=''?'width:'.$width.';':'').($height!=''?'height:'.$height.';':($ratio!=''?'padding-bottom:'.(($ratio[1]/$ratio[0])*100).'%;':'')).'"';
// $googlemap .= '<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language='.JFactory::getLanguage()->getTag().'"></script>';
$googlemap .= '<div class="embed-responsive"'.$style.'>';
if ($iframe_src!=''){
$googlemap .= '<iframe class="embed-responsive-item" src="'.$iframe_src.'" frameborder="0" style="border:0"></iframe>';
} else {
$googlemap .= '<div id="gmap_canvas'.$map_id.'" class="embed-responsive-item"></div>'
. '<style>#gmap_canvas'.$map_id.' img{max-width:none!important;background:none!important}</style>';
}
$googlemap .= '</div>';
if( $iframe_src==''){
$googlemap .= '<script type="text/javascript">'
. 'function init_map(){'
. 'var myOptions = {'
. 'zoom:16,'
. 'center:new google.maps.LatLng(' . $lat . ',' . $lng . '),'
. 'mapTypeId: google.maps.MapTypeId.ROADMAP'
. '};'
. 'map = new google.maps.Map(document.getElementById("gmap_canvas'.$map_id.'"), myOptions);'
. 'marker = new google.maps.Marker({'
. 'map: map,'
. 'position: new google.maps.LatLng(' . $lat . ',' . $lng . ')'
. '});'
. 'infowindow = new google.maps.InfoWindow({'
. 'content:"'. ($title!=''?'<b>'.$title.'</b><br/>':'').$addr.'"'
. '});'
. 'google.maps.event.addListener(marker, "click", function(){'
. 'infowindow.open(map,marker);'
. '});'
. 'infowindow.open(map,marker);'
. '}'
. 'google.maps.event.addDomListener(window, \'load\', init_map);'
. '</script>';
}
return $googlemap;
}
Please Log in or Create an account to join the conversation.
8 years 11 months ago #8712
by Kiên
Replied by Kiên on topic One more question for OT T-shirt template
Sorry I don't understand what you mean.
The google map attached in our shortcode plugin, so if you do not use you can remove it.
The google map attached in our shortcode plugin, so if you do not use you can remove it.
Please Log in or Create an account to join the conversation.
- ivo de Bruin
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
- Posts: 20
- Thank you received: 0
8 years 11 months ago #8713
by ivo de Bruin
Replied by ivo de Bruin on topic One more question for OT T-shirt template
But what do i remove? This code i posted above? Or something else?
Please Log in or Create an account to join the conversation.
Time to create page: 0.200 seconds