-
Posts
1,371 -
Joined
-
Last visited
-
Days Won
25
Posts posted by greasemonkey
-
-
@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");
-
Anyone ever try this on checkout_confirmation?
-
Hit my Canadian sites September 1st.
-
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
-
@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?
-
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
-
I sent you a PM.... but first try in ShipStation to change your connection status' to:
Unpaid Status to unpaid
Paid Status to "paid1, paid" (just like that with the comma - without the quotes)
-
Ok, and a screen shot of your orders status.... www.mystore.com/admin/order_status.php
-
@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
-
@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
-
@rastlin I use it everyday 50 to 100 orders.
note: this app is for ShipStation not Shipworks
-
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....
-
On 11/28/2019 at 9:16 AM, Druid6900 said:
You think it might work better if it was set up to disallow everything as default and then add the ones you want to use?
I've figured out the issue - just not sure how to fix it yet...
-
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:
QuoteWarning: 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....
-
7 hours ago, Druid6900 said:
Here we go again....Do we know if this package will work in Phoenix (1.0.3.0)?
I haven’t tested it... give it a try and report back.
-
I have the froogle feed addon slightly modified - to connect with a Facebook catalogue for ads (and I presume could therefore be used for a Facebook store).
-
@Harald Ponce de Leon cough cough
-
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:
- Click Settings at the top of your Page
- Click Messenger Platform on the left
- Edit whitelisted domains for your page in the Whitelisted Domains section
-
@LeeFoster 👍👍 I sent you a test msg
-
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....
-
@LeeFoster it looks like your page id is not correct.... Use there to find it: https://findmyfbid.com/
-
@LeeFoster I sent you a PM.
-
8 hours ago, LeeFoster said:
Would that stop the button appearing?
Yes
-
@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:
- Click Settings at the top of your Page
- Click Messenger Platform on the left
- Edit whitelisted domains for your page in the Whitelisted Domains section
Updated Braintree App
in Braintree
Posted
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");