Forums / All Other Contributions/Addons / Product videos from youtube [Support Thread]

Product videos from youtube [Support Thread]

Views: 18,800

Results 41 to 60 of 60
23 Jan 2013, 10:58 AM
#41
aperfecthost avatar

aperfecthost

New Zenner

Join Date:
May 2005
Location:
Rockwood, Tennessee, United States
Posts:
97
Plugin Contributions:
0

Product videos from youtube [Support Thread]

Has anyone used this with the tabbed products info addon? I can't get the video to show. There isn't an error, it just doesn't show. However, when I inspect elements in google, it only shows:

<!--bof YouTube --> <!--eof YouTube -->

I made sure the template file is in the right directory.

19 Sep 2015, 5:51 PM
#42
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Product videos from youtube [Support Thread]

This mod has been updated for Zen Cart 1.5x and PHP 5.5+.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

10 Oct 2015, 10:43 PM
#43
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

RandyRand:

If anybody else is having the same issues I've had getting this mod to work, I found an alternate method to getting YouTube videos in your product page:

http://mydigitalfixation.com/how-to-add-youtube-video

It's essentially just pasting YouTube's iframe embed code directly into the product description text editor form (in HTML mode) on the product editing page in Admin.

Works fine, and you also have the added flexibility to select YouTube's extra embedding options such as using https to avoid error messages and the no-cookie viewer for increased customer privacy. :smile:

Thanks Randy,

This works great and no plugin required. Thanks again!

21 Dec 2015, 3:12 PM
#44
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Completely given up with this Plugin. Tried everything. Didn't work. I was hoping to get away from the iframe option but as it works I'll stick with it.

I think with this Plugin I'll wait until someone puts together an actual 'how to' that is idiot proof and easy to follow.

10 Jul 2017, 8:09 PM
#45
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Version 1.5 is now available https://www.zen-cart.com/downloads.php?do=file&id=1152

Corrections to various code have been made and upgrading/installing is now easier.

The learning is in the doing.

Potent Products

11 Jul 2017, 7:39 AM
#46
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

I am confused reading the first instruction. You say "remove" but do not show what to remove from 1. /MY_ADMIN_NAME/product.php

Can you please explain?


To Do Before Upgrading

3 files will first need some code removed.


  1. /ADMIN_NAME/product.php

remove the following, should be in the <head> section:

<?php //////////////////////////youtube code starts here///////////////////////// ?>

etc etc..

Downunder QLD

11 Jul 2017, 7:51 AM
#47
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

I am also confused also with two sets of instruction text. I have already product.php but your plugin do not have any under as you say you do ADMIN_NAME/product.php . this file 'ADMIN_NAME/product.php' is missing from your downloaded zip..

Can you please explain how to update /alter existing files little clearer?

I really want to use this and hope you can assist.

Downunder QLD

11 Jul 2017, 9:01 PM
#48
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Where it says: To Do Before Upgrading
only applies if a previous version of the module has been installed
if not then safe to ignore that section

Where it says: To Do Before New Install of v1.5
applies to installing the 1.5 version
'ADMIN_NAME/product.php' is not included as that is a core file you need to edit, adding the one line that is mentioned
add:

<?php require('includes/product_videos_from_youtube/patch_product.php'); ?>

before: </body> tag

The learning is in the doing.

Potent Products

13 Jul 2017, 1:01 AM
#49
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Thanks for that.

I have successfully installed to my v1.5.5e. On my products page I get nothing.

When I want to add youtube, URL is like https://www.youtube.com/watch?v=wnP8J6I8654&t=12s

So I take the ' v=wnP8J6I8654&t=12s' portion and [Add / Update]
===VIDEO INSERT DOES SHOW IN ADMIN PRODUCT INSERT PAGE AS BELOW ===========================
Product Video - Player Size 230 x 140 330 x 200 430 x 260 530 x 320

