Home Forums WoodMart support forum 360 product view speed

360 product view speed

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #204076

    opticienvp
    Participant

    Hi,

    I would like to change the speed of the 360 product view because it’s to fast.

    Thank you

    #204098

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please try to upload more images and check. The more images the more time to list.

    Best Regards

    #204191

    opticienvp
    Participant

    Hi,

    that’s what i did but still not working well.

    is there any function like the basel theme ?

    function basel_product_360_view() {
    		$images = basel_get_360_gallery_attachment_ids();
    		if( empty( $images ) ) return;
    
    		$id = rand(100,999);
    
    		$title = '';
    
    		$frames_count = count( $images );
    
    		$images_js_string = '';
    
    		?>
    			<div class="product-360-button">
    				<a href="#product-360-view"><span><?php _e('360 product view', 'basel'); ?></span></a>
    			</div>
    			<div id="product-360-view" class="product-360-view-wrapper mfp-hide">
    				<div class="basel-threed-view threed-id-<?php echo esc_attr( $id ); ?>">
    					<?php if ( ! empty( $title ) ): ?>
    						<h3 class="threed-title"><span><?php echo ($title); ?></span></h3>
    					<?php endif ?>
    					<ul class="threed-view-images">
    						<?php if ( count($images) > 0 ): ?>
    							<?php $i=0; foreach ($images as $img_id): $i++; ?>
    								<?php 
    									$img = wp_get_attachment_image_src( $img_id, 'full' );
    									$width = $img[1];
    									$height = $img[2];
    									$images_js_string .= "'" . $img[0] . "'"; 
    									if( $i < $frames_count ) {
    										$images_js_string .= ","; 
    									}
    								?>
    							<?php endforeach ?>
    						<?php endif ?>
    					</ul>
    				    <div class="spinner">
    				        <span>0%</span>
    				    </div>
    				</div>
    				<script type="text/javascript">
    					jQuery(document).ready(function( $ ) {
    					    $('.threed-id-<?php echo esc_attr( $id ); ?>').ThreeSixty({
    					        totalFrames: <?php echo $frames_count; ?>,
    					        endFrame: <?php echo $frames_count; ?>, 
    					        currentFrame: 1, 
    					        imgList: '.threed-view-images', 
    					        progress: '.spinner',
    					        imgArray: [<?php echo $images_js_string; ?>],
    					        height: <?php echo $height ?>,
    					        width: <?php echo $width ?>,
    					        responsive: true,
    					        playSpeed: 300,
    					        navigation: true
    					    });
    					});
    				</script>
    			</div>
    		<?php
    	}
    

    Otherwise, how can i slow the speed ?
    Thank you.

    #204234

    Hello,

    Unfortunately, there is no option in WoodMart. You need to add more images. One-click lists 5 images and it cannot be changed.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)