Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jan 2008
    Posts
    67
    Plugin Contributions
    0

    Default Re: attribute PHP modding question

    I had actually done it like this $options_type[$i] at one point, with the array variable, but it still wasn't working so I tried it other ways. I did eventually find the problem though. It was at the very bottom of attributes.php around line 600, where the dropdown menu is created.

    I had caught the first part of the default case, the dropdown switch to radio button and didn't realize that there was an if/else below it that built the regular dropdown. So I hadn't put a flag in there and it was the cause of the problem. Once I put in a flag it worked flawlessy. Too many hours spent going over and over that page looking for some error.

    I find it funny how it's always the little things I miss, a typo or a semicolon, that can destroy perfectly good code.
    Thanks so much for your assistance!!!

  2. #12
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: attribute PHP modding question

    Welcome to the world of programming :-) Little details can turn the whole apple cart over. And, php is actually pretty tolerant.

    I find, like most programmers I guess, that I end up putting echo statements everywhere when things start going a bit wrong. There are more scientific ways of tracking things down but lots of echo statements through the code works and is quick to do.

    Glad that you got it working.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Modding Stock by Attribute to have SKUs / Model Number
    By flowerchild5 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 Nov 2009, 03:15 AM
  2. Modding an xampp cart - help?
    By Gladys_Pym in forum Installing on a Windows Server
    Replies: 4
    Last Post: 18 May 2007, 09:47 AM
  3. Modding osCommerce File....
    By Eagle75au in forum General Questions
    Replies: 0
    Last Post: 12 May 2007, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg