OXID Community Forum

> International Forums > Templates and Design > Cleanest way to deactivate zoom?
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Cleanest way to deactivate zoom?


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 03-07-2012, 02:49 PM
breezemaster breezemaster is offline
Member
Join Date: Feb 2011
Location: Karlsruhe
Posts: 50
breezemaster is on a distinguished road
Default Cleanest way to deactivate zoom?

Title says it all. The article image zoom code is quite ingrained in the template. Whats the best technique to remove this feature?
Reply With Quote
#Top   #2  
Old 03-07-2012, 02:51 PM
breezemaster breezemaster is offline
Member
Join Date: Feb 2011
Location: Karlsruhe
Posts: 50
breezemaster is on a distinguished road
Default Re: Cleanest way to deactivate zoom?

Simply remove that if/else statement so we're just left with <div class="picture">?

Quote:
[{block name="details_productmain_zoom"}]
[{if $oView->showZoomPics()}]
[{oxscript include="js/widgets/oxmodalpopup.js" priority=10 }]
[{oxscript add="$('#zoomTrigger').oxModalPopup({target:'#zoom Modal'});"}]
<a id="zoomTrigger" rel="nofollow" href="#">Zoom</a>
[{oxscript include="js/libs/cloudzoom.js" priority=10}]
[{oxscript add="$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();"}]
<div class="picture">
<a href="[{$oPictureProduct->getMasterZoomPictureUrl(1)}]" class="cloud-zoom" id="zoom1" rel="adjustY:-2, zoomWidth:'354', fixZoomWindow:'390', trImg:'[{$oViewConf->getImageUrl('dot.png')}]', loadingText:'[{oxmultilang ident="PAGE_DETAILS_ZOOM_LOADING"}]'">
<img itemprop="image" src="[{$oView->getActPicture()}]" alt="[{$oPictureProduct->oxarticles__oxtitle->value|strip_tags}] [{$oPictureProduct->oxarticles__oxvarselect->value|strip_tags}]">
</a>
</div>
[{else}]
<div class="picture">
<img itemprop="image" src="[{$oView->getActPicture()}]" alt="[{$oPictureProduct->oxarticles__oxtitle->value|strip_tags}] [{$oPictureProduct->oxarticles__oxvarselect->value|strip_tags}]">
</div>
[{/if}]
[{/block}]
Reply With Quote
#Top   #3  
Old 03-30-2012, 03:59 PM
morfer morfer is offline
Junior Member
Join Date: Aug 2011
Posts: 15
morfer is on a distinguished road
Default AW: Cleanest way to deactivate zoom?

I also want to remove the zoom function. But its hard to remove! It seems that the variants selector is connected to some functions from cloudzoom.

Simply removing the mentioned part does not work! The variants are not selectable anymore.

Simply removing the JS lines don't work either:
Code:
[{oxscript include="js/libs/cloudzoom.js" priority=10}]
[{oxscript add="$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();"}]
So how to remove this function?

EDIT////
One quick&dirty solution:
Simply add to oxid.css:
Code:
div.mousetrap {display:none;}
This hack works for me...

Last edited by morfer; 03-30-2012 at 04:20 PM.
Reply With Quote
Reply

Bookmarks

Tags
cleanest, deactivate, zoom

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoom Picture Plus aggrosoft Module 26 03-18-2012 04:20 PM
Cloud Zoom schmaiki Module 33 01-29-2012 12:00 PM
Sortierung der Zoom Bilder rallemann Templates und Design 2 08-19-2011 09:08 AM
AJAX-ZOOM - Bild Zoom Plugin ohne Flash vadus Module 7 08-09-2011 11:05 PM
ZOOM bei Varianten valero Allgemeines 2 11-10-2009 09:33 AM

All times are GMT +1. The time now is 12:39 PM.