YouTube Video ID (example: X_mU1bUK0pU) : v=wnP8J6I8654&t=12s [Add / Update]
To delete the current Video, enter REMOVE (in capital letters) in the text box above and click Add/Update.

On my products page I get nothing.

I even changed the location as suggested
"before:
wherever you want the Video to show
if not sure then put before:

<!--bof Product date add:ed/available-->"

Can you please advice?

Product with video URL: http://www.qbrands.com.au/index.php?main_page=product_info&cPath=53&products_id=93&number_of_uploads=0

NOTE: I have noticed that it makes my footer dissapear. If I take the insereted video code it comes back again. So where I need to insert seems to be very sensetive.

=== here is the tpl_product_info_display.php ===========

<?php /** * Page Template * Mod > <https://www.zen-cart.com/showthread.php?85649-Product-Attribute-Grid&p=1188155&highlight=quantity+box#post1188155> * Loaded automatically by index.php?main_page=product_info.<br /> * Displays details of a typical product * * @package templateSystem * @copyright Copyright 2003-2014 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: $ */ //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php'); ?> <div class="centerColumn" id="productGeneral"> <!--bof Form start added by OAVS--> <?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?> <!--eof Form start end added by OAVS --> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY)); ?> <div class="wrapper bot-border"> <!--bof Prev/Next bottom position --> <?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?> <?php /** * display the product previous/next helper */ require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?> <?php } ?> </div> <div class="tie"> <div class="tie-indent"> <div class="page-content"> <!--bof Form start--> <?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?> <!--eof Form start-->
    <?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
      
    <!--bof Category Icon -->
      
    <?php /*
<?php if ($module_show_categories != 0) {?> <?php // display the category icons require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); } <!--eof Category Icon --> */ ?>
  <div class="row">
    <div class="main-image col-xs-12 col-sm-6">
      <div id="fb-root"></div>
      <!--bof Main Product Image -->
      <?php
		  if (zen_not_null($products_image)) {
		?>
      <?php
		/**
		 * display the main product image
		 */
      require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
      <?php
      }
  ?>
        
      <!--eof Main Product Image--> 
      <!--bof Additional Product Images -->
      <?php

		  require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
		 ?>
      <?php
	      if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
	      ?>
      <ul id="productAdditionalImages">
        <?php
      require($template->get_template_dir('tpl_columnar_display_li.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display_li.php'); ?>
      </ul>
      <?php
		     }
		     ?>
	<!--eof Additional Product Images -->
      <div class="video_desc">
        <div class="row">
        <!--bof  -->
            <?php echo (($flag_show_product_info_youtube == 1 && $products_youtube !='') ? 
            '<div id="productYouTube" class="col-xs-12 col-sm-12">
            <iframe src="http://www.youtube-nocookie.com/embed/' . $products_youtube . '?rel=0&showinfo=0&fs=0" allowfullscreen></iframe></div>' : '') . "\n"; ?>
        <!--eof YouTube -->
        <!--bof Product description -->
        <?php //if ($products_description != '') { ?>
        <!--<div id="productDescription" class="description biggerText col-sm-12 col-xs-12<?php //if ($flag_show_product_info_youtube == 1 && $products_youtube !=''){?> col-sm-12 <?php //} ?>"><?php //echo stripslashes($products_description); ?></div>-->
        <?php //} ?>
        <!--eof Product description --> 
        </div>
   </div>
	</div>
      <div class="pb-center-column col-xs-12 col-sm-6"> 
        <!--bof free ship icon  -->
        <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
        <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
        <?php } ?>
        <!--eof free ship icon  -->
        <h2 class="title_product"><?php echo $products_name; ?></h2>
        <h3 class="sub_title"><?php echo $products_model; ?> </h3>
        
        
        
        <!--bof Product description -->
        <?php if ($products_description != '') { ?>
        <div id="shortDescription" class="description"><?php echo substr(strip_tags($products_description), 0, 300) . '...' .''; ?></div>
        <?php } ?>
        <!--eof Product description -->
