Jump to content

greasemonkey

Members
  • Content count

    1,368
  • Joined

  • Last visited

  • Days Won

    25

Posts posted by greasemonkey


  1. 1 hour ago, raiwa said:

    It's triggered within the modified tep_image function. So you need it to be modified, then load a store page and it should install.

    Ok, I got it to run.... weird (not sure why it didn't run on the index.php last night)... It ran only when I went to the product_listing


  2. @raiwa is this the correct support thread for Kiss Image Thumbnailer? The link for support in the instructions is dead http://forums.oscommerce.com/topic/388022-kissit-image-thumnailer/?hl=kissit

    I've just installed v3.0 in a new Phoenix 1.0.4.3 - and it would seem the DB install is not running on catalog page load.

    What triggers catalog\includes\modules\kiss_image_thumbnailer\db_install.php?

    Also (keep in mind I'm not nearly as smart as most...lol).... can the changes to admin/include/functions/general.php not be moved to a siteWide admin hook?


  3. Hi Brian @rastlin the file seems to be in the right place (just confirm the URL is correctly set in ShipStation - to the one I sent you in the PM).

    And also confirm the Unpaid Status and Paid Status in ShipStation are correct as mentioned above. They should be;

    unpaid

    paid1, paid


  4. @rastlin lets see.... despite the error, will it allow you to connect (hit connect not test connect)?

    Also, can you take a screen shot (mask your store url username and password) of your details here

    image.png.cf862ac4dc998445eaa6ddefaa63ef86.png


  5. @rastlin No I have not had any issues connecting this to any site.

    The file goes in your root or catalog directory - the same place that you find files such as shopping_cart.php, checkout_shipping.php etc.

    Example: http://www.mystore.com/shipstation_osc.php or http://www.mystore.com/catalog/shipstation_osc.php (you may have renamed the catalog like you mentioned above) http://www.mystore.com/oscommerce/shipstation_osc.php

    If you use ssl/https on the catalog side of your store then you need to ensure (step 4 in the instructions) the path to the file in the shipstation setup is https (ie look at your index.php does it have https - yes or no).

    Example: https://www.mystore.com/shipstation_osc.php or https://www.mystore.com/catalog/shipstation_osc.php (you may have renamed the catalog like you mentioned above) https://www.mystore.com/oscommerce/shipstation_osc.php

    Make sure the admin credentials you used in the shipstation setup are correct.

    Also, confirm, you have new orders in your store for SS to get and that your "pending" order status and the pending order status=1. You can confirm by navigating to https://mystore.com/admin/orders.php?status=1

     

     

     

     


  6. So coders, assuming I'm correct (in my testing I am...lol).

    How do we take the add to admin/modules.php

    		  if (is_array($value) ) {
                 $value = implode( ", ", $value);
    		     $value = preg_replace ("/, --none--/", "", $value);
    		  }

    And incorporate it with the the actual shipping modules set function (in my very limited skill - the set function is building an array, which when saved, modules.php with the additional code above, is imploding the or replacing (???) the array before inserting into the configuration value)

      function upsxml_cfg_select_multioption($select_array, $key_value, $key = '') {
        $string = '';
        $key_values = explode( ", ", $key_value);
        for ($i=0, $n=sizeof($select_array); $i<$n; $i++) {
          $name = ((tep_not_null($key)) ? 'configuration[' . $key . '][]' : 'configuration_value');
          $string .= '<br /><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
          if (in_array($select_array[$i], $key_values)) $string .= ' CHECKED';
          $string .= '> ' . $select_array[$i];
        }
        return $string;
      }

    Sorry for the cross post mods.... I was trying to keep this in one place but messed up....

     


  7. Working on updating this for Phoenix - and I'm having one issue (which I believe I've confused with a similar issue on the UPS XML thread)

    Thank you @azpro and @ecartz for your help... and sorry if I caused any additional confusion...

    The issue I'm having is when "disallowing" a shipping service I'm receiving the following error:

    Quote

    Warning: constant(): Couldn't find constant CANADA_POST_Array in /home/********/public_html/*********/includes/modules/shipping/canadapost.php on line 452

    Disallow array is built here:

            tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Disallowed Shipping Methods', 'MODULE_SHIPPING_CANADA_POST_TYPES', '', 'Select the Canada Post services <span style=\'color: red; font-weight: bold\'>not</span> to be offered.', '6', '12', 'get_multioption_canadapost_xml',  'canadapost_cfg_select_multioption(array(\'D.RP\',\'D.EP\',\'D.XP\',\'D.XP.CERT\',\'D.PC\',\'D.LIB\',\'U.EP\',\'U.PW.ENV\',\'U.PW.PAK\',\'U.PW.PARCEL\',\'U.SP.AIR\',\'U.SP.SURF\',\'U.XP\',\'I.XP\',\'I.IP.AIR\',\'I.IP.SURF\',\'I.PW.ENV\', \'I.PW.PAK\',\'I.PW.PARCEL\',\'I.SP.AIR\',\'I.SP.SURF\'),',  now())");

    With this function:

    function canadapost_cfg_select_multioption($select_array, $key_value, $key = '') 
    {
    	for ($i=0; $i<sizeof($select_array); $i++) {
    	  $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');
    	  $string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
    	  $key_values = explode( ", ", $key_value);
    	  if ( in_array($select_array[$i], $key_values) ) 
    	  $string .= ' checked="checked"';
    	  $string .= '> ' . constant('CANADA_POST_' . get_canada_post_service_code($select_array[$i]));
    	} 
    	$string .= '<input type="hidden" name="' . $name . '" value="--none--">';
    	return $string;
    }	

    It would seem the result of the function = Array ... Inputting "Array" into the DB as the "disallowed" service (in place of the service code) .... hence why it cannot find the constant....

    As a test, I can manually remove Array from the DB and replace it with any (multiple service codes) and it works perfectly.

    I have no issues on Gold, Edge/Frozen...

    I've attached a screen cap....

    canadapost.jpg


  8. Ok all reading this - Please confirm you’ve had to whitelist your domain? As I understand it... whitelisting may not have been “required”... but haven’t seen an install yet where it worked WITHOUT whitelisting

    On 7/23/2019 at 2:38 PM, greasemonkey said:

    Quick Edit - some need to whitelist their domains within their Facebook page:

    1. Click Settings at the top of your Page
    2. Click Messenger Platform on the left
    3. Edit whitelisted domains for your page in the Whitelisted Domains section

     


  9. Just making our PM discussion public.... @LeeFoster FB page ID is correct.... Check the sort order to see if there is a conflict.

    Lee.... what is your sort order for this header tag? if not 0 please change to 0 and retest....

    Quickly looking - do you have a login modal in your head? It has an error.... Maybe try and inactivate it....


  10. @LeeFoster Have you whitelisted your domain?

    On 7/23/2019 at 2:38 PM, greasemonkey said:

    Quick Edit - some need to whitelist their domains within their Facebook page:

    1. Click Settings at the top of your Page
    2. Click Messenger Platform on the left
    3. Edit whitelisted domains for your page in the Whitelisted Domains section

     


  11. I've developed a neat little header tag module that drops a Facebook messenger chat box into your site - so much easier than trying to get one of the live chat addons to work and its free.

    Connects to your Facebook (business) Page simply.

    I've tried it on EDGE and PHOENIX and it works perfectly (I'm sure it will work on any version... but haven't tested it).

    Configurable to have the chat box open on load or not (showing the Facebook Messenger Icon only).

    The only thing you need is your Facebook Page ID which can be found with following instructions:

    To find your Page ID:

    1. From News Feed, click Pages in the left side menu.
    2. Click your Page name to go to your Page.
    3. Click About in the left column. If you don't see About in the left column, click See More
    4. Scroll down to find your Page ID below More Info.

    Quick Edit - some need to whitelist their domains within their Facebook page:

    1. Click Settings at the top of your Page
    2. Click Messenger Platform on the left
    3. Edit whitelisted domains for your page in the Whitelisted Domains section

    Screencap attached

    Addon found here: https://apps.oscommerce.com/Apps&amp;e18Iy&amp;facebook-messenger-chat-box-addon

    screencap.jpg


  12. Hey all, I deal with a lot of vendors using Shopify... I typically do not place orders with these vendors on their websites by adding products to a cart and checking out. I send them a Purchase Order from our Inventory Management system.

    Some of these vendors then do a manual order (from my PO) on their site and then send an email link to "Complete you Order". No login necessary.... just straight to a payment page where I enter credit card info, ApplePay or PayPal and confirm.

    It strikes me as a better way to deal with telephone orders. As is now.... there is no way for: 1) a customer to take responsibility for the items within their order (example: "I" told you I wanted widget123... and you sent me widget456.... even though we know they asked for widget123) and 2) for a customer to use PayPal as a payment method.

    @burt your "key" system - could it be used to make a set a key content modules that mimic checkout_shipping, payment, confirmation & success?

    It would have to be combined with some kind of manual order maker (I know there are several).....

    Anyone have any thoughts on the matter? How do you handle phone orders?


  13. On 5/9/2019 at 11:03 AM, peterbuzzin said:

    Hi, you are entirely correct, well spotted and that is odd!  When using the code tags in this forum, if you edit the content of a code tag after setting it (which I did a few times), it translates the &amp; into &.  Annoying!!

    Correct code below, unfortunately the forum isn't allowing me to edit my posts any longer.

    ANYONE READING THIS FOR THE FIRST TIME USE THE INSTRUCTIONS AND CODE BELOW AND NOT THE CODE ABOVE

    First of all in your store admin, make sure Telephone Number and Seamless Checkout is unticked, then save the settings. 

    Note: Possible ongoing problems.  Seamless checkout previously allowed users who have logged in via "Log In with PayPal" to continue to make payment without logging in again.  As PayPal has removed Seamless as a scope item I'm not sure if customers will have to login again to PayPal once they get to payment method selection or click a Checkout with PayPal button.  The new connect/api.js may compensate for this automatically but I haven't tested that far yet so cannot comment either way.

    In includes/modules/content/login/templates/paypal_login starting line 18

    Find:

    
    <script type="text/javascript" src="https://www.paypalobjects.com/js/external/api.js"></script>
    <script type="text/javascript">
    paypal.use( ["login"], function(login) {
      login.render ({
    
    <?php
      if ( OSCOM_APP_PAYPAL_LOGIN_STATUS == '0' ) {
        echo '    "authend": "sandbox",';
      }
    
      if ( OSCOM_APP_PAYPAL_LOGIN_THEME == 'Neutral' ) {
        echo '    "theme": "neutral",';
      }
    ?>
    
        "locale": "<?php echo $cm_paypal_login->_app->getDef('module_login_language_locale'); ?>",
        "appid": "<?php echo (OSCOM_APP_PAYPAL_LOGIN_STATUS == '1') ? OSCOM_APP_PAYPAL_LOGIN_LIVE_CLIENT_ID : OSCOM_APP_PAYPAL_LOGIN_SANDBOX_CLIENT_ID; ?>",
        "scopes": "<?php echo implode(' ', $use_scopes); ?>",
        "containerid": "PayPalLoginButton",
        "returnurl": "<?php echo str_replace('&amp;', '&', tep_href_link(FILENAME_LOGIN, 'action=paypal_login', 'SSL', false)); ?>"
      });
    });
    </script>

    Replace with:

    
    <script type="text/javascript" src="https://www.paypalobjects.com/js/external/connect/api.js"></script>
    <script type="text/javascript">
    paypal.use( ["login"], function(login) {
      login.render ({
    
    <?php
      if ( OSCOM_APP_PAYPAL_LOGIN_STATUS == '0' ) {
        echo '    "authend": "sandbox",';
      }
    
      if ( OSCOM_APP_PAYPAL_LOGIN_THEME == 'Neutral' ) {
        echo '    "theme": "neutral",';
      }
    ?>
    
        "responseType" : "code id_Token",
        "locale": "<?php echo $cm_paypal_login->_app->getDef('module_login_language_locale'); ?>",
        "appid": "<?php echo (OSCOM_APP_PAYPAL_LOGIN_STATUS == '1') ? OSCOM_APP_PAYPAL_LOGIN_LIVE_CLIENT_ID : OSCOM_APP_PAYPAL_LOGIN_SANDBOX_CLIENT_ID; ?>",
        "scopes": "<?php echo implode(' ', $use_scopes); ?>",
        "buttonType" : "CWP",
        "buttonShape" : "rectangle",
        "buttonSize" : "md",
        "fullPage" : "false",
        "containerid": "PayPalLoginButton",
        "returnurl": "<?php echo str_replace('&amp;', '&', tep_href_link(FILENAME_LOGIN, 'action=paypal_login', 'SSL', false)); ?>"
      });
    });
    </script>

     

    In includes/modules/content/login/cm_paypal_login.php on line 259 (to prevent a blank/white screen once a user has logged in via PayPal when returning to the store).

    Find:

    
    echo '<script>window.opener.location.href="' . str_replace('&amp;', '&', $return_url) . '";window.close();</script>';

    Replace with:

    
    echo '<script>
    		if( typeof window.opener === \'undefined\' || window.opener === null ){
    			window.location.href="' . str_replace('&amp;', '&', $return_url) . '";
    		}else{
    			window.opener.location.href="' . str_replace('&amp;', '&', $return_url) . '";
    			window.close();
    		}
    	</script>';

     

    @peterbuzzin worked perfect..... @Harald Ponce de Leon the PayPal app needs updating... as I'm sure you are aware.

×