Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

burt

Members
  • Posts

    17,340
  • Joined

  • Last visited

  • Days Won

    824

Posts posted by burt

  1. 15 hours ago, kalibug said:

    this is the 

    Version Checker pixel_trans.gif

    Installed Version: osCommerce Online Merchant v2.3.4.1

     

    Before you get too far with your 2.3.4.1, please download and install Phoenix (perhaps on a different hosting account or in a folder alongside your 2.3.4.1).  

    I believe that Phoenix is a better option than official 2 series, and you'll have an easier life all round if you use Phoenix.  

    At least try it, and if you dont like it, continue using your 2.3.4.1.  Link for Phoenix is in my signature.

  2. This (as well as many other threads) are bumped by spammers (who sign up to drop a link etc). 

    These are nuked by mod when seen, but in the meantime between the spam and the nuke, real forum members ( in this case you and malcolm ) replied.  So the thread stays as a "new" thread. 

    Had the spam and nuke occurred quite quickly, no-one would ever have seen the thread and it would have dropped away back to 2008 or whenever.

    Spammers.  😕 

  3. OK. 

    For anyone looking to do this (and find this thread in the future)...core code changes in this manner are not necessary unless you are on an *ancient* version (2.2 stream, 10 years or more old?) or some version that has been totally shafted already by core code changes.

  4. On 4/8/2019 at 10:56 AM, LeeFoster said:

    I am looking to create a number of modules that will sit on my index page and link to other sections of my website. 

    Before I get started is there anything similar to this that already exists?

    What do you want to link to, and how do you want to do it? 

    I'd wager everything you can think of has been already made and is available either free or paid-for.

  5. I don't have facebook so cannot help sorry.  But here are some pointers;

    1. FB uses opengraph, so make sure you have that module installed.
    2. There did used to be on FB a "linter" tool you can use for testing opengraph - I think it was renamed a little while back but you should be able to find it
    3. Try other testing tools such as framely
    4. Make sure you have not inadvertently blocked FB (eg in htaccess etc)

     

  6. 13 minutes ago, LeeFoster said:

    That's exactly what I was looking for.

    That piece of code should make sense and is portable to box(es) for 100% sure.

    It might be practical to move the function into (say) /includes/functions/general.php and then just access that function from the module (rather than having the (basically the same) function in all the box modules).  Hope that makes sense.  If you do that, and get it working, hit me up with it as it can go into Core.  Thx.

  7. You have two (easy) ways to do it;

    • Set pages per box

    or

    • Set boxes per page

    I'd set pages per box as there are less boxes than pages so it would be a lot quicker...  

    You can find an example of this approach in /includes/modules/header_tags/ht_datepicker_jquery.php

    Or you have a more flexible way (but needs coding from scratch);

    • create a new DB table for storing page/box relationships.  And then have a dedicated admin page for setting it up.

     

  8. I've not used this particular SEO sitemap, but here is some quick and easy code to try - this will output an array of data so that you can basically do whatever you want with it...

    $c2p = array();
    $category_2_product_query = tep_db_query("select p2c.*, p.products_image, pd.products_name from products_to_categories p2c left join products p on p.products_id = p2c.products_id left join products_description pd on p.products_id = pd.products_id where p.products_status = 1 and pd.language_id = '" . (int)$languages_id . "'");
    while ($category_2_product = tep_db_fetch_array($category_2_product_query)) {
      $c2p[$category_2_product['categories_id']][] = $category_2_product;
    }
    
    $_tree = new category_tree();
    $tree = $_tree->getArray();
    
    foreach ($tree as $a => $b) {
      $c = end(explode('_', $b['id']));
      
      $tree[$a]['products'] = $c2p[$c];
    }
    
    echo '<pre>';
    print_r($tree);
    echo '</pre>';

    I do not know if that will be useful to anyone but it may give ideas...

  9. Warning: reset() expects parameter 1 to be array, null given in /includes/classes/vendor_shipping.php on line 51

    Find L51 and cast the object to an array.  

    reset( $whatever );

    to

    reset( (array)$whatever );

    That is a MASK for that problem, not a fix.  That Mask may introduce other problems.

     

  10. If I remember rightly, the EU banned surcharging for payment methods, completely and totally, sometime last year.
    If you are in the EU, and I think you are (NL)...you are not allowed to place a surcharge for people paying by Paypal.
    Prior to this new EU rule, it was legal to surcharge.  I wrote about it in the past if you search the Forum.

    But Now...
    It is illegal for you (you are in the NL) to place a surcharge on your customers for using Paypal.   /end
    If you get caught...you'd be up in front of your countries "trading standards" office.

×
×
  • Create New...