<?php //if (!TPP_GLOBAL_EXTRA_FIELDS_ON_TAB) { //Comented by OAVS - This will display file name and the file link if(true) { ?> <?php if (isset($products_file_1_link) || isset($products_file_2_link) || isset($products_file_3_link) || isset($products_file_4_link) || isset($video_file_link) || isset($extra_field) || isset($text_1) ||isset($text_2) || isset($text_3) || isset($text_4)) { echo '<div class="files"><div class="filesHead">'.TEXT_PRODUCT_MORE_INFO.'</div><ul>'; }?> <?php if($extra_field!='') { echo '<li>'.$extra_field . '</li>'; } ?> <?php if($text_1!='') { echo '<li>'. PRODUCT_TEXT_1 .' '.$text_1 . ''; } if(isset($products_file_1_link)) { echo ' '.$products_file_1_link . '</li>'; } ?> <?php if($text_2!='') { echo '<li>'. PRODUCT_TEXT_2 .' '.$text_2 . ''; } if(isset($products_file_2_link)) { echo ' '.$products_file_2_link . '</li>'; } ?> <?php if($text_3!='') { echo '<li>'. PRODUCT_TEXT_3 .' '.$text_3 . '</li>'; } ?> <?php if($text_4!='') { echo '<li>'. PRODUCT_TEXT_4 .' '.$text_4 . '</li>'; } ?> <?php if(isset($products_video_link)) { echo '<li>'.$products_video_link . '</li>'; } ?> <?php //if(isset($products_file_1_link)) { //echo '<li>'.$products_file_1_link . '</li>'; //} ?> <?php //if(isset($products_file_2_link)) { //echo '<li>'.$products_file_2_link . '</li>'; //} ?> <?php if(isset($products_file_3_link)) { echo '<li>'.$products_file_3_link. '</li>'; } ?> <?php if(isset($products_file_4_link)) { echo '<li>'.$products_file_4_link; } if(isset($products_file_1_link) || isset($products_file_2_link) || isset($products_file_3_link) || isset($products_file_4_link) || isset($video_file_link) || isset($extra_field)) { echo '</ul></div>'; } ?> <?php } ?> <!--eof Product description end by OAVS--> <br class="clearBoth" />
        <!--bof Product details list  -->
		<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
        <ul class="instock">
          <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . '<strong>'.TEXT_PRODUCT_WEIGHT.'</strong>' .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?> <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . '<strong>'.TEXT_PRODUCT_MANUFACTURER.'</strong>' . $manufacturers_name . '</li>' : '') . "\n"; ?>
        </ul>
        <?php
          }
        ?>
        <!--eof Product details list  --> 
        <div class="wrapper atrib"> <span class="quantity_label"><?php echo $products_quantity.TEXT_PRODUCT_QUANTITY; ?></span>
          <!--bof Reviews button and count-->
          <?php
            if ($flag_show_product_info_reviews == 1) {
              // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
              if ($reviews->fields['count'] > 0 ) { ?>
          <div id="productReviewLink" class="buttonRow left"><?php echo '<a class="btn-default-small" href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
          <br class="clearBoth">
          <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
          <?php } else { ?>
          <div id="productReviewLink" class="buttonRow left"><?php echo '<a class="btn-add-small" href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
          <br class="clearBoth">
          <?php
          }
          }
          ?>
          <!--eof Reviews button and count -->
        </div>
        <div class="wrapper atrib2"> 
          <!--bof Attributes Module -->
          <?php
              if ($pr_attr->fields['total'] > 0) {
            ?>
                          <?php
            /**
             * display the product atributes
             */
              require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
                          <?php
              }
            ?>
          <!--eof Attributes Module --> 
          
        <div class="add_to_cart_block"> 
          <!--bof Add to Cart Box -->
          <?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
  // do nothing
} else {
?>
          <?php
			$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');

/*bof OAVS Removes additional zencart quantyity field box */
//if ($zv_display_select_option > 0) {
//if ($grid_records > 0) {

///////// OAVS Removed for testing bof /////
//if ($grid_records > 0) {
// bof MOD: hide the quantity box if attributes exists // only works with Attribute Grid Module.
//$the_button = '' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . '<span class="buttonRow">'.zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT).'</span>'; // eof
//} elseif ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
// $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . '<span class="buttonRow">'.zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT).'</span>';
//}
/////////' Removed for testing eof /////

if ($products_qty_box_status == 0 or $products_quantity_order_max== 1 or $zv_display_select_option > 0) { // bof MOD: hide the quantity box if attributes exists // only works with Attribute Grid Module.
// hide the quantity box and default to 1
//$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . '<span class="fright">'.zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT).'</span>';
$the_button = '<div class="add_to_cart_row"><strong class="fleft text2"><input type="hidden" class="form-control" name="cart_quantity" value="1" maxlength="6" size="8" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']).'</strong>' . '<span class="buttonRow">'.zen_image_submit('', BUTTON_IN_CART_ALT).'</span></div>';
}/*eof Removes additional zencart quantyity field box */

