Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nacman

Archived
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Real Name
    Nacman

Nacman's Achievements

  1. I did get the buttons working :) for product selection numbers, but the when you do a product info, it still draws the previous category table then the product info tabel too. :( Still looking for a solution Nacman
  2. I have a question that I have tried to resolve on my own, but am at a loss as to how to find it and change this behavior I have product info templates turned on, working from the FULL templates directory. If you look at this page; http://creativenestings.com/osc22rc1/catal...ex.php?cPath=22 You will see drawn a nice table layout for the product. When you select a particular product it then loads the product_info.php.html template. I use this template for all product info's. Here is the link to a product info page http://creativenestings.com/osc22rc1/catal...;products_id=81 As you can see it draws the table for the product info "INSIDE" the previous category table. I don't want that top table showing up, especially now that I have the buttons to select how many products get displayed on the category pages. How do I get the top table to not be included in the Product info page. Trust me, I did not draw it in the product_info.php.html file. Heeeeeeeelp :) Nac
  3. After a lot of hair pulling out, thinking I was losing my mind, I decided to change from using an image for the submit buttons, back to the way it was originally. <input type="image" src="images/site/2.gif" name="2" value="2"> DOESN"T WORK IN IE7 if you use and image type as a submit button, it doesn't submit the values!!! If you change it to <input type="submit" name="1" value="1" > ALL works again, albeit with big buttons. I have confirmed this is a BUG in IE7 only.... Have a try now :) Nacman
  4. Funny thing Bill, I just got to work, I work nights, so I didn't have a chance to post earlier. This worked PERFECTLY in both IE7 and FF browsers till this morning. Now it STILL works in FF but not in IE7 anymore. What is even crazier, is it doesn't work in ANY IE7 browser anymore. I just tried here at work, and it doesn't work here either, but FF works here as well. I am using session_start() and $_session to get at the user selected input. For the life of me, I can't understand why it worked yesterday in IE7 but not today, but continues to work in FF. If you or anyone reads this, can they verify FF handling this.......and if anyone can offer any ideas as to why the session writes aren't happening in IE7 all of a sudden, please post here. Always something to learn :) Nacman
  5. I am sure you edited index.php.html locally, made chaanges you wanted to see in your root page, then uploaded? Silly question but, if you did, it should have worked. Did you set the template folder to FULL or TEST in admin? Nac
  6. Hi everyone, I have been slowly learning STS and wanted to report on something I have been working on. The store owner requested I make the number of products displayed in her website be selectable by the visitor. My initial thought was to just do an SQL update based on the amount the user wanted to display. DOH! I quickly realized this would change it for everyone, then envisioned "display war" if the site ever got busy. So then I went about modifying the variable that reads the database for that info. This is what I have come up with so far... This makes no database changes, it just ignores what is set in ADMIN and lets the user decide. Every user gets their own choice too. Initially it is set to 12 products on the page. http://creativenestings.com/osc22rc1/catal...ex.php?cPath=22 I have it set up for only this category. I am in the final testing stages looking for bugs. If all goes well I will add it to the rest of my site and then put it up in a contrib. Since I am a NOOB at php and STS, I am sure there is a better way to implement this but currently it requires php code (less than 5 lines) to be placed at the beggining of each template file you use i.e. ***.php.html and modification of product_listing.php with a replacement variable. You will of course have to build the FORM and SUBMIT buttons to suit your needs. This is totally customizable if it proves to not be buggy. Remember this is ONLY working for the one catagory for now. Feedback appreciated. Nacman
  7. That did the trick. AWESOME. What I love most about STS is the ability to take whatever formating you want and mark it up in your HTML editor of choice and then paste it (carefully) into the php file handling output. I learned quick about using a possessive form of a word though. Like "Item's", you need to preceed the apostrophe with a leading \ to keep parsing errors from cropping up. Thanks again. I am sure I will have more questions as I delve deeper into this. Nacman
  8. Sorry for all the spelling errors, it wouldn't let me edit it a second time...this time. Typing in the dark is hard to do....Wife is sleeping next to me. Nac
  9. No sir they work fine :), They reason I want to test for them, as you say, if they don't hae a value they don't display. I have built a a table inside that has those variables in it, but the table is empty looking obviously when those variable are empty, so by testing if they are empty, I can "spruce" up the drawn table with something else. It would be better to visit these two pages to see the difference. Here is a product that has options for color and the table looks "busy" http://creativenestings.com/osc22rc1/catal...;products_id=35 Here is a product that has no options, and the table needs some "sprucing" up as it is basically blank http://creativenestings.com/osc22rc1/catal...;products_id=43 I just want to be able to put some text in that box for product where there is no options available for it. The variables work perfect....I just want to create html code for them if the are empty. I hope that better explains what I want to do. I am trying to use ONE template, as I know I could build individual templates for each product, but would prefer to use a default one for all products. Thanks sir. Nacman p.s. I have rang your bell enough, you've got paypal :)
  10. Help with a NOOB!!! to PHP and noob to STS too. Here is a code snippet of product_info.php.html that i am trying to get to do something <table border="0" cellpadding="3" cellspacing="0" width="98%" id="table50" height="154"> <tbody> <tr> <td valign="top"> Please select from the option(s) available below that are available for this Item. <p style="margin-top: 0; margin-bottom: 0"> <p style="margin-top: 0; margin-bottom: 0"> <b>$optionheader$</b><p style="margin-top: 0; margin-bottom: 0"> <table border="0" id="table51" width="316"> <tbody> <tr> <td> <p align="center" style="margin-top: 0; margin-bottom: 0"><b>$optionnames$ </b><font size="4"> </font> </td> <td> <p align="center" style="margin-top: 0; margin-bottom: 0">$optionchoices$<font size="4"> </font> </td> </tr> </tbody> </table> </td> </tr> </tbody> What I am trying to do is test to see if the STS variable $optionnames$ has a value in it. I think (again noob!) that this $template_pinfo['optionnames'] is REALLY what needs to be tested, but I could be way wrong too. I got that from sts_debug output. What I want to do is simple enough I just don't know php enough to test for the value correctly. if the variable is empty, meaning I didn't assign a option or value to the option I would like to execute some HTML and skip some other if the variable is not empty, meaning I assigned an option to the product then I want to execute some other HTML. I have tried NULL testing, empty(), ==, but I know I am not doing it right. Sometimes I get parse errors, sometimes I get some output but the logic doesn't work cause I get the same output whether I have an option set or not. ANy help...Thanks Nacman
  11. I slept on it and woke up remembering sts_debug is my friend! I figured out how to test for $optionnames$, via $template_pinfo['optionnames']. Simple code worked. VIOLA! thanks again For the Contrib. Nacman
  12. Ok, thats good. Will keep me from mucking up other good code.... :) Onto a question. Will $optionnames$ have a NULL value if there is no options for the product in question or will it have another value? Would you suggest a simple IF statement to check for a value of $optionnames$? Any hints how to evaluate this variable? I want to learn so I would prefer to write it myself, but need a little working knowledge of the variable and its data I guess. Thanks Nacman
  13. Hello everyone, Thanks for this awesome time saving contribution. I have a question about testing for a variable. I am building a product_info page with a template. I want to know how and where (which file) I can use php code, and I am a NOOB at php, to test if $optionnames$ has some data in it for that product the page CURRENTLY being created. The purpose of it for me is to load some other text in the "box" for the product options if there aren't any for that particular product. Can I write the code in the template file itself to check for $optionnames$? Any help appreciated. Nacman
  14. Thanks again JanZ....That fixed it. Do you have any ideas why the "add to cart" buttons bring me to product_info instead of just adding it to my infobox cart box on the left of my page. I only want the product_info to come up when they click the pics or the name of the product. I tried changing the action from buy_now to add_product but that messed things up upon return to the product page. Nac
×
×
  • Create New...