Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bobvin

Archived
  • Posts

    45
  • Joined

  • Last visited

Profile Information

bobvin's Achievements

  1. When somebody pays me to do so, I will. If somebody else writes them, I'll gladly accept patches. Otherwise, I'm not so bored that I'm willing to write stuff for free. See, I'm one of the bad guys. I write this stuff for a living. (Though I probably got paid more per month working at 7-11.) Question is, do they want it badly enough to
  2. includes/header.php. Here's the relevant part of the .diff file: diff -ur catalog-base/includes/header.php catalog-branding/includes/header.php --- catalog-base/includes/header.php 2003-03-13 22:34:26.000000000 -0500 +++ catalog-branding/includes/header.php 2003-04-29 19:17:14.000000000 -0400 @@ -50,7 +50,7 @@ ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> - <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> + <td valign="middle"><?php echo '<a href="' . AFFILIATE_HOMEPAGE . '">' . tep_image(AFFILIATE_HEADER_IMAGE, AFFILIATE_COMPANY) . '</a>'; ?></td> Yup. From affiliate_application_top.php: if ($affiliate_ref == 0) { define('AFFILIATE_ID',0); define('AFFILIATE_GENDER',0); define('AFFILIATE_FIRSTNAME',''); define('AFFILIATE_LASTNAME',''); define('AFFILIATE_DOB',''); define('AFFILIATE_EMAIL_ADDRESS',''); define('AFFILIATE_TELEPHONE',''); define('AFFILIATE_FAX',''); define('AFFILIATE_PASSWORD',''); define('AFFILIATE_HOMEPAGE',FILENAME_DEFAULT); define('AFFILIATE_HEADER_IMAGE',DIR_WS_IMAGES . 'oscommerce.gif'); define('AFFILIATE_STREET_ADDRESS',''); define('AFFILIATE_SUBURB',''); define('AFFILIATE_CITY',''); define('AFFILIATE_POSTCODE',''); define('AFFILIATE_STATE',''); define('AFFILIATE_COUNTRY_ID',''); define('AFFILIATE_ZONE_ID',''); define('AFFILIATE_AGB',0); define('AFFILIATE_COMPANY','VDS_NAME'); define('AFFILIATE_COMPANY_TAXID',''); define('AFFILIATE_COMMISSION_PERCENT',0); define('AFFILIATE_PAYMENT_CHECK',''); define('AFFILIATE_PAYMENT_PAYPAL',''); define('AFFILIATE_PAYMENT_BANK_NAME',''); define('AFFILIATE_PAYMENT_BANK_BRANCH_NUMBER',''); define('AFFILIATE_PAYMENT_BANK_SWIFT_CODE',''); define('AFFILIATE_PAYMENT_BANK_ACCOUNT_NAME',''); define('AFFILIATE_PAYMENT_BANK_ACCOUNT_NUMBER',''); define('AFFILIATE_DATE_OF_LAST_LOGON',''); define('AFFILIATE_NUMBER_OF_LOGONS',0); define('AFFILIATE_DATE_ACCOUNT_CREATED',''); define('AFFILIATE_DATE_ACCOUNT_LAST_MODIFIED',''); }
  3. You should be able to enter /images/logobanner.jpg but the full URL should work as well. Hmm... That DID work before; lemme test the current code real quick... Well, it worked when I put in a full URL. See http://shop.pillars.net/default.php?ref=11 Now I'm going to change it to a relative one... Yup, that one works, too. See http://shop.pillars.net/default.php?ref=12 So I dunno. Did you check your Apache error log?
  4. It has to be a valid (relative or absolute) url. Sometime in the future I hope to provide for uploading a logo pic, but for now I took the easy way out. Mmmm... Logging in as an affiliate is not the same as logging in as a customer of an affiliate. Affiliates are "customers" of the main store, I guess. Though I imagine somebody will figure out how to make affiliates customers of other affiliates, and we'll have a full-blown web-enabled multi-level marketing product ready for rollout. (Yuck!) For now, the logo only changes when you log in as the customer. Maybe that will change someday...
  5. ... ... Okay, I have a complete tarball at http://pillars.html.com/oscommerce.tar.gz, but I warn you that it is customized for my particular situation. It is based on a recent CVS checkout from tep.sourceforge.net, with the following mods installed, in order: [*]oscaffiliate [*]admin_login [*]sid_killer [*]dbmtce [*]paypalipn [*]easypopulate [*]upc [*]shipping_insurance [*]ot_fixed_pay_chg [*]affiliate_branding Caveats: [*]There is no INSTALL document. [*]Catalog is in /usr/local/oscommerce [*]Admin is in /usr/local/oscommerce/admin [*](some) docs are in /usr/local/oscommerce/doc [*]The usr/local/oscommerce/install directory is protected by .htaccess file; the corresponding .htpasswd file is missing.
  6. Sorry; that's an artifact of the way I package things for HTML.COM. I have an install script that replaces the following text: VDS_NAME VDS_HOST VDS_IP VDS_ALIAS VDS_USER VDS_PASS The abbreviation "VDS" stands for "Virtual Domain Server" and refers to a hosting situation where you appear to have control of the whole computer (which is simultaneously serving Web, FTP, Mail, and DNS) but actually you're sharing it with other customers who have the same set-up. Hope that helps...
  7. Uploaded a new snapshot today. From the changelog: 2003-04-29 18:28 Incorporated changes made by Sean Cherven's "Display the Affiliates URL v2.0a" mod dated 4/25/2003
  8. [*]Did you do a clean (new) install, or did you patch an existing osCommerce installation? (I haven't written patch instructions yet) [*]Did you specify a URL for your banner image when you signed up as an affiliate?
  9. If you use the admin_login mod, admins will be able to access everything but affiliate_products.php and affiliates will only be able to access affiliate_products.php. (sigh) I should put that into the FAQ and also on the downloads page. See my response below.
  10. Yeah, I thought about that. If the customer (who paid me to write this mod) requests, I'll reverse the logic so that products in the main inventory automatically show up in the affiliates' inventory unless deliberately excluded. Personally, I use the admin_login mod. Because a customer of mine paid me to do it. (okay, so that isn't a good answer) At the possible risk of getting into trouble for disclosing too much information before their store is ready: This person wants to build a store that is sort-of a cross between amazon.com and igive.com. Each affiliate would sponsor their favorite charity, and select books for their inventory which would be attractive to supporters of their charity organization. For instance, a supporter of the National Cancer Foundation might select medical books and health-related books. A PETA supporter would be more interested in pet-care guides.
  11. Hi, jaysin; ... Hmm... I wonder how the other links work, then.... Will look into when I find time, but don't hold your breath. If you figure something out please let me know and I'll roll it into the next version. Of course, as I pointed out earlier, the RIGHT THING is to move the affiliate_products.php file into the catalog section instead of leaving it in the admin section. But I was browsing through the TODO list for osCommerce, and it says they're going to merge the admin and catalog sections by Milestone 3 (YAAY!!!!) so meanwhile I'm probably gonna just sit on my duff. (BOOO!!!!) Thanks for taking an interest, though. I'll probably merge Cherven's patches and do another upload tomorrow.
  12. Are you sure? (checking...) Well, it isn't in my copy. (checking again...) Nor in the last version I uploaded. If I am not mistaken, that statement should be require('includes/application_top.php');
  13. Are you sure? (checking...) Well, it isn't in my copy. (checking again...) Nor in the last version I uploaded. If I am not mistaken, that statement should be require('includes/application_top.php');
  14. Sean Cherven was kind enough to point out an error I had made in one of the language-specific files, plus I had made the beginnings of a FAQ, so I uploaded a new version today. Alas, as soon as I had uploaded, I noticed the additional change_header.zip file that Cherven had posted, which fixes the problem that Jaysin pointed out earlier. I'll add change_header.zip into the next update; I don't want to do more than one a day. Meanwhile, does anybody else have any fixes they want me to add in? (I guess I should add a WISHLIST and TODO as well as a FAQ)
  15. Yeah, that's a known problem. I was lazy. Needed the affiliate to be able to turn on/off products just like the admin does in the categories.php file. But the affiliate logs in through the catalog section and the admin logs in through the admin section. So instead of figuring out how to duplicate the functionality of the categories.php file within the (slightly different) environment of the catalog section, I performed an unwholesome hack. I jury-rigged things so that the affiliate can cross-over to the admin section just for that one function. This is not the RIGHT WAY to do things. Probably introduces security vulnerabilities; I don't know. But it has the undeniable advantage that it works. :) It's possible, but it would make a bad hack even worse. Thanks for the support, but are you just buttering me up so I will help you? ;)
×
×
  • Create New...