else {
// show the quantity box
$the_button = '<div class="add_to_cart_row"><strong class="fleft text2"><input type="text" class="form-control" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="8" />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']).'</strong>' . '<span class="buttonRow">'.zen_image_submit('', BUTTON_IN_CART_ALT).'</span></div>';
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>

          <?php if ($display_qty != '' or $display_button != '') { ?>     

          <div id="prod-price">
            <?php
    	// base price
    	  if ($show_onetime_charges_description == 'true') {
    		$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span>';
    	  } else {
    		$one_time = '';
    	  }
    	  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? '<span class="price-text">'.TEXT_BASE_PRICE.'</span>' : '') . zen_get_products_display_price((int)$_GET['products_id']);
	      ?>
          </div>
          <div class="clearfix"></div>
          
          <?php } // display qty and button ?>
          <?php } // CUSTOMERS_APPROVAL == 3 ?>
          <!--eof Add to Cart Box--> 
        </div>
        </div>
        <div id="button_product">
            <?php 
		  echo $display_button;
	      echo $display_qty;
		  ?>
          </div>
          <!-- bof Social Media Icons -->
          <?php if(TM_SOCIAL_BLOCK_STATUS == 'true') { ?> 
            <ul id="social">
              <?php if(TM_SOCIAL_BLOCK_STATUS_FB == 'true') { ?> 
              <li class="facebook"><fb:like send="false" layout="button_count" width="150" show_faces="false"></fb:like></li>
              <?php } ?>
              <?php if(TM_SOCIAL_BLOCK_STATUS_PN == 'true') { ?> 
              <li class="pinterest"><a href="http://pinterest.com/pin/create/button/?url='.  urlencode(zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $_GET['cPath'] . '&products_id=' . $_GET['products_id']) ).'&media=' .  urlencode(HTTP_SERVER . DIR_WS_CATALOG . $products_img) . '&description=' .  rawurlencode($products_name) . '" class="pin-it-button"><img src="//assets.pinterest.com/images/PinExt.png" title="Pin It" alt=""></a></li>
              <?php } ?>
              <?php if(TM_SOCIAL_BLOCK_STATUS_TW == 'true') { ?> 
              <li class="twitter"><a href="https://twitter.com/share" class="twitter-share-button fleft">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
              <?php } ?>
              <?php if(TM_SOCIAL_BLOCK_STATUS_GO == 'true') { ?> 
              <li class="google"><div class="g-plusone" data-size="medium"></div></li>
              <?php } ?>
            </ul>
          <?php } ?>
          <!-- eof Social Media Icons -->
      </div>
    </div>
    <!--bof Quantity Discounts table -->
    <?php

