Page 1 of 3 123 LastLast
Results 1 to 10 of 98

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: creinold Pinterest Button Addon

    can you paste your tpl_product_info_display.php so I can see what's going on?
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  2. #2

    Default Re: creinold Pinterest Button Addon

    Quote Originally Posted by creinold View Post
    can you paste your tpl_product_info_display.php so I can see what's going on?
    Sure! It's
    PHP Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=product_info.<br />
     * Displays details of a typical product
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 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: tpl_product_info_display.php 16242 2010-05-08 16:05:40Z ajeh $
     */
     //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
    ?>
    <div class="centerColumn" id="productGeneral">

    <!--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'$request_type), '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 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'); ?>
    <?php 
    ?>
    <!--eof Category Icon -->

    <!--bof Prev/Next top position -->
    <?php if (PRODUCT_INFO_PREVIOUS_NEXT == 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 
    ?>
    <!--eof Prev/Next top position-->

    <!--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 Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name?></h1>
    <!--eof Product Name-->
    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <?php
    // base price
      
    if ($show_onetime_charges_description == 'true') {
        
    $one_time '<span >' TEXT_ONETIME_CHARGE_SYMBOL TEXT_ONETIME_CHARGE_DESCRIPTION '</span><br />';
      } else {
        
    $one_time '';
      }
      echo 
    $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE '') . zen_get_products_display_price((int)$_GET['products_id']);
    ?></h2>
    <!--eof Product Price block -->

     <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php ?>
    <!--eof Product description -->
    <br class="clearBoth" />
    <!--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_AVAILABLEzen_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_ADDEDzen_date_long($products_date_added)); ?></p>
    <?php
        
    // $flag_show_product_info_date_added
      
    }
    ?>
    <!--eof Product date added/available -->
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else {
    ?>
                <?php
        $display_qty 
    = (($flag_show_product_info_in_cart_qty == and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' PRODUCTS_ORDER_QTY_TEXT_IN_CART $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' '');
                if (
    $products_qty_box_status == 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']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } else {
                  
    // show the quantity box
        
    $the_button PRODUCTS_ORDER_QTY_TEXT '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                }
        
    $display_button zen_get_buy_now_button($_GET['products_id'], $the_button);
      
    ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          
    echo $display_qty;
          echo 
    $display_button;
                
    ?>
    <!-- AddThis Button END -->

    <!--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  -->
    <!-- BEGIN MyGiftList Code --> 
    <div id="registry">
    <input type="image" onclick='javascript:zenMGLpopup(this.form,"FROMPROP2405","From Proper to Rocker","zen-cart");return false;' src="http://www.frompropertorocker.com/images/add.gif" width=118 height=35 border=0 alt="Click to Add to your Registry"> 

    <textarea rows=1 cols=10 name=giftName style="display:none"><?php echo $products_name?></textarea>
    <input type=hidden name=giftPrice value="<?php echo $specials_price $specials_price $products_price?>">

    <textarea rows=1 cols=10 name=giftDescription style="display:none"><?php echo $products_model " " Stripslashes(substr($products_description,0,50)); ?></textarea>
    <input type=hidden name=giftImage value='<?php echo DIR_WS_IMAGES $products_image?>'>

    <script language=javascript> 
    function zenMGLpopup(f, refsource, storename, cartname) { 
        var giftPrice = ""; 
        var giftName = ""; 
        var giftDescription = ""; 
        var m; 
        var u = ""; 
        var n; 
        
        if (f) { 
            giftPrice = f.giftPrice.value;
            giftName = f.giftName.value;
            giftDescription = f.giftDescription.value;
          
            for (var i = 0; i < f.elements.length; i++) {
                m = f.elements[i].selectedIndex; 
                n = f.elements[i].name

                if (m > -1) { 
                    u = u + f.elements[i].options[m].text + ", "; 
                } 
                if (f.elements[i].name == "cart_quantity" ) { 
                    u = u + "Quantity=" + f.elements[i].value + ", "; 
                } 
            } 
        }
        if ( u != "" ) { 
          u = u.substr(0, u.length-2); 
          u = "I would like these options: " + u; 
          giftDescription = u + ".  " + giftDescription; 
        } 

        u = "http://www.mygiftlist.com/register_gift.asp?refSource=" + escape(refsource) + "&giftURL=" + escape(document.URL) + "&giftName=" + escape(giftName) + "&giftRetailer=" + escape(storename) + "&giftCart=" + escape(cartname) + "&giftPrice=" + escape(giftPrice) + "&giftDescription=" + escape(giftDescription); 
        var mgl = window.open(u,"MGL","width=720,height=500,top=60,left=100,resizable,scrollbars"); 

    </script> 
    </div>
    <!-- End MyGiftList Code -->
    <input type=hidden name=giftRetailer value="From Proper to Rocker"> 
    <input type=hidden name=RefSource value="FROMPROP2405"> 
    <div id="askQuestion" class="biggerText">
    <?php
    echo '<a href="' zen_href_link(FILENAME_ASK_A_QUESTION'products_id=' $_GET['products_id']) . '">' .
    zen_image_button(BUTTON_IMAGE_ASK_A_QUESTIONBUTTON_ASK_A_QUESTION_ALT) . '</a>'?>
    </div>
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_email"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e03525a3a1f17eb"></script>
              </div>
      <?php // display qty and button ?>
    <?php 
    // CUSTOMERS_APPROVAL == 3 ?>
    <!--Bof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) -->
    <div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER DIR_WS_CATALOG $products_image_medium?>&description=<?php echo stripslashes($products_description); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div><!--eof creinold Pinterest Modifications, (You can move this anywhere you like the Pin it Button to show up on Product Info page.) --> 
    <!--eof Add to Cart Box-->
    <!--bof Product details list  -->
    <?php if ( (($flag_show_product_info_model == and $products_model != '') or ($flag_show_product_info_weight == and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == and !empty($manufacturers_name))) ) { ?>
    <ul id="productDetailsList" class="floatingBox back">
      <?php echo (($flag_show_product_info_model == and $products_model !='') ? '<li>' TEXT_PRODUCT_MODEL $products_model '</li>' '') . "\n"?>
      <?php echo (($flag_show_product_info_weight == and $products_weight !=0) ? '<li>' TEXT_PRODUCT_WEIGHT .  $products_weight TEXT_PRODUCT_WEIGHT_UNIT '</li>'  '') . "\n"?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' $products_quantity TEXT_PRODUCT_QUANTITY '</li>'  '') . "\n"?>
      <?php echo (($flag_show_product_info_manufacturer == and !empty($manufacturers_name)) ? '<li>' TEXT_PRODUCT_MANUFACTURER $manufacturers_name '</li>' '') . "\n"?>
    </ul>
    <br class="clearBoth" />
    <?php
      
    }
    ?>
    <!--eof Product details list -->

    <!--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 -->
    <br class="clearBoth">

    <!--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 Additional Product Images -->
    <?php
    /**
     * display the products additional images
     */
      
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->
    <br class="clearBoth">
    <!--bof Prev/Next bottom position -->
    <?php if (PRODUCT_INFO_PREVIOUS_NEXT == 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 
    ?>
    <!--eof Prev/Next bottom position -->
    <hr id="product-divider" />

    <!--bof Tell a Friend button -->
    <?php
      
    if ($flag_show_product_info_tell_a_friend == 1) { ?>
    <div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == '<a href="' zen_href_link(FILENAME_TELL_A_FRIEND'products_id=' $_GET['products_id']) . '">' zen_image_button(BUTTON_IMAGE_TELLAFRIENDBUTTON_TELLAFRIEND_ALT) . '</a>' ''); ?></div>
    <?php
      
    }
    ?>
    <!--eof Tell a Friend button -->

    <!--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'] > ) { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' zen_href_link(FILENAME_PRODUCT_REVIEWSzen_get_all_get_params()) . '">' zen_image_button(BUTTON_IMAGE_REVIEWSBUTTON_REVIEWS_ALT) . '</a>'?></div>
    <br class="clearBoth" />
    <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == TEXT_CURRENT_REVIEWS ' ' $reviews->fields['count'] : ''); ?></p>
    <?php } else { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITEzen_get_all_get_params(array())) . '">' zen_image_button(BUTTON_IMAGE_WRITE_REVIEWBUTTON_WRITE_REVIEW_ALT) . '</a>'?></div>
    <br class="clearBoth" />
    <?php
      
    }
    }
    ?>
    <!--eof Reviews button and count -->

    <!--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_INFORMATIONzen_href_link(FILENAME_REDIRECT'action=url&goto=' urlencode($products_url), 'NONSSL'truefalse)); ?></p>
    <?php
        
    // $flag_show_product_info_url
      
    }
    ?>
    <!--eof Product URL -->
    <!--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-->
    <?php // BEGIN CEON BACK IN STOCK NOTIFICATIONS 2 of 2
    if (isset($back_in_stock_notification_build_form) && $back_in_stock_notification_build_form) {
      
    // Build the notification request form
      
      /**
       * Load the template class
       */
      
    require_once(DIR_FS_CATALOG DIR_WS_CLASSES 'class.CeonXHTMLHiTemplate.php');
      
      
    // Load in and extract the template parts for Back In Stock Notification functionality
      
    $bisn_template_filename $template->get_template_dir('inc.html.back_in_stock_notifications.html',
        
    DIR_WS_TEMPLATE$current_page_base'templates') . '/' .
        
    'inc.html.back_in_stock_notifications.html';
      
      
    $bisn_template = new CeonXHTMLHiTemplate($bisn_template_filename);
      
      
    $bisn_template_parts $bisn_template->extractTemplateParts();
      
      
    $back_in_stock_notification_form = new CeonXHTMLHiTemplate;
      
      
    // Load in the source for the form
      
    $back_in_stock_notification_form->setXHTMLSource(
        
    $bisn_template_parts['PRODUCT_INFO_BACK_IN_STOCK_NOTIFICATION_FORM']);
      
      
    // Add the form action, titles, labels and button
      
    $form_start_tag zen_draw_form('back_in_stock_notification',
        
    zen_href_link(FILENAME_BACK_IN_STOCK_NOTIFICATION_SUBSCRIBEzen_get_all_get_params(),
        
    'NONSSL'), 'POST');
      
    $back_in_stock_notification_form->setVariable('back_in_stock_notification_form_start_tag',
        
    $form_start_tag);
      
      
    $product_back_in_stock_notification_form_title BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_TITLE;
      
    $back_in_stock_notification_form->setVariable('title',
        
    $product_back_in_stock_notification_form_title);
      
      
    $name_label BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_NAME;
      
    $email_label BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_EMAIL;
      
    $email_confirmation_label BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_CONFIRM_EMAIL;
      
    $back_in_stock_notification_form->setVariable('name_label'$name_label);
      
    $back_in_stock_notification_form->setVariable('email_label'$email_label);
      
    $back_in_stock_notification_form->setVariable('email_confirmation_label',
        
    $email_confirmation_label);
      
      
    $submit_button zen_image_submit(BUTTON_IMAGE_NOTIFY_MEBUTTON_NOTIFY_ME_ALT,
        
    'name="notify_me"');
      
    $back_in_stock_notification_form->setVariable('submit_button'$submit_button);
      
      
    // Add in the introductory text
      
    $intro_text sprintf(BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_INTRO,
        
    htmlentities($products_nameENT_COMPATCHARSET));
      
    $notice_text BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_NOTICE;
      
    $back_in_stock_notification_form->setVariable('intro'$intro_text);
      
    $back_in_stock_notification_form->setVariable('notice'$notice_text);
      
      
    // Add the customer's details to the form (empty unless logged in)
      
    $back_in_stock_notification_form->setVariable('name',
        
    $back_in_stock_notification_form_customer_name);
      
    $back_in_stock_notification_form->setVariable('email',
        
    $back_in_stock_notification_form_customer_email);
      
    $back_in_stock_notification_form->setVariable('cofnospam',
        
    $back_in_stock_notification_form_customer_email_confirmation);
      
      print 
    $back_in_stock_notification_form->getXHTMLSource();
    }
    // END CEON BACK IN STOCK NOTIFICATIONS 2 of 2 ?>
    </div>

  3. #3
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: creinold Pinterest Button Addon

    I loaded your tpl_product_info_dispay.php on my site at the pinit button works perfect. So that file is good. Can I see your meta_tags.php file and your jscript_main.php file?

    Something not loading right.
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  4. #4

    Default Re: creinold Pinterest Button Addon

    Quote Originally Posted by creinold View Post
    I loaded your tpl_product_info_dispay.php on my site at the pinit button works perfect. So that file is good. Can I see your meta_tags.php file and your jscript_main.php file?

    Something not loading right.
    That's strange. I have attached them for you.
    Attached Files Attached Files

  5. #5
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: creinold Pinterest Button Addon

    You have an error in your jscript file....

    When you merged my pin it jscript file. You accidentally overwritten the ending tag for the jscript above it.

    On line 58 (right above my pinit jscript code) add this:

    Code:
    //--></script>
    that should fix it.
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  6. #6
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: creinold Pinterest Button Addon

    also I notice that you use addThis sharbar, I haven't tried this but this may work also. (You'll still need to use my meta_tags.php code.)

    I am not positive if addThis supports the description code I have for pinit but worth a try. If you try it. Let me know how it works. Just wrote it up. =)

    change your add this code to:

    Code:
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_email"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    <a class="addthis_button_pinterest"
    pi:pinit:url="<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>"
    pi:pinit:media="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>"
    pi:pinit:description="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes($products_description); ?>"
    pi:pinit:layout="horizontal">
    </a> 
    </div>
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  7. #7

    Default Re: creinold Pinterest Button Addon

    Quote Originally Posted by creinold View Post
    also I notice that you use addThis sharbar, I haven't tried this but this may work also. (You'll still need to use my meta_tags.php code.)

    I am not positive if addThis supports the description code I have for pinit but worth a try. If you try it. Let me know how it works. Just wrote it up. =)

    change your add this code to:

    Code:
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_email"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    <a class="addthis_button_pinterest"
    pi:pinit:url="<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>"
    pi:pinit:media="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>"
    pi:pinit:description="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes($products_description); ?>"
    pi:pinit:layout="horizontal">
    </a> 
    </div>
    Just added this code to it and I got 2 pinit buttons up now

  8. #8
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: creinold Pinterest Button Addon

    I uploaded your jscript file to my test site. I get the same issue. When I added the closing tag for the popup image above it. It works.

    Here my code: try it again and make sure it gets uploaded correctly and to the right folder... /includes/modules/pages/product_info/

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: jscript_main.php 5444 2006-12-29 06:45:56Z drbyte $
    //
    ?>
    <script language="javascript" type="text/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')
    }
    function popupWindowPrice(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
    }
    //--></script>
    
    
    <script type="text/javascript">
    (function() {
        window.PinIt = window.PinIt || { loaded:false };
        if (window.PinIt.loaded) return;
        window.PinIt.loaded = true;
        function async_load(){
            var s = document.createElement("script");
            s.type = "text/javascript";
            s.async = true;
            if (window.location.protocol == "https:")
                s.src = "https://assets.pinterest.com/js/pinit.js";
            else
                s.src = "http://assets.pinterest.com/js/pinit.js";
            var x = document.getElementsByTagName("script")[0];
            x.parentNode.insertBefore(s, x);
        }
        if (window.attachEvent)
            window.attachEvent("onload", async_load);
        else
            window.addEventListener("load", async_load, false);
    })();
    </script>
    
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=123886947641592";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  9. #9

    Default Re: creinold Pinterest Button Addon

    Quote Originally Posted by creinold View Post
    You have an error in your jscript file....

    When you merged my pin it jscript file. You accidentally overwritten the ending tag for the jscript above it.

    On line 58 (right above my pinit jscript code) add this:

    Code:
    //--></script>
    that should fix it.
    I am not seeing any changes on my site when I add that.

  10. #10
    Join Date
    May 2012
    Location
    china
    Posts
    1
    Plugin Contributions
    0

    Default Re: creinold Pinterest Button Addon

    its too complicated, and will change some former setting also slow down the speed open site. just insert this code in the tpl_product_info_display.php
    <!--Bof creinold Pinterest .) -->
    <div id="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo zen_href_link(FILENAME_PRODUCT_INFO); ?>&media=<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>&description=<?php echo stripslashes($products_description); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a></div>
    <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
    <!--eof creinold Pinterest .) -->

    then it will run good. just like this: http://www.mart07.com/europe-style-l...t-p-13244.html

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139f Need help with my social icons pinterest button
    By ffdotnet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jan 2013, 03:14 PM
  2. v150 Ultimate-SEO addon conflicting with CSS-Button addon
    By Rony in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Jan 2013, 08:06 PM
  3. v139h Pinterest Pinit Button (Numinix)
    By enchanted1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Sep 2012, 02:42 PM
  4. Move my Pinterest "pin it" button
    By Terrill_Taylor in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Feb 2012, 04:06 PM
  5. adding a class to button element - CSS button addon
    By australican in forum Addon Templates
    Replies: 3
    Last Post: 26 May 2010, 08:53 AM

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