Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oxwivi

Pioneers
  • Posts

    251
  • Joined

  • Last visited

Posts posted by oxwivi

  1. Yes! @Mont-lemur, it worked! It required the combination of both of your .infobox and TD.main suggestions. Still, if you will allow me to bother you further, the Contact Us heading still appears blue. It's nothing major, but it's the last wrinkle on the shirt.

     

    Thank you for the addon and much-appreciated support!

  2. Unfortunately that did not help either.

     

    EDIT Thinking a bit more, I remembered that for some reason it takes a whole day for stylesheet changes to be visible. So while I'm not holding my breath, I think it's possible the changes might show itself later.

  3. OK this contribution is a quick and dirty fix of pat of a 2.2 modification to work with 2.3.1 - it is still table driven.

     

    You need to modify the hex code in stylesheet css to add the hex code of the colours you require. the colour is controlled by this line:

     

    .infoBox {
     background: #ffffff;
    }
    

     

    Sorry for the late response. I changed the background color of all info related sections to the ones I'm using for my website. But certain areas are still blue, the same as in the screen shot.

  4. @@fulluvscents, two separate things I would like to ask:

    1. Is it possible to disable changing product quantity entirely? I've decided it's presence blurs the line between shopping cart and checkout, and difference in implementations breaks consistency. Though I still wish I could have all that separately on the shopping cart itself.
    2. Make a separate section with all the price calculation at the bottom with the Checkout button.

    Number 2 is just an idea. I would like to implement no. 1 ASAP.

  5. Thou art awesome in every sense of the word. Though you did say that you dislike your hard work being freely used, you really overreached yourself to help us out. This is experience has increased my preference in open-source and made me want to contribute back many times over.

     

    Like I said before the addon in question was Minimum Product Quantity, with it's latest release in the last decade for osC 2.2. Will try to ascertain that all the function works with 2.3.1 and release tweaked codes and updated instructions.

  6. Okay, so I did more trials that are sensible and may help conclusively eliminate sources of error:

    • I removed $min_order['products_name'] and $min_order['minorder'] along with their references in languages file. Still undefined error.
    • Removed all variables and done this: $return['msg'] = sprintf("Your cart has been updated, etc."); Still the same error.

    With this tries I was thinking to include a standard, variable-free message and add a column with MOQ. But as you can see the error is beyond me. Hope this helps. I can give you access to my account's cPanel where I'm hosting the test osC if it will help you.

  7. Now all the regular quantity functions (increase, decrease) is working fine except when it comes to MPQ. When the usual functions, that does not touch upon the minimum limits, is performed, the processing overlay appears and makes the expected changes. When the quantity entered is below MOQ, the loading overlay appears and restores the quantity to the minimum after a few moments. But the loading overlay doesn't disappear and remain stuck there. The only thing I can do is refresh.

     

    Thanks for the button changers. Working great. To me it looks way better.

     

    I'm not much of a coder, so my ideas were just that - ideas. Did not suggest a method of implementation. I welcome whatever works best.

     

    That said, my idea of how it would work was having the Ajax-based elements in a separate file, while the shopping cart/checkout page pulls in/refers to the relevant section it's displaying. (Instead of code replication in both shopping_cart and checkout)

     

    Anyway, I'm guessing my idea has received a measure of acceptance on your part. Here's hoping something comes out of it. If applying your Ajax-based shopping cart is as straightforward as copying a bunch of lines from checkout.php along with some minor modifications, then I'll put it to good use immediately.

  8. @@fulluvscents, I modified it as you asked. And now, either increasing or decreasing the quantity at checkout shows the loading overlay and pops a small dialog box with:

    Error: parsererror

     

    And doesn't change anything (the price remains the same, and navigating away from checkout doesn't show any indication that the quantity was changed).

     

    Regarding the addon link, MPQ is actually a 2.2-compatible addon that I managed to make it work on 2.3.1. It also has an admin panel and stuff that I didn't need so not tested. I'll release my modified instructions in the forums sometime later (and hopefully others interested in it will test the other bits).

     

    Just a passing idea.The cart area of the checkout is an excellent piece of work in and of itself. Could it be made to replace the stock shopping cart as well? Only the cart area with all the products will appear with a checkout button. Clicking the checkout button would overlay the login box and then the rest of the stuff would appear below.

     

    The prices calculations are shown as part of the cart. But the shipping options and address that can affect the calculations are below it. While I can't suggest a better position, it should be given a bit of thought.

     

    Lastly, there are some places where there's only one relevant button - like the Confirm button for logging in and the Confirm Order button at the checkout. Since these are always aligned to the right, it gives the impression that there's some other button which is missing (especially at the log in since the button is not fully aligned). Can't we center align them?

  9. I'm successfully using Minimum Product Quantity addon (originally for 2.2) on oSC 2.3.1 with modifications in the stock checkout.php file. The following is the code I needed in the stock checkout:

     

    //Minimum quantity code
       if(MINIMUM_ORDERS == 'true'){
      $min_order_query = tep_db_query("select p.minorder as min_quant FROM " . TABLE_PRODUCTS . " p where p.products_id = '".$products[$i]['id']."'");
    while ($min_order = tep_db_fetch_array($min_order_query))  {
      if ($products[$i]['quantity'] < $min_order['min_quant'] ) {
      $products[$i]['min_quant']=$min_order['min_quant'];
      }
    }
     if ($products[$i]['quantity'] < $products[$i]['min_quant'] ) {
      $products[$i]['quantity']=$products[$i]['min_quant'];
     $cart->add_cart($products[$i]['id'],$products[$i]['quantity'],$products[$i]['attributes']);
     $cart_notice = sprintf(MINIMUM_ORDER_NOTICE, $products[$i]["name"], $products[$i]["min_quant"]);
    }
    }
    //End Minimum quantity code
    //Minimum quantity code
       if ($cart_notice) {
    ?>
        <p class="stockWarning" align="center"><?php echo $cart_notice; ?></p>
    <?php
      }
    //End Minimum quantity code
    

     

    Think it can go into your Simple Checkout? I am struggling to understand the structure due it's sheer size. My lasting gratitude for your hard work.

×
×
  • Create New...