if ($products_discount_type != 0) { ?>
<?php
/**

  • display the products quantity discount
    */
    require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
    <?php } ?>
    <!--eof Quantity Discounts table -->

     <!--bof also related products module-->
    
     <?php require($template->get_template_dir('tpl_modules_related_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_related_products.php');?>
    
     <!--eof also related products module--> 
     <br />
     <div class="text2">
       <p class="reviewCount"><strong><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></strong></p>
    
<?php //////////////////////////OAVS youtube code begins here/////////////// ?> <?php // boc product video if ($sniffer->table_exists(TABLE_PRODUCTS_VIDEOS) && (defined('PRODUCT_VIDEOS_STATUS') && PRODUCT_VIDEOS_STATUS == 'true')) { require($template->get_template_dir('/tpl_modules_youtube.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_youtube.php'); } // eoc product video ?> <?php //////////////////////////OAVS youtube code ends here/////////////// ?> <!--bof Product date added/available-->
      <?php

if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php } } else { if ($flag_show_product_info_date_added == 1) { ?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php } // $flag_show_product_info_date_added } ?>
<!--eof Product date added/available -->

      <!--bof Product URL -->
      <?php

if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php } // $flag_show_product_info_url } ?>
<!--eof Product URL -->

    </div>
    

    
    
    
    <!--bof also purchased products module-->
    <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
    <!--eof also purchased products module--> 
    
    <!--bof Form close-->
    </form>
    <!--bof Form close--> 
    
  </div>
</div>
</div> </div>

Downunder QLD

13 Jul 2017, 1:13 AM
#50
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Your YouTube video ID is wnP8J6I8654 - so that is all you need to insert.

To find out your video ID go to your video on youtube.com
Underneath the red 'Subscribe' button you will see a link/image named 'Share'
Click the link to see ID, it shown after https://youtu.be/

The learning is in the doing.

Potent Products

13 Jul 2017, 1:57 AM
#51
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Hi

Yes I tried wnP8J6I8654 as well but some reason after entering the code below in the tpl_product_info_display.php,

===VIDEO INSERT DOES SHOW IN ADMIN PRODUCT INSERT PAGE AS BELOW ===========================
Product Video - Player Size 230 x 140 330 x 200 430 x 260 530 x 320

YouTube Video ID (example: X_mU1bUK0pU) : v=wnP8J6I8654&t=12s [Add / Update]
To delete the current Video, enter REMOVE (in capital letters) in the text box above and click Add/Update.

