Jump to content

greasemonkey

Members
  • Content count

    1,368
  • Joined

  • Last visited

  • Days Won

    25

Reputation Activity

  1. Like
    greasemonkey got a reaction from raiwa in [Contribution] Ship In Cart   
    You may want to test with the newer REST Canada Post module - their sellonline service is slated to be discontinued (not sure when).
     
    I have this working with http://addons.oscommerce.com/info/8887
  2. Like
    greasemonkey got a reaction from 14steve14 in credit card payment with osCommerce   
    I think this GPL "discussion" has hijacked the thread ????????????
  3. Like
    greasemonkey got a reaction from Druid6900 in canada.post.rest.rate.service.oscommerce.V2.3   
    Updated full package here http://addons.oscommerce.com/info/8887
  4. Like
    greasemonkey reacted to evbeej in [Contribution] Discount Coupon Codes   
    if i add the var_dump in the first lot of KGT code on that page :
     
    it appears with string(6) "erika2" at the top of the confirmation page...  does that help?
  5. Like
    greasemonkey got a reaction from auzStar in [Addon] Twitter Typeahead Autocomplete Search for osC 2.3.4 (BS and nonBS)   
    @@auzStar just installed this addon... Love it. Thank you kindly!
  6. Like
    greasemonkey got a reaction from kymation in SEO Header Tags - RELOADED support?   
    @@burt, just digging around an old microdata problem... and wanted to let you know I did figure out a very easy solution to THIS issue when using quantity price breaks and trying to implement microdata.
     
    I've removed <span itemprop="price"> </span> from product_info and then wrapped each statement that makes up the price in the priceformatter class
            $lc_text .= '<td>';         $lc_text .= '<del>'         . $currencies->display_price($this->thePrice, tep_get_tax_rate($this->taxClass))         . '</del> <br><span itemprop="price"><span class="productSpecialPrice">'         . $currencies->display_price($this->specialPrice, tep_get_tax_rate($this->taxClass))         . '</span></span> '         .'</td>' . "\n";       } elseif ($this->price_breaks[0]['products_qty'] > $this->products_min_order_qty) {         $lc_text .= '<td><span itemprop="price">'         . $currencies->display_price($this->thePrice, tep_get_tax_rate($this->taxClass))         . '</span></td>' . "\n";       }              foreach($this->price_breaks as $price_break) {           $lc_text .= '<td><span itemprop="price">'             . $currencies->display_price($price_break['products_price'], tep_get_tax_rate($this->taxClass))             .'</span></td>' . "\n";       }       $lc_text .= '</tr>' . "\n"; Which validates perfectly
    offers [Offer]: price:US$41.48 price:US$38.57 price:US$35.26 availability:http://schema.org/InStock priceCurrency:USD which should output
    US$41.48 to US35.26 Not a good as a AggregateOffer but better than an error........
  7. Like
    greasemonkey got a reaction from revamp in Seperate Pricing Per Customer v3.5   
    @revamp @spiritalan :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small: :arrow_up_small:  see above....
  8. Like
    greasemonkey reacted to Tsimi in PayPal Express encoding fix for specials characters / umlaute   
    I was testing the PayPal Express payment module and encountered some issues when using German language address or names or product names with special characters in it.
    These encoding issues have been fix by the community but they are spread around in multiple topics so I thought it might be helpful for others to have all fixes in one place.
     
    PayPal Account Setting
     
    Go to "My Account" -> "Profile" -> "My selling tools" -> "PayPal button language encoding"
     
    Then setup
     
    Your website's language:  Western European Languages (including English)
     
    click the "more options" button and set Encoding to UTF-8.
    Below where it says "Do you want to use the same encoding for data sent from PayPal to you (e.g., IPN, downloadable logs, emails)?"
    tick the "Yes" checkbox.
    Click "Save" and logout of your PayPal account.
     
    Gergely added nice images that explain it visually how to do it.
     
    http://forums.oscommerce.com/topic/397700-utf-8-in-payments-standard/?p=1702922

    Encoding fix
    This fix is by courtesy of @@raiwa he gave the key to the solution posted then later by @@HansTatt. Thanks guys! :thumbsup:
     
    Inside the ext/modules/payment/paypal/express.php file look for this code
    $item_params['L_PAYMENTREQUEST_0_NAME' . $line_item_no] = $product['name']; and replace with
    $item_params['L_PAYMENTREQUEST_0_NAME' . $line_item_no] = utf8_decode($product['name']); then look for this code
    $params['PAYMENTREQUEST_0_SHIPTONAME'] = $order->delivery['firstname'] . ' ' . $order->delivery['lastname']; $params['PAYMENTREQUEST_0_SHIPTOSTREET'] = $order->delivery['street_address']; $params['PAYMENTREQUEST_0_SHIPTOCITY'] = $order->delivery['city']; $params['PAYMENTREQUEST_0_SHIPTOSTATE'] = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['state']); $params['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $order->delivery['country']['iso_code_2']; $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode']; and replace with this
    $params['PAYMENTREQUEST_0_SHIPTONAME'] = utf8_decode($order->delivery['firstname']) . ' ' . utf8_decode($order->delivery['lastname']); $params['PAYMENTREQUEST_0_SHIPTOSTREET'] = utf8_decode($order->delivery['street_address']); $params['PAYMENTREQUEST_0_SHIPTOCITY'] = utf8_decode($order->delivery['city']); $params['PAYMENTREQUEST_0_SHIPTOSTATE'] = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['state']); $params['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $order->delivery['country']['iso_code_2']; $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode']; Reference Topic:
    http://forums.oscommerce.com/topic/397165-paypal-standard-not-emptying-basket/?p=1714514
     
    That's it.
     
  9. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@raiwa I'm having a minor issue with my canonical tags and the following lines you are changing is classic_redirect from 7.5.6 to 7.5.7
     
     
     
    When redirecting from mobile to classic this leaves me with a URL like;
     
     
    Which I cannot seem make canonical (with a modified header tags SEO) with a line like;
    $str_replace_from = array('-mc-', '-mi-', '-mby-', '-mpr-', '-mpri-', '-mp-', '-mm-', 'catalog_mb.php', 'about.php', 'search.php', 'currencies.php', 'languages.php', 'mobile/', '?redirectCancelled=true', '?MredirectCancelled=true', '?redirectCancelled=true&MredirectCancelled=true'); $str_replace_to = array('-c-', '-i-', '-by-', '-pr-', '-pri-', '-p-', '-m-', 'index.php', 'index.php', 'index.php', 'index.php', 'index.php', 'index.php'); I presume its the extra "&" in the url - its showing as & in the source.
     
    Any ideas?
  10. Like
    greasemonkey got a reaction from MRCO-Egypt in New: Auto change currency ased on customer's IPA location   
    Hi All, I'm not sure if anyone is using this addon - or following this thread... I'm not a professional coder by any stretch - just a shop owner with enough knowledge to be dangerous.
     
    I have re-wrote this addon to use the ip2location module created for this addon - http://addons.oscommerce.com/info/6955
     
    I did this to improve the realiabiliy of the addon. Thinking the wipmania API is only 99.9%  - that would mean one in evey 1000 hits the API fails (that is several customers per day for me).
     
    I was having issues, I had presumed, where 1 in every 100+ or so orders customers are 0 (no currecy, symbol or decimal). In additional I was receving phone calls about 1 every 2 or 3 days with the complaint of no prices showing.
     
    So, although my addon works - it did not fix the issues mentioned above. So, I NOW presume the issues caused by the code I carried forwared in appliation top but not sure why or where? I presumed this if statement would return default currency if the location was blank?
    if ($location == ''){ // $location is blank, use default method so we don't get $0 prices or in some cases no product listed. $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; But aparently it's not working... or I'm not understanding????
     
    Anyway here is my code...
    require_once (DIR_WS_MODULES . 'ip2location/ip2location.php'); $ip = IP2Location_open(DIR_WS_MODULES . 'ip2location/IP-COUNTRY-REGION-CITY-SAMPLE.BIN', IP2LOCATION_STANDARD); $record = IP2Location_get_all($ip, $_SERVER['REMOTE_ADDR']); IP2Location_close($ip); $location = $record->country_short; if ($location == ''){ // $location is blank, use default method so we don't get $0 prices or in some cases no product listed. $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; }else{ //since it has not been determined, find the currency it needs to be changed to $currency_id_result=tep_db_query("SELECT countries_currencyid FROM countries WHERE countries_iso_code_2='".$location."'"); while($currency_row=tep_db_fetch_array($currency_id_result)) { $currency_id=$currency_row['countries_currencyid']; }; //create session variable to show that it has now been determined $currency=$currency_id; $_SESSION['locationset']=$location; $_SESSION['currency']=$currency; } //END OF ALTERATIONS My latest version of this code "seems" reliable.... However, I'm don't understand why the above is not working and my new code changes the last lines to hard code the currency... Making it less useable by the community in general
    //create session variable to show that it has now been determined if ($currency_id != 'CAD') { $currency='USD'; } else { $currency='CAD'; } $_SESSION['locationset']=$location; $_SESSION['currency']=$currency; Does this mean its not setting the session??? Or is the "if statement" mentioned above not placed correctly????
     
  11. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@raiwa I hope all is well. I'm seeing some strange re-direct behavior since upgrading to 7.5.6 last week (from 7.5.3)
     
    When clicking an external link to the classic site (facebook for example) from a mobile device I'm not being re-directed to the mobile site.
     
    Example 1; if I click the link from facebook; www.mysite.com/specials.php from my iphone I get... www.mysite.com/specials.php. I SHOULD be getting www.mysite.com/mobile/specials.php
     
    Example 2; if I type in the IOS browser; www.mysite.com/specials.php from my iphone all is good... I get redirected to www.mysite.com/mobile/specials.php
     
    I have confirmed this behavior by clicking a link from your facebook page - which looks to be running mobile 7.5.5
  12. Like
    greasemonkey got a reaction from Roaddoctor in Paypal App - Incorporation of mods in new admin/orders.php   
    @@Roaddoctor Just one VERY small issue. You have a stray "." in admin/orders.php
     
    This;
    <!-- // BOF Separate Pricing Per Customer --> <p><strong><?php echo TABLE_HEADING_CUSTOMERS_GROUPS .":" ; ?></strong> . <?php echo $order->customer['customers_group_name']; ?></p> <!-- // EOF Separate Pricing Per Customer --> Should be;
    <!-- // BOF Separate Pricing Per Customer --> <p><strong><?php echo TABLE_HEADING_CUSTOMERS_GROUPS .":" ; ?></strong> <?php echo $order->customer['customers_group_name']; ?></p> <!-- // EOF Separate Pricing Per Customer -->
  13. Like
    greasemonkey got a reaction from Roaddoctor in Paypal App - Incorporation of mods in new admin/orders.php   
    @@Roaddoctor Just one VERY small issue. You have a stray "." in admin/orders.php
     
    This;
    <!-- // BOF Separate Pricing Per Customer --> <p><strong><?php echo TABLE_HEADING_CUSTOMERS_GROUPS .":" ; ?></strong> . <?php echo $order->customer['customers_group_name']; ?></p> <!-- // EOF Separate Pricing Per Customer --> Should be;
    <!-- // BOF Separate Pricing Per Customer --> <p><strong><?php echo TABLE_HEADING_CUSTOMERS_GROUPS .":" ; ?></strong> <?php echo $order->customer['customers_group_name']; ?></p> <!-- // EOF Separate Pricing Per Customer -->
  14. Like
    greasemonkey reacted to raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@rabon33, @@greasemonkey,
     
     
    Some thoughts about iosc Mobile:
     
    - I agree that the arguments for a specific set of mobile optimized pages were valid until now and had advantages in comparation to responsive design, faster page load etc.
    - However once most mobile devices use G4 connection and modern devices with double processer and plenty of memory will be mayority on the market, there is IMO not much reason left for the additional cost and work.
    - Core oscomerce will soon include responsive design based on bootstrap and will be touch screen optimized.
    - BS is already available for the actual core versions 2.3.3.4 and 2.3.4.
    - Amazon, walmart etc. do not use oscommerce and oscommerce users are not Amazon, walmart etc. :-)
    - When I say "I'm thinking to stop iosc Mobile development" I mean to stop including new features and to stop continue support for the next versions based on BS (OSC 2.4, 2.5). But of course I still will be ready to update fixes and compatibility support for the actual core versions at least for some more time.
    - Together with Scott we just prepared the PayPal App support which will be published soon.
     
    - It's just that I believe in very short time the BS core versions will leave it without sense to offer the ioscMobile add-on in competition and I prefer to use time, energy and experience to improve the core BS responsive solution rather then to continue with iosC Mobile dev.
    - I any case I believe it's quite "mature" and doesn't need more improvements or new features.
     
    Kind regards
    Rainer
  15. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@rabon33 interesting article. I can tell you my mobile conversions with this addon is slightly better than desktop (just over 4%). And (I mentioned this in another post the other day) my tablet conversions (I'm currently serving the desktop site to tablets) is by far the worst.
     
    @@raiwa I would think iOSC still has some value - in particular for those who agree with the above article.
     
    What is stopping someone who does love this addon from implementing with 2.3.4BS or 2.4 etc...I'm sure it could be done with independent jquery calls in the mobile header?
     
    The average "joe" has trouble with managing one OSC file set - with iOSC I'm (just barely) managing 2 file sets. I couldn't imagine managing a 3rd file set for tablet.
     
    However, I could certainly see using this addon together with 2.3.4 BS. This gives the slight responsiveness required for tablets and the full mobile experience the article speaks of.
     
    Maybe I'm too new here.... but I would not give up just yet @@raiwa
  16. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@raiwa let me know if you are working on this http://addons.oscommerce.com/info/9184... I planned to test this by this weekend.
  17. Like
    greasemonkey reacted to Harald Ponce de Leon in Looking For Testers: New PayPal App   
    Hi All..
     
    PayPal App v4.039 has been pushed out! This is the first public release of the App and is now available on our Add-Ons site at:
     
    http://addons.oscommerce.com/info/9184
     
    A public announcement will be pushed out later today!
  18. Like
    greasemonkey got a reaction from burt in SEO Header Tags - RELOADED support?   
    Thank you @@burt. I have have it done and working/testing on a new install with very little mods (other than seo urls and a few changes on my index, product_info and listing) - and have also compared a set of files for a fresh 2.3.4BS install.
     
    @@newburns is also working on this ... I will compare both his file set and my file set and then install on a fresh 2.3.4bs to be sure everything is good to go before I send them your way. I have no issue supporting (but I'm learning at the same time - I've always used Header Tags SEO).
     
     
     
     
    newburns
  19. Like
    greasemonkey got a reaction from Tsimi in PayPal Express cancel and return to - bug?   
    Hi All, I'm using PayPal Express 3.0 on 2.3.4 and have had one small issue brought up by a customers.
     
    When a customer uses the Return to "my store" link from the PayPal payment screen you are returned back to the sites shopping_cart page on SSL (example; https://ssl.oscommerce.com/demo/2/shopping_cart.php). If the customer then try's to update the quantity of products using the update button - in some browsers (firefox for one) - a security warning is received.
     
    I presume this is because the update button refreshes NOSSL - which is fine because shopping_cart is not typically seen on SSL - except when returned by PayPal.
     
    Confirmed this behaviour with Firefox at http://demo.oscommerce.com/index.php
     
     
    I realize this is not a huge issue... but thought it could be easily fixed by editing to?
    <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product', 'SSL')); ?> Although I'm no coder.... And I'm not clear what other impacts this would/could have?
  20. Like
    greasemonkey got a reaction from kymation in Superfish and jquery 1.11.1   
    Ok, so I found an "ok" solution. Hopefully someone can tell me if there is a better way?
     
    I have use the jquery migrate plugin - https://github.com/jquery/jquery-migrate/
     
    Just downloaded the file and put it into the dir with my others... and then put
    <script type="text/javascript" src="ext/js/jquery-migrate-1.2.1.js"></script> in my template_top.php.
     
    My nivo slider was not working with jquery 1.11.1 either. However, I found a newer version here http://addons.oscommerce.com/info/9096 and it worked out of the box. Even though my older version now works with the migrate plugin.
  21. Like
    greasemonkey got a reaction from Tsimi in KissER Error Handling & Debugging [contribution]   
    @@Snarg I got this working in 2.3.3.4. In includes/functions/database.php around line 51 find
     

    $result = mysqli_query($$link, $query) or tep_db_error($query, mysqli_errno($$link), mysqli_error($$link));
     
    and change to
     

    $start_time = microtime( true ); $result = mysqli_query($$link, $query) or tep_db_error($query, mysqli_errno($$link), mysqli_error($$link)); if ( class_exists( 'KissER' ) ) { KissER::q( round( ( microtime( true ) - $start_time ), 4 ), $query ); }
     
    Again, I have not tested this thoroughly. However tried it and it seems to be working...
     
  22. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@raiwa I have un-done the update for now. As it did not fix my problem and my problem was much more important;
     
     
    I have however come to a partial solution - although the solution is not very graceful.
     
    The issue above arose every time a 404 page was called from a /mobile/ link - example by a human bookmarking our site from an iphone the addon called mobile/apple_touch_icon.png (which is 404)
     
    OR any deleted/404 product that a bot or human was looking for in the from a "classic" link on a mobile device. Previously I had installed http://addons.oscommerce.com/info/933 for a custom 404 page and http://addons.oscommerce.com/info/8865 and then edited /includes/modules/ultimate_seo_urls5/includes/notfound_404.php to
     

    header( "HTTP/1.0 404 Not Found" ); header('Location: http_error.php?error_id=404&FWR-URL='. $_SERVER['REQUEST_URI']); ?>
     
    This all worked very well... on the classic site but not at all on the mobile site.
     
    Solution;
     
    1) for the apple_touch_icon I just made a copy of the png file in the /mobile/ directory. Fixed... for now. @@Gergely have you experienced any issues with this addon similar to mine? If you wish I can take this to a different thread...
     
    2) for all other 404 issues I re-made the http_error.php (you are welcome to a copy of this for the support addons) for mobile and dropped it in at mobile/http_error.php
     
    So, for now everything seems to look great.
     
    When a know 404 page is checked here http://seo-website-designer.com/404-Error-Handler-Checker#heading-ToolResult in my mobile dir links return a good 404 header
     
    Most importantly.... the server isn't getting slammed anymore...
     
     
  23. Like
    greasemonkey got a reaction from raiwa in [Contribution] iOSC - mobile version of OSC on your iPhone   
    @@MountainMan look here... Lots of great info on CSS and more http://www.w3schools.com
     
  24. Like
    greasemonkey reacted to GLWalker in ULTIMATE Seo Urls 5 - by FWR Media   
    I use ULTIMATE Seo Urls 5 PRO as well as Custom HTTP Error Page
     
    I like the http error page as it logs the http errors so I can correct/manage them, but SEO Urls has it own 404 page so I made a simple change in includes/modules/ultimate_seo_urls5/includes/notfound_404.php
     
    If you use the same set up, just copy the code below and paste over your existing file.
     

    <?php /** * * ULTIMATE Seo Urls 5 PRO ( version 1.1 ) * * * @package USU5_PRO * @[member='licensed2kill'] http://www.opensource.org/licenses/gpl-2.0.php GNU Public License * @[member='Link'] http://www.fwrmedia.co.uk * @[member='copyright'] Copyright 2008-2009 FWR Media * @[member='copyright'] Portions Copyright 2005 ( rewrite uri concept ) Bobby Easland * @[member='author'] Robert Fisher, FWR Media, http://www.fwrmedia.co.uk * @lastdev $Author:: Rob $: Author of last commit * @lastmod $Date:: 2010-12-21 22:45:02 +0000 (Tue, 21 Dec 2010) $: Date of last commit * @version $Rev:: 196 $: Revision of last commit * @Id $Id:: notfound_404.php 196 2010-12-21 22:45:02Z Rob $: Full Details */ /** * Page not found html with 404 header * @package USU5_PRO * * @var array $text - array of text strings to be used in the html */ header( "HTTP/1.0 404 Not Found" ); header('Location: http_error.php?error_id=404&FWR-URL='. $_SERVER['REQUEST_URI']); ?>
     
    It will still log the proper 404 header as well as inform you the requested url in your log/txt file.
     
     
    Also, I found a hidden gem, though I have not tried it yet:
    includes/modules/ultimate_seo_urls5/includes/uri_redirects_array.php
  25. Like
    greasemonkey got a reaction from smellypoopants in No-redirect adding to cart - not sure what to call it   
    My 11 year old would love your username... Lol.
     
    To your question; the answer has 2 parts.
     
    1) the shopping cart redirect is a built in configuration. Look in the admin, configuration, my store. By setting to false the user will remain on the page and not be directed to the cart.
     
    2) there are many shopping cart addons.... Just google, for example; oscommerece shopping cart in header. There's also a shopping cart layer/popup which I used on 2.2 (tooltips... I think it was called) which worked well for what you discribe that I believe has recently been updated to work on 2.3.x - although I haven't tried the update.
     
    Good luck.
×