Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC-Affiliate


henri

Recommended Posts

I've just re-installed it but I'm getting the same error.

 

I don't get it. It should be easy enough, it's not like there are a load of files to modify. The admin section seems to be working just fine. :(

Link to comment
Share on other sites

Hi,

I have not installed this contrib, but intended to ... after reading this thread I have one suggestion. May be one should install this contrib on a fresh osCommerce to test if the problems exsist. I think no one can give you a better advice than yourself. May be there is/are contradiction/s with other contributions???

 

If someone who installed this contrib and worked should give a note in this thread with some hints so that others can experience. That is the spirit of osCommerce... :angry: :( :rolleyes: :D

Link to comment
Share on other sites

Hi,

Can't get banners to show.

 

I know this has been addressed but there is not a fix been submitted for this:

 

<a href="http://www.mysite.com/shop/index.php?ref=1&affiliate_banner_id=10" target="_blank"><img src="http://www.mysite.com/shop//shop/images/banners/oscommerce.gif" border="0" alt="test2"></a>

 

As you can see The image link is comming through as /shop//shop/ .

 

I have my store in a sub directory called "shop"

I have set my configure.php to reflect this.

Everything in the store work fine except the banners not showing.

I have installed all the mods the forum has sugested.

i have tried various combinations in the affiliate_configere.php.

 

I have set the affiliate_configere.php to 1 in the define('AFFILIATE_KIND_OF_BANNERS','1'); so I can check the path, as suggested by the forum.

 

My configure.php looks like this:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mysite.com');

define('HTTPS_SERVER', 'https://www.mysite.com');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'https://www.mysite.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', '/shop/images/');

define('DIR_WS_ICONS', '/shop/icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

If i take out the "shop" from:

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

or

define('DIR_WS_IMAGES', '/shop/images/');

 

The banners show up just fine but other graphics in the store stop working.

 

Can anyone help?

 

Regards

Glenn

Link to comment
Share on other sites

Hi Glen.

 

 

In affiliate_configure.php change this line:

 

 

define('DIR_WS_IMAGES', '/shop/images/');

 

 

to:

 

define('DIR_WS_IMAGES', '/images/');

 

 

That should work.

Link to comment
Share on other sites

Hi, I searched through this thread but got to about the 20th page and decided to just post my question. I have OSCaffiliate installed and whenever someone tries to input their information and click the continue button it just brings them back to the affiliate_signup page. Any ideas or suggestions?

 

btw, is there a way to specify certain products can earn a commission and others have no commission?

Link to comment
Share on other sites

I have gotten almost everything to work (of course haven't tried BANNERS yet) but I am getting an error I can't track down.

 

When you sign up for an affiliate account and submit the form info I get:

1044 - Access denied for user: 'zurichla_p_os1@localhost' to database 'zurichla_p_os1'

 

LOCK TABLES affiliate_affiliate WRITE

 

[TEP STOP]

 

I thought it might be the SSL being blocked but that wasn't the problem.

I did go into the db directly and enter info as an affiliate and I was able to view all the ADMIN stuff and even log into my affiliate account.

 

Can anyone think of a reason this is happening? :unsure:

 

Thanks!

Link to comment
Share on other sites

1044 - Access denied for user: 'zurichla_p_os1@localhost' to database 'zurichla_p_os1'

 

This usually means that your database username is wrong.

Link to comment
Share on other sites

When you sign up for an affiliate account and submit the form info I get:

1044 - Access denied for user: 'zurichla_p_os1@localhost' to database 'zurichla_p_os1'

 

LOCK TABLES affiliate_affiliate WRITE

 

[TEP STOP]

 

I had the same problem and found two solutions right here:

 

http://www.oscommerce.com/forums/index.php?sho...=0entry291440

 

(BTW, it has nothing to do with your DB name, it has to do with your MySQL privs)

Link to comment
Share on other sites

When you sign up for an affiliate account and submit the form info I get:

1044 - Access denied for user: 'zurichla_p_os1@localhost' to database 'zurichla_p_os1'

 

LOCK TABLES affiliate_affiliate WRITE

 

[TEP STOP]

 

I had the same problem and found two solutions right here:

 

http://www.oscommerce.com/forums/index.php?sho...=0entry291440

 

(BTW, it has nothing to do with your DB name, it has to do with your MySQL privs)

THANK YOU!!!

 

While this particular site host didn't have a very current version of PHPMyADMIN the second "comment it out" solution worked.

 

I don't recommend IPOWERWEB for site hosting for more than this one reason. But this would be enough for me.

 

Thanks folks!!

Link to comment
Share on other sites

I have installed this on a test osCommerce we loaded on our server to test this script. Worked awesome.

 

So, I installed the script on our actual website, and hasn't been working that great. Admin is ok, and affiliate side is so so.

 

I have read through about 90 pages of this post, and haven't really read the solution.

 

I was able to get images to show by setting the affiliate_configure.php in the banners area. But the 'Build a Link' will not show them. and has a URL of

http://www.site.com/shop/images/ " - and that's it. No banner name.

 

define('AFFILIATE_KIND_OF_BANNERS','1');

 

If I set it to '2', then the banner name comes up, but no image. I ran the debug, but don't see anything out of the ordinary.

Check the pathes! (catalog/includes/configure.php) 
absolute path to picture: /home/httpd/vhosts/SITE.com/httpdocs/shop/images/Banner01.gif 
build with: DIR_FS_CATALOG . DIR_WS_IMAGES . $banner 
DIR_FS_CATALOG /home/httpd/vhosts/SITE.com/httpdocs/shop/ 
DIR_WS_CATALOG / 
DIR_WS_IMAGES images/ 
$banner Banner01.gif 
SQL-Query used: select affiliate_banners_image, affiliate_products_id from affiliate_banners where affiliate_banners_id = '8' and affiliate_status = 1 
Try to find error:   
SQL-Query: Got Result 
Locating Pic /home/httpd/vhosts/SITE.com/httpdocs/shop//images/Banner01.gif
success

 

I have unistalled, reinstalled. Nothing. Any help would be greatly appreciated, Thanks

Link to comment
Share on other sites

Locating Pic /home/httpd/vhosts/SITE.com/httpdocs/shop//images/Banner01.gif

 

It has double back slashes at the "shop//images". Try removing the "DIR_WS_CATALOG" that you added in the file and see if it works. Leave the kind of banners to 2.

 

If that doesn't work, you will need to change the if (prod_id < 1) code in one of the files. I can't quiet remember which files and what the exact if statement was but it is in this thread somewhere.

 

3rd thing, do you have ssl on your site? For some banners, affiliate_banner_*.php uses a secure link. You can change that buy going through the code and looking for $link or $link1 or $link2 and choosing the non ssl one. You will see what I mean once you look in the 4 affiliate_banner_*.php files. If you have ssl working properly, then no need to worry about it. My only point is, if the site is a test site without ssl set up, then you will have problems when it is trying to use a secure link. Just change the images to non ssl and if that is the case.

Edited by safoo
Link to comment
Share on other sites

Well, after messing with a little more, I still haven't been able to get to work. I totally removed deverything, and still can't get it with stock files.

 

I am using SSL on the site, and works fine with osC, but isn't there a way to not even use that at all for oscaffiliate?

 

Now I receive

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/SITE.com/httpsdocs/shop/affiliate_signup.php on line 19

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/SITE.com/httpsdocs/shop/affiliate_signup.php on line 19

Fatal error: Failed opening required 'includes/languages/english/FILENAME_AFFILIATE_SIGNUP' (include_path='.:/php/includes:/usr/share/php') in /home/httpd/vhosts/SITE.com/httpsdocs/shop/affiliate_signup.php on line 19

 

Line 19

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_AFFILIATE_SIGNUP);

 

I have loaded everything into the http & https sides of the server. So it's the exact same thing across secure and non-secure. I just want to eliminate the SSL all together for this almost.

 

Anyways, I'll work on it a little more, and if I don't get it, I'll just axe the whole thing. Thanks for your help.

Link to comment
Share on other sites

Im wondering if anyone has had the issue of when someone goes to osc using the affiliate id and makes a purchase The affiliate commision info doesnt show up in the admin. I would appreciate any help as i need to finish this cart asap. ;-)

Link to comment
Share on other sites

Hi

 

i have installed OSC-affiliate and all seem work good but...

when i pretend to be an affiliate and i follow the link that is in my welcome email (going to affiliate_affiliate.php)...i try to enter in my accunt but i can't.

I have this error:

 

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/mysite/httpdocs/originalgifts/affiliate_summary.php on line 108

 

 

where the line 108 is:

  if ($messageStack->size('account') > 0) {

 

Anybody can explain where i'm wrong?

Link to comment
Share on other sites

I just installed the newest version of affiliates. When I sign in and try to build a link I get this

 

Affiliate Program - Product Links 

Choose the product you want to display on your website from the choices below:

 

But there are no choices showing. The banner link and text link work perfectly but neither of the product links work. On the other product link where you enter a product number, it displays 2 boxes where code should be but they are both empty.

Keith

 

 

What the hell was I thinkin'?

Link to comment
Share on other sites

Hey,

Just installed the newest version. My problem is pretty weird, when installed. I go to visit my mainpage and I get nothing but a blank, white screen When I comment out the changes I made to the few oscommerce files that you're supposed to edit, the problems disappear and everything runs fine.

 

Any ideas?

Link to comment
Share on other sites

I just installed the newest version of affiliates. When I sign in and try to build a link I get this

 

Affiliate Program - Product Links?

Choose the product you want to display on your website from the choices below:

 

But there are no choices showing. The banner link and text link work perfectly but neither of the product links work. On the other product link where you enter a product number, it displays 2 boxes where code should be but they are both empty.

I got the Affiliate Program - Build a Link to work but the Products Links still isn't working.

Keith

 

 

What the hell was I thinkin'?

Link to comment
Share on other sites

I have installed everything as it says in install, but when I enter in my administration he appears to me this in the section of Affiliate:

 

Access Denied 

 

No Right Permission Access

Please contact your Web Administrator to request

more access or if you found any problem.

 

As I solve it?

Thnx ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...