Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Yak39

Members
  • Posts

    105
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Yak39

  1. Hello I'm using an old release of PayPal IPN Official, the last compatible with 2.2.

    I have been using the release for two years without a scratch. Last week express_checkout.php returned an error 500.

    Looking at the server's log the only information I have is the following:

    " End of script output before headers"

     

     the error feedback is not enough for me to understand what happened. I immediately though our hosters changed something in the PHP version our space is running but I have received confirmation nothing has changed in the server's configuration.

     Can anybody help me guess what happened?

    Thank you

  2. Thanks for the feedback: haven't figured it out a 100%, but at least I got it working.

    Did not modify categories.php,  but by creating an empty specification group with text area and not filled by any previous data set from existing tables product_specifications_input.php shows up.

    Question is why anything else does not.

    But I'll look deepe into categories.php as you mentioned.

  3. Hi Jim,

    apologies I forgot to mention I was talking about the Admin side!

    I've created a dummy specification that applies to all of the categories.

     

    I noticed that the textboxes of Header Tags Seo have disappeared after I included the product tabs addon that comes with Product Specifications.

    I'm pretty sure there's either some conflict of I just put the php request too early in the code.

     

    I don't see any "formal" coding error nor I get any error messages. I'm really kind of lost.

    Main contribs I'm think of as possible conflicts:

    Admin Access Level 
    MVS (but I guess you could tell me more about that ;) )

    Header Tags SEO.

     

    Any experience with those?

     

    thanks a lot.

  4. Hi all, I'm trying to implement Products Specifications (really great contrib!) inside my very heavily customised OSC, originally based on 2.2

    It's all fine except for categories.php.

    Everything seems ok, but the tab that would be supposed to include product_specifications_input.php it's just empty: no textarea, no checkbox or else.

     

    I reviewed all categories.php and I believe I correctly implemented this:

    <td>

              <?php

    // Products Specifications

          require (DIR_WS_MODULES . FILENAME_PRODUCTS_SPECIFICATIONS_INPUT);

    ?>

    </td>

     

    Could there be any issues with Admin Access with Levels contrib?

    thank you.

  5. You just need to set the $vendors_id globally. If your Admin Access names are stored in a database table, add a vendors_id column to that, then add some code to pull that value and set $vendors_id -- maybe in the session. Then you may need to modify the vendor-specific Admin pages to get that value at the top of the page, and remove any means of selecting a different value on the page.

     

    Regards

    Jim

     

    Jim, thank you for the suggestion. This is definitely the direction. I was actually thinking to replace vendors_id with admin_id (from that specific contrib), but I sense that in your way probably I would need to edit less files, and especially mess less with categories.php.

    On that matter: I noticed that the vendors_id values are pulled from the database with a query, stored into the vendors_array and then pushed into a select. Any suggestion on how to hide the field and replace it with a fixed value input depending on the session? No need to give me the full code, I just a sample to be directed to!

    Thanks again for your time and effort.

  6. Hi all, been working on this great contrib for quite a while now.

    Has anyone ever needed to tie a specifc vendor_id to a product in an automatic way (that is without selecting from the vendor_id drop down menu in the products page)?

     

    If so could anyone point me to the code to look at? My objective is to tie the vendor_id of categories.php to a login_id I'd pull from Admin Access 2.0

    Thanks to anybody who could lead me towards the right direction.

  7. Hi Berthx

    first of all thanks for your contrib.

     

    I have a question, I'm trying to integrate it on my OSC which of course runs STS:

     

     

     

    Unfortunately, when the ajax call happens in product_info.php the result given is not the pictures I'm supposed to retrive but the HTML code of the STS template.

     

    I suppose the two contributions have issues because of this code:

     

        <script language="javascript">
    
    function createRequestObject() {
    
       var req;
    
       if(window.XMLHttpRequest){
    	  req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
    	  req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
    	  req = NULL;
    	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
       }
    
       return req;
    
    }
    
       var http = createRequestObject();
    
       function sendRequestSearch(iets) {
    
          http.open('get', 'ajaximage.php?zoek='+iets);
          http.onreadystatechange = handleResponseSearch;
          http.send(null);
    
       }
    
       function handleResponseSearch() {
    
    
    
    
          if(http.readyState == 4 && http.status == 200){
             if(http.responseText) {
                document.getElementById("zoek_resultaten").innerHTML = http.responseText;
             } else {
                document.getElementById("zoek_resultaten").innerHTML = "   ";
             }
    
          } else {
             document.getElementById("zoek_resultaten").innerHTML = "   ";
          }
    
       }
    
    </script>   

     

     

    Any work around suggested?

     

    workaround posted on contrib's page. Also a better way to handle the httpResponse could be this:

     

    function createRequestObject() {
    
       var req;
    
       if(window.XMLHttpRequest){
    	  req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
    	  req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
    	  req = NULL;
    	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
       }
    
       return req;
    
    }
    
       var http = createRequestObject();
    
       function sendRequestSearch(iets) {
    
          http.open('get', 'ajaximage.php?zoek='+iets);
          http.onreadystatechange = handleResponseSearch;
          http.send(null);
    
       }
    
       function handleResponseSearch() {
    
    
    
    
          if(http.readyState == 4 && http.status == 200){
             if(http.responseText) {
                document.getElementById("zoek_resultaten").innerHTML = http.responseText;
             } else {
                document.getElementById("zoek_resultaten").innerHTML = "   ";
             }
    
          } else {
             document.getElementById("zoek_resultaten").innerHTML = "   ";
          }
    
       }
    

  8. Hey Bill,

    nice to hear from you and thanks for replying (and for the great contrib!)

    Here some more details:

     

    I of course tried to deactivate STS and this way the contrib works perfectly.

    I've checked and the scripts are correctly included or required in the template pages.

     

    The thing is the following: The script calls for an image created in a div. It uses and HttpResponse which instead of giving back the picture alone it also give back also the rough structure of the sts template (the template code with placeholders)..

    what is the contrib you managed to create for attribute pictures?

     

    Thank you so much

     

     

    wooops! No worries, the workaround you gave me was perfect, thanks for helping me out!

  9. I actually created my own options as images add-on and it works perfectly with STS. I don't see any reason why the one you are using would have any issues other than that contribution not being coded correctly to meet osC standards. If you are not using a content template for your product info pages, then STS would pick up the content changes you made in your standard product_info.php page automatically.

     

    Here are some things to look into:

    1. Be sure you are calling the JavaScript needed in your template pages
    2. Be sure the Ajax add-on is working with STS turned off first
    3. You could look into not having STS template any pages created by this add-on (See Below).

    How to exclude a page from being templated in STSv4.5.x:

     

    In the sts_default.php file, find the following code:

     

     

    if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart"))
             return ''; // We don't use template for these scripts

    Add your php file that you want STS to exclude and it will not template that file. Note: Add the script name as follows:

     

     

    if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "your_script_here")|| strstr($scriptbasename, "info_shopping_cart"))
             return ''; // We don't use template for these scripts

     

     

    Hope this helped,

     

    Hey Bill,

    nice to hear from you and thanks for replying (and for the great contrib!)

    Here some more details:

     

    I of course tried to deactivate STS and this way the contrib works perfectly.

    I've checked and the scripts are correctly included or required in the template pages.

     

    The thing is the following: The script calls for an image created in a div. It uses and HttpResponse which instead of giving back the picture alone it also give back also the rough structure of the sts template (the template code with placeholders)..

    what is the contrib you managed to create for attribute pictures?

     

    Thank you so much

  10. I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

    Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

     

    - Luc

    .... :)

    You're wrong...

     

    STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

     

    You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

    Content Outside OSC

     

     

     

    Now, would somebody answer also my question please? :)

  11. Hi all,

     

    I have a question, I'm trying to integrate the following contrib on my OSC which of course runs STS:

    Ajax attributes images

     

    What it does is simply linking an option to a an image, so that by slecting the corresponding option you can see a corresponding image in realtime.

     

    Unfortunately, when the ajax call happens in product_info.php the result given is not the content I'm supposed to retrive but the HTML code of the STS template.

     

    I suppose the two contributions have issues because of this code:

     

        <script language="javascript">
    
    function createRequestObject() {
    
       var req;
    
       if(window.XMLHttpRequest){
    	  req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
    	  req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
    	  req = NULL;
    	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
       }
    
       return req;
    
    }
    
       var http = createRequestObject();
    
       function sendRequestSearch(iets) {
    
          http.open('get', 'ajaximage.php?zoek='+iets);
          http.onreadystatechange = handleResponseSearch;
          http.send(null);
    
       }
    
       function handleResponseSearch() {
    
    
    
    
          if(http.readyState == 4 && http.status == 200){
             if(http.responseText) {
                document.getElementById("zoek_resultaten").innerHTML = http.responseText;
             } else {
                document.getElementById("zoek_resultaten").innerHTML = "   ";
             }
    
          } else {
             document.getElementById("zoek_resultaten").innerHTML = "   ";
          }
    
       }
    
    </script>   

     

     

    Any work around suggested?

     

    thanks!

  12. Hello All,

     

    I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

    http://www.nasawear.com/apparel.php

    When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

    Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

    Thanks,

    -Luc

     

    Well, first of all why have you got a file in oscommerce called appareal.php?

    My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

  13. Hi Bill,

    first of all thanks for all your great work in the community (been using lots of code from you in the past years).

     

    I have a question, I'm trying to integrate the following contrib on my OSC which of course runs STS:

    Ajax attributes images

     

    What it does is simply linking an option to a an image, so that by slecting the corresponding option you can see a corresponding image in realtime.

     

    Unfortunately, when the ajax call happens in product_info.php the result given is not the content I'm supposed to retrive but the HTML code of the STS template.

     

    I suppose the two contributions have issues because of this code:

     

        <script language="javascript">
    
    function createRequestObject() {
    
       var req;
    
       if(window.XMLHttpRequest){
    	  req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
    	  req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
    	  req = NULL;
    	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
       }
    
       return req;
    
    }
    
       var http = createRequestObject();
    
       function sendRequestSearch(iets) {
    
          http.open('get', 'ajaximage.php?zoek='+iets);
          http.onreadystatechange = handleResponseSearch;
          http.send(null);
    
       }
    
       function handleResponseSearch() {
    
    
    
    
          if(http.readyState == 4 && http.status == 200){
             if(http.responseText) {
                document.getElementById("zoek_resultaten").innerHTML = http.responseText;
             } else {
                document.getElementById("zoek_resultaten").innerHTML = "   ";
             }
    
          } else {
             document.getElementById("zoek_resultaten").innerHTML = "   ";
          }
    
       }
    
    </script>   

     

     

    Any work around suggested?

     

    thanks!

  14. Hi Berthx

    first of all thanks for your contrib.

     

    I have a question, I'm trying to integrate it on my OSC which of course runs STS:

     

     

     

    Unfortunately, when the ajax call happens in product_info.php the result given is not the pictures I'm supposed to retrive but the HTML code of the STS template.

     

    I suppose the two contributions have issues because of this code:

     

        <script language="javascript">
    
    function createRequestObject() {
    
       var req;
    
       if(window.XMLHttpRequest){
    	  req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
    	  req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
    	  req = NULL;
    	  alert('Probleem met het aanmaken van hetXMLHttpRequest object');
       }
    
       return req;
    
    }
    
       var http = createRequestObject();
    
       function sendRequestSearch(iets) {
    
          http.open('get', 'ajaximage.php?zoek='+iets);
          http.onreadystatechange = handleResponseSearch;
          http.send(null);
    
       }
    
       function handleResponseSearch() {
    
    
    
    
          if(http.readyState == 4 && http.status == 200){
             if(http.responseText) {
                document.getElementById("zoek_resultaten").innerHTML = http.responseText;
             } else {
                document.getElementById("zoek_resultaten").innerHTML = "   ";
             }
    
          } else {
             document.getElementById("zoek_resultaten").innerHTML = "   ";
          }
    
       }
    
    </script>   

     

     

    Any work around suggested?

  15. I take your word for it that this works. Assuming that you can make an array first with all those countries: $country_cg_3 = array(204,106,344,102); and then

     

    if (in_array($country, $country_cg_3)) { 
     $sql_data_array['customers_group_id'] = '3'; 
    }
    

    Thank you Jan,

    perfect help. I also confirm you that the previous snipped code works and also successfully get's imported in a Vtiger / OSC bridge we're working on.

    Take care,

    francesco

  16. Ok some updates:

    I figured, by using other snippets of code, how to make it so that a user coming from a specific country (say id 204, switzerland) can be assigned to a specific group.

     

    // put everybody in group

     

    if ($country == 204) $sql_data_array['customers_group_id'] = '3';

     

     

    But, how can I associate more than a country to a specific group without setting it manually?

  17. Hi All,

    and most importantly hi Jan.

    First of all thanks for taking care of this contribution, I've been running it for a year now and had multiple occasions to search thru the assistance you provided on this forums during years! amazing.

    This time it's unfortunately my turn.

     

    I'm trying to figure out a good way to create an "auto-assign to group" scheme, on which upon registration the user gets assigned automatically based on his country of origin. The currency issue wouldn't be a problem as the currency for my customers would be just the same.

    I searched through the forum and I could find two "hints" on the matter, HERE and HERE

     

    Here's what I don't get: In Loadmaster's code I do not understand where is the actual action of assigning the user to a group and how could this code be linked to a country of origin instead of a pre-defined value set on top of create_account.php

     

    can you assist?

    thank you

  18. Goeffry,

    didn't want to criticize the present work or anything.

    I'm perfectly happy as well in having this solution. It would be worse in not having.

    But I think that many people in here have got customers that at least once have been requesting this kind of feature.

    I think that the next level of PEF EP would really be a joint update, saving a lot of work by doing this.

    I was here to start a dialogue over the intrest of evolving or not and already good product. Surely I don't have lots of PHP skills, but I would gladly do my part to help.

  19. Hi All,

    I was wondering: has somebody of you come out with a way to upload with just ONE excel file both normal products field and extra fields?

     

    I know that usually we all use easy populate & products extra fields together, but uploading 2 different excel files with only the product model in common it gets kind of tricky expecially for unexperienced endusers.

     

    I had a look around on google, and found this post dated 2007 from a Zen Cart developer, that modified from scratch the DB to host another extra product field and then modified an old easy populate version to be used to upload every data with only a single file.

    Basically, no product extra fields needed.

     

    Here are the links; do you think this kind of patch is appliable to oscommerce as well?

     

    ADDING PRODUCT FIELD: http://anekostudios.com/2007/04/25/my-first-zencart-tip/9/

     

    EASYPOPULATE MOD: http://anekostudios.com/2007/05/01/editing-easy-populate/

  20. Hi I have the exact same problem is it something I'm missing or a coding problem. IE7 (and I thought it was a general coding rule) does not allow nested forms.

     

    Hi, I have the same problem too. As far as I got there is another contrib -CCGV (trad)- that has become the official one, where latest relase has this bug fixed.

    The problem is that nobody explains there how to update from different CCGV versions (I use 5.19 too). The only reference I found was related to CCGV 5.10c stated to be the only one working fully.

    I downloaded it but I wasn't able to find out the hack to avoid nested forms.

     

    Vger, the author of the contrib could help here....

    Anyone else can?

  21. I don't know about worse. v2.76g is the newest and most up to date version that works the base osC shop code. I started correcting v2.76c because the later versions at the time had too many additional contributions clogging it up.

    v2.76g has support for adding product table fields.

     

    I see, i've been downloading and reading your wonderful version's manual.

    Still I need to have one explanation: I understand that if I add a field in the "product" or "products_description" tables EP 2.76g will update those fields in the tables.

    Anyways I'll still have to code those fields inside product_info.php in order to have them on the product info page right?

    And there is no contribution that actually adds extra fields directly in the products or products_description table am i correct?

     

    Sorry for bothering but I'm really willing to learn!:)

     

    Thank you!

  22. Ok all,

    here is my question I really don't have and hint after 4 days looking in the forums for a solution.

     

    First of all, this is not my first install of this great contrib.

    This time I just downloaded the structure of OSC i had on one site and decided to adapt it to another. For what concerns OTF-AT I've been re-uploading the product-thumb.php and then ran the sql statements.

     

    When I upload a picture I obtain this wierd issue you can see here:

     

    http://www.libreriaportavenezia.biz/shop/

     

    Images are no resized correctyl and they appear corrupted, like they were in an high jpeg compression (but compression is set to 70). I don't get why one of those picture is working fine since they are all jpeg. No one of them has been uploaded via ftp with the exception of no-image.jpg (but still in binary mode)

    Most importantly, the thumb images generated look like this:

     

    THUMBNAIL_PATHfilename.jpg

     

    What the hell is going on? Can anyone assist here?

     

    Thank you very much.

  23. Some hints, I hope at least this will be useful to people coming up with the same problem.

     

    looks like the issue is related to On the Fly AutoThumbnailer with GD.

    Infact, looks like Autothumb. is not able to generate correctly thumbnailedpics, generating strange name files like: THUMBNAIL_PATHfilename.jpg.

     

    It looks like this belongs to a misconfiguration of some kind of path. I have already double-checked the files but still haven't found it.

×
×
  • Create New...