Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 2 of 2

Thread: removing dynamic mopics?

  1. #1
    adibranch
    Guest


    Default removing dynamic mopics?

    Hi all, i need to remove dynamic mopics completely...

    whats the best way to do it? I've tried editing the product_info.tpl.php but i dont think i've got it quite right.. this is how it looks at present..

    Its nearly right, but The image and the click to enlarge are gone from the product info page when viewing...

    Code:
        <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <?php
      if ($product_check['total'] < 1) {
       // BOF Separate Price per Customer
         if(!tep_session_is_registered('sppc_customer_group_id')) { 
         $customer_group_id = '0';
         } else {
          $customer_group_id = $sppc_customer_group_id;
         }
       // EOF Separate Price per Customer
    ?>
          <tr>
            <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
    <?php
      } else {
        $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
        $product_info = tep_db_fetch_array($product_info_query);
    
        tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
    
        if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
    // BOF Separate Price per Customer
    
            $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
            if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
            $product_info['products_price']= $scustomer_group_price['customers_group_price'];
    	}
    // EOF Separate Price per Customer
          $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
        } else {
    // BOF Separate Price per Customer
            $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
            if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
            $product_info['products_price']= $scustomer_group_price['customers_group_price'];
    	}
    // EOF Separate Price per Customer
          $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
        }
    
        if (tep_not_null($product_info['products_model'])) {
          $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
        } else {
          $products_name = $product_info['products_name'];
        }
    ?>
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="pageHeading" valign="top"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                <td class="pageHeading" align="right" valign="top"> </td>
              </tr>
              <tr>
                <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
                <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td class="main">
    <?php
        if (tep_not_null($product_info['products_image'])) {
    //++++ QT Pro: Begin Changed code
    ?>
              <table border="0" width="100%" cellspacing="0" cellpadding="2">
                <tr>
                  <td class="smallText">
    <?php
    //++++ QT Pro: End Changed Code
    ?>
              <table border="0" cellspacing="0" cellpadding="2" align="right">
                <tr>
                  <td align="center" class="smallText">
    <script language="javascript"><!--
    function popupWindow(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
    }
    //--></script>
    <noscript>
    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
    </noscript>
                  </td>
                </tr>
              </table>
    <?php
        }
    ?>
              <p><?php echo stripslashes($product_info['products_description']); ?></p>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                  </td>
                </tr>
              </table>
    <?php
    //++++ QT Pro: End Changed Code
        $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
        $products_attributes = tep_db_fetch_array($products_attributes_query);
        if ($products_attributes['total'] > 0) {
    //++++ QT Pro: Begin Changed code
          $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); 
          require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
          $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
          $pad = new $class($products_id);
          echo $pad->draw();
    //++++ QT Pro: End Changed Code
        }
    ?>
            </td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
    <?php
        $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
        $reviews = tep_db_fetch_array($reviews_query);
        if ($reviews['count'] > 0) {
    ?>
          <tr>
            <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
    <?php
        }
    
        if (tep_not_null($product_info['products_url'])) {
    ?>
          <tr>
            <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
    <?php
        }
    
        if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>
          </tr>
    <?php
        } else {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
          </tr>
    <?php
        }
    ?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
                    <!-- Wish List 2.3 Start -->
                    <td align="center" class="main"><?php echo tep_draw_hidden_field('wishlist_action', 'add_wishlist') . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST, 'onClick="document.cart_quantity.action=\''. tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=add_wishlist') . '\';document.cart_quantity.submit();"'); ?></td>
                    <!-- Wish List 2.3 End   -->
                    <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td>
    <?php
        if ((USE_CACHE == 'true') && empty($SID)) {
        echo tep_cache_also_purchased(3600);
         include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
       } else {
         include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
          include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
        }
       }
    ?>
            </td>
          </tr>
        </table></form>

  2. #2
    adibranch
    Guest


    Default RE: removing dynamic mopics?

    s'okay... now sorted.. as long as the qtypro still works i should be okay

Similar Threads

  1. Dynamic Mopics - Now you see me - Now you don't
    By cameroti in forum osCMax v2 Features Discussion
    Replies: 10
    Last Post: 12-15-2005, 12:59 PM
  2. Dynamic MoPics, How does it work?
    By mhackl in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 07-01-2005, 08:19 PM
  3. What should replace Dynamic MoPics?
    By michael_s in forum osCMax v1.7 General Mods Discussion
    Replies: 6
    Last Post: 01-17-2005, 10:07 PM
  4. how to use dynamic mopics? i want to put more than 1 pic
    By Anonymous in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 07-25-2004, 01:14 PM
  5. Trouble with Dynamic MoPics v2.2 ???
    By Stylobleu in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 01-31-2004, 01:51 PM

Bookmarks

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
  •