normal One more question for OT T-shirt template

More
7 years 10 months ago #8708 by ivo de Bruin
nnbnbHello 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: Details page

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.

More
7 years 10 months ago #8709 by Kiên
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

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

More
7 years 10 months ago #8710 by ivo de Bruin
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?

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

More
7 years 10 months ago #8711 by ivo de Bruin
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:
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.

More
7 years 10 months ago #8712 by Kiên
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.

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

More
7 years 10 months ago #8713 by ivo de Bruin
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.281 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam