Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dehuszar

Archived
  • Posts

    25
  • Joined

  • Last visited

Profile Information

  • Real Name
    Samuel deHuszar Allen

dehuszar's Achievements

  1. I did a quick search through the forums and couldn't find what I was looking for, my apologize if this has been covered and I missed it, but I'm wondering if someone's figured out a quick and dirty way to have inventory items with QTPro attributes be marked as out of stock when people are selecting attributes (i.e. from the dropdown menu, before they are in the cart)? I know I can have out of stock items not display depending on the selection plugin I use, but it'd be nice to have some dynamic text to put on the product pages. Either way, how would one phrase in PHP a request to the database for attribute combinations so I can play around with a few options? The shop in question will sell T-Shirts and want to perhaps display the available quantities of Shirt A in blue, in sizes S, M, or L.
  2. So far so good. I'll have to replace all my links with this method... which is a bit of a pain. But overall less of a pain than it not working. :) Note to all who aren't php geniuses. When using these tep_href_link php anchors with javascript (like mouseovers etc.) be sure to use escape characters where javascript requires single quotes. An example from the site I'm working on.... <?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=29') . '" onmouseover="changeImages(\'nav_longsleeve\', \'images/nav_longsleeve-over.gif\'); return true;" onmouseout="changeImages(\'nav_longsleeve\', \'images/nav_longsleeve.gif\'); return true;"><img src="images/nav_longsleeve.gif" alt="Long Sleeve Tees" name="nav_longsleeve" width="143" height="24" border="0"></a></p>'; ?> If you notice the backslashes before the single quotes, those are necessary, otherwise the php parser will think you are closing the string statement. The JavaScript parser will then get really confused and not behave properly. Just a heads up. Also, I thought I'd quickly bump one of my previously unanswered question. I hope no one minds... If I wanted to layout the $content materials for all of the account_edit, account_history, account_newsletters, etc. so that it adheres to custom css, would I have to go through and manually make $variables for each field and each piece of text in each of those pages? If so, has anyone done this already? If yes, can they share their sts_user_code.php? I'd hate to reinvent this particular wheel. I know from previous responses that they'd end up in the /content/ folder, I just want to make sure I know what I have to do before I start trying to move mountains. Thanks again for everyone's help. Sam
  3. Scratch that.... just found it. For anyone else interested, here is the link: http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/252 With that out of the way, isn't there a security issue with putting the SESSIONID in the link? Or is it just for the server-side processing. I just don't want SessionIDs being bookmarked for a lot of obvious reasons. Also, the article states that the tep_href_link statement must be in <?php ... ?> brackets. Which of course means the file must be a .php file. Will this be an issue putting such links into an html template meant for STS, or will the php code be metabolized properly once the resultant page is rendered by the server? I don't know if this is where Becki is getting stuck, but I'm certainly not sure what the best way forward is. I'll certainly experiment, but I don't want to assume I'm doing this safely and securely just because it works (assuming it will). Sam
  4. bkellum, can you hint at what knowledgebase article this is discussed? I've rummaged through a bunch after using the search criteria of SESSION, LINKS, COOKIES, and SSL, but haven't come across an explanation of or reference to the syntax you use above. I think this might help me with my issues where using explicit product links causes the sessionID to disappear. Super thanks in advance, Sam
  5. Am I correct in thinking that I will have to go through the relevant php files and make custom $variables in my sts_usercode.php for all of the fields and generated content from each of those source php files? If so, has anyone done this already for the account management pages? I'd hate to reinvent this particular wheel. Also, the manual only refers to using the /content/ folder for product pages. If you can use it for pages other than product pages, then that's not entirely clear from reading the manual (though great news) and should be updated in the next revision of the manual. Thanks in advance, Sam
  6. I'm not being clear. My apologies. When creating a new user, or going to the account page, the text is pulled from an includes/languages/english/account.php or some such file. Inside the php file, the text is easily editable, but what I can't figure out is how to keep it from rendering in an awful unmanageable table. Is there a contribution that manages those tables into clean CSS friendly divs and classes? Is there an STS trick? Or do I have to do that manually? What have other people done? Thanks in advance, Sam
  7. As my client has requested, I am beginning to customize the material that makes up the $content variable contents. But the php files which cobble the data together are a mess in terms of presentation and styling. Is there a way that STS'ers have tackled this? Is there a clean way to do it without mucking around with the actual php files? ...an additional contribution perhaps? Thanks in advance, Sam
  8. bk! That's exactly what I needed to hear (errr- read). Now I have "actionable intelligence." Sam
  9. Mid December, I made a post about about the shopping cart not retaining product selections beyond the product currently selected (meaning, I select one item, and I can check out, I "Continue Shopping" and select a new item, only the new item shows up in the shopping cart). Turning off STS caused that behavior to stop leading some to believe that there was a problem with the mixing of contributions. But then I did something obvious, which I should have tested from the start. Setting the template to the "test" or "full" demo templates. It appears, that using the demo templates, the shopping cart behaves as it should. So logically, it would then appear that the issue lies in the way my templates are built. For the product pages, my clients gave me very customized pages to fit to the osC backend, so I didn't want to use the $content variable as the product pages had to look just so... Here's the code for the "Add to Cart" button, and one for "View Cart": <center>$addtocartbutton#<a href="shopping_cart.php" title="View your shopping cart"><img src="images/viewcart.gif" alt="View Cart" /></a></center> Can anyone tell me if this may be the problem, and what a possible solution might be? Thanks in advance, Sam
  10. A few quick questions... I this post still current? Does it need to be done for the Website Payments Pro contribution as well? Lastly, if my client has a Website Payments Pro account is the wpp contribution the only PayPal related contrib. I need to use? Thanks in advance, Sam
  11. Since I haven't heard any response, can I safely assume that installing QTPro alongside STS 4.3.3 should work without issue? Did I screw up the installation process anywhere? Can anyone with both installed comment? Thanks in advance, Sam
  12. I am having a bit of trouble which I think is stemming from the use of QTPro and STS4.3 together. When STS is disabled, I'm able to add items to my cart just fine. But with STS ENabled, it can only remember one item at a time. Using the "Continue Shopping" button and adding a new item causes the original cart contents to be forgotten, and the new item to be the only one there. I've already asked around in the STS forum topic. This is the response I got from one of the developers there: Does anyone know what he is referring to? Has anyone dealt with this before? I'd hate to have to reinstall the site from scratch just to see if I screwed up somewhere (certainly a possibility). I'd greatly appreciate any experiences people have had using the two together. The only other contribution on the system is the register_globals contribution, in case that makes a difference. Thanks a bunch in advance, Sam
  13. Super thanks bk, I'll check it out. Incidentally, any thoughts on my previous post...?? Thanks for such quick responses all around. This place is great! Sam
  14. TracyS, forgive the tone of that last post... I was typing quickly & not thinking that it might read as being curt. The intended question was, which contribution would you or anyone else recommend for adding pages? Sam
×
×
  • Create New...