Jump to content

Stealth1

Members
  • Content count

    335
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Stealth1


  1. I currently use Canada Post for the majority of my shipments but some boxes are too large for them and can only be shipped via Fedex. I have the Canada Post module working with size and weight defined for each product. Does anyone know if the Fedex module can be installed and used to view these values I already have entered?


  2. Guessing this is either an error caused by PayPal standard or an error from installing WPP. When I try to access my orders section it gives me the following error

     

    Fatal error: Cannot redeclare class order in ...includes/classes/order.php on line 13

     

    Just sorted this out myself, in the file admin/orders.php you have to comment out the second instance of include(DIR_WS_CLASSES . 'order.php');, mine was located just above

    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">


  3. I have KissER installed so it shows all the errors, I know many don't cause issues but betto to fix them I think.

     

    Thanks for the fix, seems to have gotten rid of the notice.

     

    The PayPal fee module is on the order total page, the errors show up on the payment information page first. Website Payments Standard has been uninstalled.

     

     

     

    I will assume that your Delivery Information page is checkout_shipping.php. E_NOTICE errors are generally disabled in PHP by default, so there is something in your local runtime configuration that has overridden this. This error shows that we are checking a variable without testing for its presence, which is bad style, and depending on how the variable is used, could lead to security issues. In this case, we are testing against some fixed strings, so nothing harmful should come of it.

     

    Here is the fix for this issue:

    In includes/paypal_wpp/paypal_wpp_include.php:

    Find this around line 229:

      switch($_GET['action']) {
    

    Insert this ABOVE line 229:

      if (isset($_GET['action'])) {
    

     

    Find this around line 269:

          break;
     }
    

    Insert this BELOW the text:

      }
    

    This will be fixed in the next release. Only installations that have E_NOTICE reporting set in PHP will see the message, so the vast majority of users won't see any problem.

     

     

     

    These errors occur because the payment module is being loaded twice. Is it possible that the PayPal fee module is loading the payment module on its own?

     

    --Glen


  4. Just installed this on my test site and before going live I need to get one thing fixed.

     

    I have a paypal fee module for the order total which adds a fixed fee + percentage to only paypal transactions. It is setup for paypal standard and I want to use it for Payments Pro now but i'm unsure of how to make the change. Below is the code for the module, is it possible to get this to work for both direct payments and express checkout?

     

    class ot_paypal_fee_fix_var {
       var $title, $output;
    
       function ot_paypal_fee_fix_var() {
         $this->code = 'ot_paypal_fee_fix_var';
         $this->title = MODULE_ORDER_TOTAL_PAYPAL_TITLE;
         $this->description = MODULE_ORDER_TOTAL_PAYPAL_DESCRIPTION;
         $this->enabled = ((MODULE_ORDER_TOTAL_PAYPAL_STATUS == 'true') ? true : false);
         $this->sort_order = MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER;
         $this->output = array();
       }
    
       function process() {
         global $order, $currencies, $paypal_fee;
      $titletemp = '';
    
         if (MODULE_ORDER_TOTAL_PAYPAL_STATUS == 'true') {
           //check if payment method is paypal. If yes, add fee.
            if ($GLOBALS['payment'] == 'paypal_standard') {
            $paypal_fee = tep_round(((MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE + (MODULE_ORDER_TOTAL_PAYPAL_FEE/100) * $order->info['total'])), $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);
    
    		// check if paypal_fee is less than minimum defined
    		if ($paypal_fee < MODULE_ORDER_TOTAL_PAYPAL_MIN_FEE) {
    			$paypal_fee = MODULE_ORDER_TOTAL_PAYPAL_MIN_FEE;
    			$titletemp = MODULE_ORDER_TOTAL_PAYPAL_TXT_MIN_FEE;
    		}
    		// check if paypal_fee is more than maximum defined
    		if ($paypal_fee > MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE && MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE <> 0) {
    			$paypal_fee = MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE;
    			$titletemp = MODULE_ORDER_TOTAL_PAYPAL_TXT_MAX_FEE;
    		}
    		// check if paypal fee is between max and Min
    //			if ($paypal_fee > MODULE_ORDER_TOTAL_PAYPAL_MIN_FEE && ($paypal_fee < MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE && MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE <> 0)) {
    		if ($titletemp == '') {
    			if (MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE == 0){
    				$titletemp = MODULE_ORDER_TOTAL_PAYPAL_FEE . '%';
    			}
    			else {
    				$titletemp = $currencies->display_price(MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE,0) . '+' . MODULE_ORDER_TOTAL_PAYPAL_FEE . '%';
    			}
    		}
    
    		$order->info['total'] += $paypal_fee;
    
    //			$this->output[] = array('title' => $this->title . ' (' . $currencies->display_price(MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE,0) . '+' . MODULE_ORDER_TOTAL_PAYPAL_FEE . '%):',
    		$this->output[] = array('title' => $this->title . ' (' .$titletemp . '):' ,
                                       'text' => $currencies->format($paypal_fee, true,  $order->info['currency'], $order->info['currency_value']),
                                       'value' => $paypal_fee);
    		}
           }
       }
    
       function check() {
         if (!isset($this->_check)) {
           $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_PAYPAL_STATUS'");
           $this->_check = tep_db_num_rows($check_query);
         }
    
         return $this->_check;
       }
    
       function keys() {
         return array('MODULE_ORDER_TOTAL_PAYPAL_STATUS', 'MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER', 'MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE', 'MODULE_ORDER_TOTAL_PAYPAL_FEE', 'MODULE_ORDER_TOTAL_PAYPAL_MIN_FEE', 'MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE');
       }
    
       function install() {
         tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display PAYPAL FEE', 'MODULE_ORDER_TOTAL_PAYPAL_STATUS', 'true', 'Do you want this module to display?', '6', '1','tep_cfg_select_option(array(\'true\', \'false\'), ', now())");
         tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER', '3', 'Sort order of display.', '6', '2', now())");
      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PAYPAL Fix Part of Fee', 'MODULE_ORDER_TOTAL_PAYPAL_FIX_FEE', '0.35', 'Your PayPal Fix part of fee in Money', '6', '3', now())");
         tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PAYPAL Variable Part of Fee (%)', 'MODULE_ORDER_TOTAL_PAYPAL_FEE', '3.00', 'Your PayPal Fee in percent (%)', '6', '4', now())");
         tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PAYPAL Minimum Value of Fee', 'MODULE_ORDER_TOTAL_PAYPAL_MIN_FEE', '0', 'Your PayPal Minimum value of Fee in Money <br>(0 = Disable)', '6', '5', now())");
         tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('PAYPAL Maximum Value of Fee', 'MODULE_ORDER_TOTAL_PAYPAL_MAX_FEE', '0', 'Your PayPal Maximum value of Fee in Money <br>(0 = Disable)', '6', '6', now())");
       }
    
    
       function remove() {
         $keys = '';
         $keys_array = $this->keys();
         $keys_size = sizeof($keys_array);
         for ($i=0; $i<$keys_size; $i++) {
           $keys .= "'" . $keys_array[$i] . "',";
         }
         $keys = substr($keys, 0, -1);
    
         tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")");
       }
     }
    ?>

     

    I also have this error showing on the Delivery Information page of checkout.

     

    E_NOTICE Error Count: 12
    Error: Undefined index: action
    File: includes/paypal_wpp/paypal_wpp_include.php
    Line: 229

     

    I have these errors on the Payment Information page of checkout

     

    Error: Constant MODULE_PAYMENT_PAYPAL_DP_TEXT_TITLE already defined
    File: includes/languages/english/modules/payment/paypal_wpp.php
    Line: 10

     

    Error: Constant MODULE_PAYMENT_PAYPAL_EC_TEXT_TITLE already defined
    File: includes/languages/english/modules/payment/paypal_wpp.php
    Line: 11

     

     

    Thanks in Advance


  5. Still haven't gotten a solution to the images in the reviews section working with lightbox. This is a part of the contribution and it would be nice to have it working.

     

    I have posted the code that I have in all 3 of the areas that this add-on isn't working and am hoping something can be pointed out as to why it isn't working. I have compared the files yet still the lightbox part isn't working.

     

    I have the following code above if (!tep_db_num_rows($product_info_query)) {

     // BOF: Additional Images: Added: , p.products_image_med, p.products_image_pop, p.products_image_description
     $product_info_query = tep_db_query("select p.products_id, p.products_model, p.products_image, p.products_image_med, p.products_image_pop, p.products_image_description, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
     // EOF: Additional Images

     

     

     

    I have the following above the </head> and I also have a setup without it but both are behaving the same

     

    <?php if (ENABLE_LIGHTBOX == 'true') { ?>
    <!-- BOF: Lightbox Contribution -->
    <script type="text/javascript" src="lightbox/prototype.js"></script>
    <script type="text/javascript" src="lightbox/scriptaculous.js?load=effects"></script>
    <link rel="stylesheet" href="lightbox/lightbox.css" type="text/css" media="screen">
    <script type="text/javascript" src="lightbox/builder.js"></script>
    <script type="text/javascript" src="lightbox/lightbox.js"></script>
    <!-- EOF: Lightbox Contribution -->
    <?php } ?>
    <?php // EOF: Additional Images ?>

     

     

     

     

    And I have this code just below the line <?php if (tep_not_null($product_info['products_image'])) { ?>

     

    <?php // BOF: Additional Images: ?>
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_ADD_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($product_info['products_name']), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
    //--></script>
    <noscript>
    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . (!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:$product_info['products_image'])) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), $product_info['products_name'], (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
    </noscript>
    <?php /* OLD CODE
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
    //--></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>
    */
    // EOF: Additional Images: ?>


  6. I don't understand what you mean about uploading it. Do you mean to the bookmarking sites? If so, no, it won't work that way.

     

    I want to add the sharethis icon to all my product pages and haven't found a good contribution for this. I was wondering if I could use the file in header tags seo or would I have to make more modifications?


  7. If you have KissMT installed the canonical element for ..

    hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html?cPath=27_28_29

     

    Would be ...

    hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html

     

    thereby eradicating any duplicate content.

    Yeah that's not happening, it is displaying the cPath for all items. I have "Output canonical tags for SEO" set to true in KissMT on the admin side.


  8. If you have KissMT installed the canonical element for ..

    hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html?cPath=27_28_29

     

    Would be ...

    hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html

     

    thereby eradicating any duplicate content.

     

    Yeah that's not happening, it is displaying the cPath for all items. I have "Output canonical tags for SEO" set to true in KissMT on the admin side.


  9. For backwards compatibility I kept this admin setting exactly the same as the old series 2. Add cPath to urls is the setting. However as you have noticed this can create duplicate content, perhaps you should add KissMT to your site which includes canonical elements which would solve this issue.

     

    I do have KissMT installed at this time along with KissER and SEO Urls 5.


  10. No, there's no conflict and this contribution works fine for non-US sites. I'm not aware of any changes with the merchant center that will prevent it from working but that is easy to setup. It would take you about 15 minutes to setup a googlebase account and another 15 minutes to install this contribution and upload the feed. If google denied you for some strange reason, you've lost 30 minutes, probably less than you've spent worrying about doing this. If they do deny you, they won't allow your datafeed to be accepted so it can't do any harm. Sometimes you just have to take the plunge.

     

    Yeah I guess maybe I need to do some reading. I have just taken a quick look through google base and it seems like its not geared towards product sales for businesses but services. It also just looks complicated with all the stuff it says it does (tax, SEO, shipping etc). I know this probably isn't the place but how does the service work and benefit the store?


  11. Froogle is no longer supported. It is googlebase you want to us, which is what this contribution is. And, yes, it will work for other countries, even Canada. ;)

     

    Guess I as looking at the new Merchant center which appears not to support Canada specifically right now.

     

    Is there anything I should be wary of or know in advance with this. It appears to not mess with much but I want to make sure it's not going to harm anything by submitting feeds. I already have Google Sitemap setup and that seems to be working great, just don't want conflicts.


  12. Could I get some info on what I have done wrong or what is going wrong?

     

    I have SEO URLs 5 installed and Google Webmaster Tools is reporting Duplicate Title Tags for products, example is this. I have the cPath enabled obviously, is there a way to force the first version to the second?

     

    store/hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html

    hawk-dtc30-06-civic-si-rear-hb145w570-p-37.html?cPath=27_28_29


  13. I recently updated my store to a newer improved version and moved from PayPal IPN to Paypal Website Payments Standard from the stock 2.2 RC2 package. I am noticing that 90% of my orders are now having the customers address in paypal listed as unconfirmed, even for customers that I know have confirmed addresses.

     

    Can someone explain to me why this is happening? I have adjusted the settings from what I recall to make it so the address in OSC isn't passed to paypal but that hasn't seemed to change anything.

     

    I also noticed I have V1.00 of the module but the paypal site has a version 1.77 available for download. Should I update to this?


  14. Todd - I understand help is voluntary but I would like to get this resolved as would others.

     

    You said above that the changes should be the same as the product_reviews.php, I have posted the code that I have in all 3 of the areas that this add-on isn't working and am hoping something can be pointed out as to why it isn't working. I have compared the files yet still the lightbox part isn't working.

     

    I have the following code above if (!tep_db_num_rows($product_info_query)) {

     // BOF: Additional Images: Added: , p.products_image_med, p.products_image_pop, p.products_image_description
     $product_info_query = tep_db_query("select p.products_id, p.products_model, p.products_image, p.products_image_med, p.products_image_pop, p.products_image_description, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
     // EOF: Additional Images

     

     

     

    I have the following above the </head> and I also have a setup without it but both are behaving the same

     

    <?php if (ENABLE_LIGHTBOX == 'true') { ?>
    <!-- BOF: Lightbox Contribution -->
    <script type="text/javascript" src="lightbox/prototype.js"></script>
    <script type="text/javascript" src="lightbox/scriptaculous.js?load=effects"></script>
    <link rel="stylesheet" href="lightbox/lightbox.css" type="text/css" media="screen">
    <script type="text/javascript" src="lightbox/builder.js"></script>
    <script type="text/javascript" src="lightbox/lightbox.js"></script>
    <!-- EOF: Lightbox Contribution -->
    <?php } ?>
    <?php // EOF: Additional Images ?>

     

     

     

     

    And I have this code just below the line <?php if (tep_not_null($product_info['products_image'])) { ?>

     

    <?php // BOF: Additional Images: ?>
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_ADD_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($product_info['products_name']), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
    //--></script>
    <noscript>
    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . (!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:$product_info['products_image'])) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), $product_info['products_name'], (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<br>' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
    </noscript>
    <?php /* OLD CODE
    <script language="javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
    //--></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>
    */
    // EOF: Additional Images: ?>

×