PROBLEM OCCURS:

  1. Page footer dissapears (as your code entered just before <!--bof Product date added/available--> and also before my page footer code.
  2. YouTubeVideo does not show in the http://www.qbrands.com.au/index.php?main_page=product_info&cPath=53&products_id=93&number_of_uploads=0 .

If you kindly look/serach at the code below I supplied you will see your code right below the

<?php //////////////////////////OAVS youtube code begins here/////////////// ?>

...your you tube code

Downunder QLD

13 Jul 2017, 3:59 AM
#52
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

oavs:

YouTube Video ID (example: X_mU1bUK0pU) : v=wnP8J6I8654&t=12s [Add / Update]

Should be:

YouTube Video ID (example: X_mU1bUK0pU) : wnP8J6I8654 [Add / Update]

Also, all video ID's are entered into the Admin section--there is nothing else you to do, add or change anywhere else.

The learning is in the doing.

Potent Products

13 Jul 2017, 4:12 AM
#53
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Yes thank you for reminding me again and I did use the code as you advised as 'wnP8J6I8654'

Problem is it is not showing in the tpl_product_info_display.php page due the reasons explained my previous post.

Here is the problem again.

PROBLEM OCCURS:

  1. Page footer dissapears (as your code entered just before <!--bof Product date added/available--> and also before my page footer code.
  2. YouTubeVideo does not show on the page >>> http://www.qbrands.com.au/index.php?...r_of_uploads=0 .

after entering your code ...your you tube code

<?php //////////////////////////youtube code begins here/////////////// ?> <?php // boc product video if ($sniffer->table_exists(TABLE_PRODUCTS_VIDEOS) && (defined('PRODUCT_VIDEOS_STATUS') && PRODUCT_VIDEOS_STATUS == 'true')) { require($template->get_template_dir('/tpl_modules_youtube.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_youtube.php'); } // eoc product video ?> <?php //////////////////////////youtube code ends here/////////////// ?> <!--bof Product date added/available-->

If you kindly look/search at the complete code in the file tpl_product_info_display.php below I supplied in my previous post below you can see its exact positioning.

Downunder QLD

13 Jul 2017, 4:28 AM
#54
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Did you enable the module as mentioned in the readme.txt? (it is disabled by default)

Are you seeing any error log files in the 'logs' dir. related to this problem?

The learning is in the doing.

Potent Products

13 Jul 2017, 4:34 AM
#55
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

It also looks like there is incorrect coding on your 'tpl_product_info_display.php'

If you remove all the module code, does the footer show?

remove

<?php //////////////////////////OAVS youtube code begins here/////////////// ?>        
 <?php  // boc product video
   if ($sniffer->table_exists(TABLE_PRODUCTS_VIDEOS) &&  (defined('PRODUCT_VIDEOS_STATUS') && PRODUCT_VIDEOS_STATUS ==  'true')) {
      require($template->get_template_dir('/tpl_modules_youtube.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_modules_youtube.php');
   }
        // eoc product video
 ?>     
<?php //////////////////////////OAVS youtube code ends here/////////////// ?>

Also, did you previously have this module installed?

The learning is in the doing.

Potent Products

13 Jul 2017, 5:23 AM
#56
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Did you enable the module as mentioned in the readme.txt? (it is disabled by default) : YES I have enabled it.

Are you seeing any error log files in the 'logs' dir. related to this problem? : No and there is no log file.

On the page code view I can see the video code.

When page loads first time IO can see in a flash at the bottom of the product image ...swf icon ..that' all

<!-- ////////////////////////// youtube code begins here/////////////// -->
<br>
<div class="centeredContent">
    
  <object data="movie.swf" type="application/x-shockwave-flash" width="330" height="200">
    <param name="movie" value="https://www.youtube-nocookie.com/embed/wnP8J6I8654">
    <embed src="https://www.youtube-nocookie.com/embed/wnP8J6I8654" width="330" height="200">
  </object>
      
</div>
<br>

<!--   ////////////////////////// youtube code ends here///////////////  -->

<!--bof Product date added/available-->

Downunder QLD

13 Jul 2017, 5:40 AM
#57
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

You have a lot of coding errors on your Product Info pages which need to be corrected.

For example, before the module code there are 3 unclosed DIV tags.

Unclosed element div.

From line 642, column 7; to line 642, column 32

<div class="page-content">

Unclosed element div.

From line 641, column 5; to line 641, column 28

<div class="tie-indent">

Unclosed element div.

From line 640, column 3; to line 640, column 19

<div class="tie">

Your current problems with the module not displaying are not related to the module code but to the other coding errors. The module code itself works fine but when there are a lot of coding errors, they need to be corrected first.

The learning is in the doing.

Potent Products

18 Jul 2017, 10:31 PM
#58
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

I have removed the plugin sorry. Too many file changes just add a video.
Find a simpler solution.
http://www.qbrands.com.au/index.php?main_page=product_info&cPath=63&products_id=311

Thank you for guiding through. Much appreciated.

Downunder QLD

31 May 2018, 12:54 AM
#59
edvon avatar

edvon

New Zenner

Join Date:
Aug 2009
Posts:
26
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

Using version 1.5.4, all installed, and video turned on in admin, when I enter the code in the video id in the product description it doesn't stay there after Add/Update, refreshes and won't show any video on product page. looked at logs, no related errors (I only get a php warning: PHP Warning: htmlspecialchars(): charset `iso-8559-1' not supported, assuming utf-8 in, but that wouldn't have to do with it?)

3 Nov 2025, 12:08 AM
#60
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: Product videos from youtube [Support Thread]

zen 2.10
what do i need to add to product copy confirm to copy over videos to copied products?