Jump to content

greasemonkey

Members
  • Content count

    1,368
  • Joined

  • Last visited

  • Days Won

    25

Reputation Activity

  1. Like
    greasemonkey reacted to raiwa in QTPro BS   
    Beta 02
     
    To do list:
    update qtprodoctor.php
    hardcoded stuff, superglobals
    language constants/definitions update stats_low_stock_attrib.php
    hardcoded stuff, superglobals
    language constants/definitions update stock.php
    hardcoded stuff, superglobals
    language constants/definitions replace mods in admin/boxes/tools.php by separate file replace mods in admin/boxes/reports.php by separate file avoid mods in admin/includes/functions/general.php
    load function file in modules
    replace core function mods by own functions? modularize product info options modularize product info stock table versions for Modular Product Page by kymation alternative product listing module for modularized shopping cart order class extension to avoid mods in core order class replace all mods in checkout files by hooks? check compatibility with ajax attribute manager add support for attribute sort order update instructions  
    Beta 02 installation
    Who has the old version already installed:
    replace the admin files
    upload and install the product info content modules and (IMPORTANT!) uncomment the complete options/attributes section in product_info.php
    upload all other files included in the "new files" directory replace all pad class files undo all modifications of the old version in:
    includes/classes/orders.php includes/functions/general.php checkout_payment.php checkout_confirmation.php checkout_process.php use the files included in: "Modified files for 2.3.4 BS" or compare and apply the changes. (hook registry and hook calls)
    keep the modifications in includes/application_top.php keep the modifications in shopping_cart.php or use the included content module "product listing qtpro" instead of "product listing" for the modularized shopping cart. If you do not have the latest EDGE version with hooks support: Use the included application_top.php and copy: legacy/includes/classes/hooks.php For new installations:
    instructions are not updated yet follow the old instructions except
    A.: don't modify admin/includes/boxes/tools.php and reports.php, upload the new files instead
    B.: upload and install the product info content modules and (IMPORTANT!) uncomment the complete options/attributes section in product_info.php instead to apply the mods
    C.: apply only the modification to: - includes/application_top.php - shopping_cart.php if not modularized or use the included content module "product listing qtpro" instead of "product listing" for the modularized shopping cart.
    use the files included in: "Modified files for 2.3.4 BS" or compare and apply the changes. (hook registry and hook calls)
    checkout_payment.php checkout_confirmation.php checkout_process.php
    If you do not have the latest EDGE version with hooks support: Use the included application_top.php and copy: legacy/includes/classes/hooks.php
     
    Steve @@altoid I'll try to fork and update via pull request your repository, so it should be easier for all to test. Give me a couple of days.
     
    Scott @@greasemonkey, if you wish to give it a try now, please go ahead.
     
     
     
     
    What should be tested:
    Complete checkout with different product combinations and stock settings.
    Redirects from checkout pages if cno stock and checkout not allowed
    Downloadable products
    Check stock quantities updates when an order is done.
    ...................whatever you can imagine.
     
    There are heavy changes for all the checkout, so hardcore tests required o:) :- :thumbsup:
     
    Thanks and best regards
    Rainer
  2. Like
    greasemonkey got a reaction from raiwa in QTPro BS   
    @@raiwa Hi Rainer, I'm going to start testing this shortly.
     
    Scott
  3. Like
    greasemonkey got a reaction from piernas in ULTIMATE Seo Urls 5 - by FWR Media   
    @@piernas well done... and over due.
     
    Of course it comes just days after I updated my install... removing all the constants for EDGE.
  4. Like
    greasemonkey got a reaction from frankl in Customers IP and Geo Country info with order_confirmation email   
    Ok.... I get (got it) it.....
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class hook_admin_orders_location { function listen_orderTab() { global $order; $customers_ip = $order->customer['customers_ip']; $tab_title = Location; $tab_link = substr(tep_href_link('orders.php', tep_get_all_get_params()), strlen($base_url)) . '#section_location_content'; $output = <<<EOD <script> $(function() { $('#orderTabs ul').append('<li><a href="{$tab_link}">{$tab_title}</a></li>'); }); </script> <div id="section_location_content" style="padding: 10px;"> <p><strong>Customers Location: </strong>{$customers_ip}</p> </div> EOD; return $output; } } ?>
  5. 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
  6. Like
    greasemonkey got a reaction from 14steve14 in credit card payment with osCommerce   
    I think this GPL "discussion" has hijacked the thread ????????????
  7. 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
  8. 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?
  9. Like
    greasemonkey got a reaction from Tsimi in Discount Code BS   
    No problem from me
  10. Like
    greasemonkey got a reaction from Tsimi in Discount Code BS   
    No problem from me
  11. Like
    greasemonkey reacted to raiwa in Discount Code BS   
    Hello Lambros @@Tsimi,
     
    Yes, it was a paid for job. I'll PM Scott and ask what he thinks about to give out the files.
     
    regards
    Rainer
  12. 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!
  13. 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........
  14. 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....
  15. Like
    greasemonkey got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    @@Tsimi yep.... that works.... you just have to be sure the qty field is populated prior to visiting wishlist.php.
     
    Maybe the right thing would be to have the default structure to "null" in the qty? Not sure if that would work....
     
    Or maybe a simple warning in the instructions (if you feel like there will be others "like me") to run a script UPDATE the qty column to "1"?
  16. 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.
     
  17. 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?
  18. 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????
     
  19. 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
  20. 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 -->
  21. 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 -->
  22. 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
  23. 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
  24. 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.
  25. 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!
×