cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with magento 2.2.0 back end

Problem with magento 2.2.0 back end

Hi 

1)Try to set up mega menu to my site jewelrynest com, but somehow it does not show in the front end  

2) try to upload a video from the option but I can not upload from my server, I know there a way to do it but when I upload it from youtube it shows me other videos 

how can I fix it,

please help

Thanks

AwesomeScreenshot-14k-Halo-Diamond-Initial-Personalized-Disc-Necklace-0-016-ct-tw-Products-Inventory-Catalog-Magento-Admin-2019-07-18-18-07-06.png

JewelryNest
1 REPLY 1

Re: Problem with magento 2.2.0 back end

@JewelryNest 

1. Mega menu - if mega menu functionality works fine then after flushing magento cache menus should be shown on front. If it does not work please share more details on it.

 

2. Default Magento2 allows only youtube and vimeo video to be uploaded for products. If you want to host videos on your server. Please check below steps.

(a) Create attribute for adding video name.

(b) Then get this video name to where want to display video.

 

<?php
    $_helper = $this->helper('Magento\Catalog\Helper\Output');
    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $_product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');//get current product
?>

<?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
    <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
    <div class="prod_video_bg">
        <video width="400" controls>
          <source src="<?php echo $videoUrl; ?>" type="video/mp4">
        </video>
    </div>
<?php endif; ?>  

 

 

If my answer is helpful, please Accept as Solution & give Kudos