Jump to content

rudolfl

Members
  • Content count

    266
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by rudolfl

  1. Hi all, Is there a plugin for BS that allows dynamic product loading as customer scrolls through the product page? This is to replace a pagination system currently in use. Thanks, Rudolf
  2. Here is some info on SEO aspect: https://www.quicksprout.com/2014/05/21/how-to-create-an-seo-friendly-infinite-scrolling-page/ Rudolf
  3. Hi all, I would like to have my checkout as follow: 1. No login page, show customer shipping details right away. 2. Allow customer to create a password to have an account or continue as guest 3. If customer has an account allow Ajax popup to log them in. I know I can use guest checkout plugin and do rest myself, but did not want to re-invent the wheel. The reason I post in BS forum is because I want it to work in BS out of the box, but happy to port it if required. Any pointers? Thanks, Rudolf
  4. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    Just uploaded latest and (hopefully) final version 0.3 Please let me know if you encounter any issues. Rudolf
  5. sorting order in payment methods has no effect on appearance of payment methods. It seems that relevant code is missing. In order to fix, edit /catalog/includes/classes/payment.php Find 'function selection()' and replace complete function with: function selection() { $selection_array = array(); $sort_order_array = array(); if (is_array($this->modules)) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $selection = $GLOBALS[$class]->selection(); $sort_order_array[] = $GLOBALS[$class]->sort_order; if (is_array($selection)) $selection_array[$GLOBALS[$class]->sort_order] = $selection; } } } /* To sort payment methods, we append a key to selection_array and key is sorting order. Then we sort by key low to high and return just the values */ ksort($selection_array); return array_values($selection_array); }
  6. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    OK, I did first version of payment module for Afterpay. I just created an add-on: https://apps.oscommerce.com/Apps&VF1bj&afterpay-payment-module-au-nz-only Some code cleanup is required as well as some error handling and some more functionality I would like to add, but generally seem to work OK. DO TEST WITH SANDBOX! LIVE TESTING IS EXPENSIVE! You will have to request sandbox credentials from Afterpay. If someone can test different browsers including mobile devices, this will be of great help. Rudolf
  7. Hi, Current API's (v2.3) is expiring in July. FB suggest moving to 2.9 Are you planning to do so? Thanks, Rudolf
  8. Never mind. Found problem to be self-inflicted. Rudolf
  9. Hi all, I seem to have an issue with currencies (www.hatsfromoz.com.au) If I change the currency, it does not stick. Currency changes immediately on the page I am on, but none of the links contain "currency" on the URL, so moving away from current page switches back to default currency. I also found that currency is being registered in session in application_top.php, but clicking on any link reveals that 'currency' is no longer stored in session. Was just wondering if anyone saw the problem before I start dig deep into the code. Thanks, Rudolf
  10. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    Still waiting for AfterPay approval ...... Applied for ZipPay in the meantime. Cheaper and, hopefully, osCommerce will be supported soon. Rudolf
  11. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    I have all the forms and will be submitting them tomorrow. I was promised to get an ID asap and sandbox access. Rudolf
  12. rudolfl

    Anyone made a module for Afterpay or Zippay (Australia)

    I am going to try and write one myself, as no ready modules are available. Is there a documentation on a design of osCommerce payment modules? I can trace it myself, but would be good to save time. AfterPay APIs (on the first glance) seem reasonably simple. Rudolf
  13. rudolfl

    What are different PayPal modules

    Hi all, Can someone point me to a document that describes differences between different PayPal modules? Currently, BS edition comes bundled with: PayPal Express Checkout PayPal Payments Pro (Direct Payment) PayPal Payments Pro (Hosted Solution) PayPal Payments Pro (Payflow Edition) PayPal Express Checkout (Payflow Edition) PayPal Payments Standard How do I choose? Thanks, Rudolf
  14. Hi all, I would like to be able to show different boxes on different pages. As it currently stands, set of boxes is same on all pages. Is there a ready plugin for this behaviour? I can implement one, just don't want to re-invent the wheel. Thanks, Rudolf
  15. Just found a small error. Line $out .= '<div class="thumbnail equal-height rl_categories" style="background-image: url(images/' . $tile[1] . ');" />'; Should not have self-closing tag. Should be $out .= '<div class="thumbnail equal-height rl_categories" style="background-image: url(images/' . $tile[1] . ');" >'; Sorry, could no longer edit original post. Rudolf
  16. Hi all, I am writing a new add-on module for index page. The idea is to make tiles for some categories to allow a quick selection. It is working, but I have some CSS problems. Here is site I am working on: https://www.hatsfromoz.com.au/new-hats/index.php I want tiles to be same size and I want them to change size as viewport changes. Is there a class in BS that can help me? Thanks, Rudolf
  17. Eventually, functionality will be controlled via admin interface. For now, it is hard-coded here. <?php $cats_tiles = array( array('117','hats_images/fashion/special/SP390_red_thumb.jpg','Shop Spring Fashion Hats'), array('116','hats_images/fashion/Summer2014/S105_silver_thumb.jpg','Shop Spring Racing Fascinators') ); ?> <div class="col-sm-<?php echo $content_width; ?> new-products"> <h3><?php echo MODULE_CONTENT_RL_CATEGORIES_HEADING; ?></h3> <div class="row list-group"> <?php foreach ($cats_tiles as $tile) { $out = '<div class="col-cm-' . $product_width . ' link-in-div">'; $out .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $tile[0]) .'">'; $out .= '<div class="thumbnail equal-height rl_categories" style="background-image: url(images/' . $tile[1] . ');" />'; $out .= '<p class="text-center rl-categories-button">' . $tile[2] . '</p>'; $out .= '</div></a></div>'; echo $out; } ?> </div> css: .rl_categories { min-height:150px; min-width:187px; max-width:250px; margin:20px; background-size:cover; background-repeat:no-repeat; background-position:center; display : flex; align-items : center; } .link-in-div a:hover{ text-decoration:none; } .rl-categories-button { color:#fff; text-align:center; font-size:20px; border-radius:.25em; /*padding:1.3125rem 0;*/ width:100%; background:rgba(0,0,0,.4); transition:background .3s,ease-in-out; position:relative; bottom:-50px; } .rl-categories-button:hover { background:rgba(0,0,0,1); } </div> Thanks, Rudolf
  18. Thank you all, "Equal Height" plugin is not a part of mainstream code anymore. I installed it, but that did not fix the issue. Then I tried native CSS, as suggested by @@burt. That worked. I am trying to keep up with GIT, but that change only came through about a week ago and I did not have it yet. Thanks again, Rudolf
  19. Hi all, https://www.hatsfromoz.com.au/new-hats/ I am using content module for new products and, as you can see, there are alignment problems. (First module -- Categories is based on stock new_products module and uses same CSS). Vary page width to see the problem. Basically, if some products have long title, containing <div> becomes large. As floating divs have to move to the next line, thet will float left if all other divs are of same size. Otherwise, they will float to the level of widest div. (hope it make sense). Creates sort of "tiles" effect. As one varies page width, height of div encapsulating products changes and that causes the problem. Any idea on how to fix it? Thanks, Rudolf
  20. Thanks Jim for letting me know about the compatibility addon. I was manually adding definitions as required by plugins I was porting. With this add-on, I made my shop cleaner and more "main stream". Why those definitions were removed in EDGE is beyond me, but this is a separate discussion. With all definitions in place, categories plugin works fine now. Rudolf Rudolf
  21. Thanks Jim, That explains why it does not work. Unfortunately, Modular Navbar add-on is not compatible with 2.3.4BS EDGE. I guess, I can get it to work, but was wondering if there is an add-on to show categories in menu that works on EDGE? I really want to add categories to hamburger button to easily show them on mobile devices. Right at the moment, there is no easy way to get mobile devices to display categories in user-friendly easy-to-find manner. Rudolf
  22. Hi, Can someone give me a hand? Trying to install "Categories Module for Modular Navigation Bar". Copied all the files, installed the module, but they do not appear on the navbar. Apache log does not show any errors. I am using 2.3.4BS edition. Couple of things that bother me: 1. docs say "This software requires the Modular Navigation Bar Addon. Install that before installing this software". I believe BS edition already has this. Am I right or I should be installing this add-on 2. Files are installed under "/modules/content", but there is also "/modules/navbar_modules". Should this functionality really be under navbar_modules? Thanks, Rudolf
  23. rudolfl

    What are different PayPal modules

    Thank you, This makes things much clearer. Rudolf
  24. Yes, of course. Me and my fingers.. But you got the idea. This is why I posted it in dev forum, not reported a problem. I was not sure if behavior I see is correct or not. My change does not break the existing code (as far as I tested), but does handle integer '0' correctly. Whether this function should or should not be used for integer values is a different matter. I did not see any documentation that suggests use of it and function certainly accepts integer values happily. I came from C background and having loose types in PHP certainly gets on my nerves :-) Rudolf
  25. Hi, I agree, this is what function should be used. However, this is not the case -- it is being used to check integer values. I found this while debugging shipping module. In includes/classes/shipping.php. Function cheapest() (Line 98), if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) Cost is checked with this function. Name of function is misleading, as it implies value is checked for being a "null" (not set) and there is no indication (or checks for that matter) that function should only be used with strings. Rudolf
×