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. When you say "the second image", do you mean the First Large Image?

    #1 - thumbnail
    #2 - first large image
    #3 - second large image
    etc

    If this is the case (ie just show the first large image)..simply set "Thumbnail Layout" to 1.   Not more, not less... just "1".

     

    Edit: 
    Or don't. 
    Just read rest of thread. 
    You aren't using an up to date version of osCommerce, so that wont work. 
    Here is code (still assuming you want the first large image):

    tep_db_query("select image from products_images where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order limit 1");

     

  2. Your problem is the basename() function.  That strips out the path to the IPN file.

    You need to somehow stop root.php from rewriting URLs that are not in the base of the site.

    You may also have problems with other files, such as Braintree, Stripe and some Password functions.  As well as any properly coded addons which utilise the new TP system of pages...

    Put simply:  SEO-G is a square peg that you have tried to ram into a round hole.

  3. 11 minutes ago, ArtcoInc said:

    This is what I was asking about ... if this was even possible.

    For sure possible.  Shopowner would then need that couple of lines of code to call the Hook.

    If you could post what it is that you're exactly wanting to do with the countries...I could take a think and provide some thoughts.

  4. Thought about this a bit more.  I recently made for a client a system of assigning "best" products in a category and manufactuer/brand. 

    I could have put that into the admin/categories.php page, but that page is kind of complicated...  

    Instead I put it in it's own page:

    new_page.jpg.77dc1a0ac19950e8b0ff28456f74eb3c.jpg

    What you see there (admin side):

    1. New box module & language file for "best products" sidebox [2 files]
    2. New box module & language file for "in brand" link in that sidebox [2 files]
    3. ditto "in category" link [2 files]
    4. New page & language file for assigning products to categories [2 files]
    5. New page & language file for assigning products to manufacturers [2 files]

    Shop side:

    1. new module for index_products which looks for assigned products and displays them appropriately  [2 files]

    All of the above is a long winded way of saying what you could do is leave the base functionality alone and instead have an extra page just doing the bits you want to add.  Although this is 12 extra files, there is no touching of core code and the amount of time spent creating those 12 files is perhaps a few minutes more than trying to implement it all in admin/categories.php

  5. 5 hours ago, ArtcoInc said:

    but there's the chance that the store owner has already made their own changes to /admin/includes/boxes/localization.php, so overwriting it would also not be a good choice.

    They shouldn't have...if any addon requires shopowner to *manually* add code to a sidebox...the addon is outdated.
    I think this system was introduced in 2.3.3 (or so), the ability to add links without amending files.

  6. OK, I see.  I think I'd (and definitely not saying this is the right way, but a way);

    1. make new page new_countries.php
    2. new file to add in link in localization

      So far, no core changes.  But you have a link to both countries pages in the box. So...this is the tricky bit;
       
    3. make hook which places .js in the bottom of admin side, which
      - removes the original countries.php link
      - if they somehow manage to navigate to the original countries.php add in a message on that page under the page heading:
       
      <div class="secWarning">You have installed XYZ, use {link to new_countries.php} for localization purposes</div>

       

  7. IF NOT USING COMMUNITY EDITION:

    1. Install Paypal App
      https://apps.oscommerce.com/fZMiN&paypal-app
    2. Once installed, it will ask you to update.
      Update

    IF YOU ARE ON THE COMMUNITY EDITION

    1. Do NOT Install the Paypal App
    2. Do NOT update.

    UPDATE CERTIFICATE

    1. Overwrite old Paypal Cert
      https://github.com/gburton/Responsive-osCommerce/blob/dbb6f769cb8f3c84164feb812bf7a0de225dd58c/ext/modules/payment/paypal/paypal.com.crt
      I don't think anywhere else has this updated Cert.

    TEST THE INSTALLATION

    1. Get your Balance.
      If it works...it is good.

    ALL VERSIONS

    1. Insert API, Password etc in the GENERAL settings
      Get those from Paypal
    2. Set up whatever Paypal method(s) you are wanting

    TEST THE INSTALLATION

    1. Perform a checkout or get a friend to
      Did the payment go into your paypal account?
      Was an Order written ?
  8. 3 hours ago, frankl said:

    @piernas You touched on this a little, but the sad thing is that 2.4 makes addons ultra easy to install and uninstall. It almost makes me cry to see the wasted opportunity there.

    The other option is that I let the Community Version come to an end, and those who are interested can work with 2.4

    Every shopowner using Community Version has a working Responsive php7-ready shop, so it could just be left.
    Those who want to continue using, continue.  Those who don't, use official 2.3.x, go to a different software or pitch in and help on 2.4.

    I have an issue with 2.4 and transparency of just what is exactly going on with it, but that is for another time.

  9. Addons are sometimes more complicated than first glance...

    An addon could consist of (eg);

    1.  product_info content module
    2.  sub modules for that content module
    3.  action
    4.  hook

    Not sure how you're going to approach that...but something to think about.

    The majority of well coded addons;

    1. dont change core code
    2. consist of up to three files [main, lang, tpl]
    3. consist of one "thing" (bm_, cm_, etc), not usually more than one

    It might be that your prototype deals with the "easy" addons first?
    And can then be extended to deal with complicated addons?

  10. @piernas I like this idea, but am concerned that it will take up a lot of your time and dev's won't get behind you.  I know how hard this can be, to have little to no help, or worse, dev's actively causing trouble and holding you back :(

    But, if you can get a working prototype for testing...it would help to illuminate the way forward. 

    Always, it's the best way;  chat and discussions just go circular and lead nowhere.  People have different ideas of how things should be done, and even if the "best way" is not your way...this is your idea.  Therefore you make it how you want, chit-chat is a total waste of time and effort, if the other parties are set on doing things another way.

×
×
  • Create New...