Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Apr 2014
    Location
    Los Angeles
    Posts
    41
    Plugin Contributions
    0

    Default Re: PHP Zen-Lost, any advice?

    Thank you so much! I will definitely send a donation.

  2. #12
    Join Date
    Apr 2014
    Location
    Los Angeles
    Posts
    41
    Plugin Contributions
    0

    Default Re: PHP Zen-Lost, any advice?

    I just had 1 more question about this. Code works great in the product_listing but when I add it to a Featured Items mod it causes all the info on the product pages not to display.

    Code:
        if (DISPLAY_FLEX_FEATURED_CENTERBOX_NAME == 'true') {
    		$products_name = '<span class="flexFCBname"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a>' . '</span>';
    		// bof: display media clip filenames
            $_GET['products_id'] = $featured_products->fields['products_id'];
            require(DIR_WS_MODULES . zen_get_module_directory('media_manager.php'));
            if ($zv_product_has_media) {
              while (list($za_media_key, $za_media) = each($za_media_manager)) {
                while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
    			$products_name .= '&nbsp;&nbsp;&nbsp;<span class="Play" href ="media/' . $za_clip['clip_filename'] . '">' . '<img src="images/play_button.png"/></span>';
                }
              }
            }
            unset($_GET['products_id'], $za_media_manager, $zv_product_has_media);
            // eof: display media clip filenames
    Example here:
    www.hiphopbeatz.com/2014

    I think it has to do with unset($_GET['products_id']. Any suggestions?

    Thanks!

  3. #13
    Join Date
    Apr 2014
    Location
    Los Angeles
    Posts
    41
    Plugin Contributions
    0

    Default Re: PHP Zen-Lost, any advice?

    This did the trick:

    unset($za_media_manager, $zv_product_has_media);
    $_GET['products_id'] = $_REQUEST['products_id'];

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Any good advice on adding PHP Cron Jobs?
    By SpaceMonkey in forum General Questions
    Replies: 19
    Last Post: 4 Dec 2015, 12:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR