Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

greasemonkey

Members
  • Posts

    1,371
  • Joined

  • Last visited

  • Days Won

    25

Posts posted by greasemonkey

  1. On 3/28/2023 at 12:20 PM, greasemonkey said:

    @frankl Not sure Frank is maintaining this so please ignore should you wish.

    There is an error in includes/modules/payment/braintree_cc.php around lines 95

          if ( ($this->enabled == true) && ((int)OSCOM_APP_PAYPAL_DP_ZONE > 0) ) {
            $check_flag = false;
            $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . OSCOM_APP_PAYPAL_DP_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

    Are referring to the wrong wrong zone. It should be

     

    Sorry - the above post correction was not correct. The correct change is

          if ( ($this->enabled == true) && ((int)OSCOM_APP_PAYPAL_BRAINTREE_CC_ZONE > 0) ) {
            $check_flag = false;
            $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . OSCOM_APP_PAYPAL_BRAINTREE_CC_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

     

  2. @frankl Not sure Frank is maintaining this so please ignore should you wish.

    There is an error in includes/modules/payment/braintree_cc.php around lines 95

          if ( ($this->enabled == true) && ((int)OSCOM_APP_PAYPAL_DP_ZONE > 0) ) {
            $check_flag = false;
            $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . OSCOM_APP_PAYPAL_DP_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

    Are referring to the wrong wrong zone. It should be

    
          if ( ($this->enabled == true) && ((int)OSCOM_APP_PAYPAL_BRAINTREE_DP_ZONE > 0) ) {
            $check_flag = false;
            $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . OSCOM_APP_PAYPAL_BRAINTREE_DP_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

     

  3. 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

  4. @raiwa is this the correct support thread for Kiss Image Thumbnailer? The link for support in the instructions is dead http://www.oscommerce.com/forums/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?

  5. 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

  6. @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

  7. @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

     

     

     

     

  8. 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....

     

  9. 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

  10. 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

     

  11. 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....

  12. @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

     

×
×
  • Create New...