Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC-Affiliate


henri

Recommended Posts

Glad to hear it worked out Ryan! Isn't it funny how just the most simple mistep makes you want to pull your hair out? I swear sometimes that it's just dumb luck I ever get anything to work right the first time. :wink:

 

Hope you still have your hair...

 

Regards,

Michelle

 

 

michelle,

 

found the problem, i am such a dork. it wasn't the date, -1 for testing purposes works fine. you actually have to send it first though. doh! thanks.

 

 

i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this?

 

Thanks for all your help

 

Ryan

Link to comment
Share on other sites

Oops, overlooked this part...I'm not sure what module the "login module" is. I've not implemented this so I'm not sure about the coding -- but try setting your cookie lifetime higher in your admin control panel...under Configuration.

 

i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this?Ryan
Link to comment
Share on other sites

i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this?

Don't know this login module.

But getting logout i know too. Not sure about why...

I figured out one way:

cookies deactivated, you go to affiliate_banner und click on a banner.

This opens a new window and starts a new session (cause in these banners are no sessionids.

If you go bach to the affiliate yourelogged out.

I think this behavier is all right.

Link to comment
Share on other sites

@Hunter

And whats the problem?

The debuginfo should be clear. You have one gearsTone to much.

Look at the configure.php and remove it. (I would say, that at DOCUMENT_ROOT but don't know your configuration exactly)

Link to comment
Share on other sites

Heres what my config file has.

 

define('HTTP_SERVER', 'http://www.huntseek.net'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://www.huntseek.net');

 define('HTTPS_CATALOG_SERVER', 'https://www.huntseek.net');

 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/home/huntseek/public_html/gearstore'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/gearstore/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/home/huntseek/public_html/gearstore/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/gearstore/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/home/huntseek/public_html/gearstore/catalog/'); // absolute path required

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

Link to comment
Share on other sites

It looks for a imagae under this Adress:

DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_IMAGES . $banner

DIR_FS_DOCUMENT_ROOT and DIR_WS_CATALOG have gearstore in it, so you have two.

I think document root shouldn't have it.

Link to comment
Share on other sites

Why not try changing the paths in affiliate_show_banner.php lines:

 

$pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_IMAGES . $banner;

 

to:

 

$pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_IMAGES . $banner;

 

and

 

if (!is_file($pic)) $pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . '/' . DIR_WS_IMAGES . $banner;

 

to:

 

if (!is_file($pic)) $pic=DIR_FS_DOCUMENT_ROOT . '/' . DIR_WS_IMAGES . $banner;

 

 

When I removed the extra gearstore references it screwed up the main cart.  It was not then able to find anything.
Link to comment
Share on other sites

Of course, Henri is right...and I think I know what your problem is...you posted your ADMIN config file...and not your catalog config file...look in there.

 

define('DIR_WS_CATALOG', '/gearstore/catalog/'); // absolute path required

 

should be

 

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

 

When I removed the extra gearstore references it screwed up the main cart.  It was not then able to find anything.
Link to comment
Share on other sites

Here's what my admin/includes/configure.php file looks like:

 

define('HTTP_SERVER', 'https://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

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

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

 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html/catalog'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/home/mysite/public_html/catalog/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/home/mysite/public_html/catalog/'); // absolute path required

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

 

And in my catalog/includes/configure.php

 

define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be NULL for productive servers

 define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be NULL for productive servers

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

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

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



define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html');

 define('DIR_FS_CATALOG', '/home/mysite/public_html/catalog/');

 

Compare these to yours and see what you find...make sure you note all forward slashes in the areas where needed and not needed.

Link to comment
Share on other sites

Then it shouldn't show the debug information

 

You can outkomment the funktion call in affiliate_show_banner.php

// DebugModus

// if (AFFILIATE_SHOW_BANNERS_DEBUG=='true') affiliate_debug($banner,$sql)

Link to comment
Share on other sites

Ive just sent thru some new code to Henri tolook at which is the basis for a radical change to the layout of the acatalog side of the affiliate program.

 

Changes in these files are:

 

Banners Centre

Banners are now split into 4 seperate pages, Banners, Products, Build a Link and Text Links. This will make it less congested if you have lots of banners and products inserted into the program.

 

Reports Centre

I have modified the boxes/affiliate.php file to allow for a reporting centre which will house the current reports such as the sales report etc.

 

I am currently enhancing those reports and willhave the code ready shortly.

 

I have also sent thru files to clean up the signup and affiliate details pages to make them look the same as the rest of oscommerce.

 

I have also included the changes to the affiliate welcome email to change it back to the way we had it in Alpha 2.0

 

If you want to have a look at the changes

 

http://www.snowtechsports.com/new/default.php

 

Enjoy :)

Link to comment
Share on other sites

Snowman, you and Henri are my new idols :) Only Tim and Linda even come close!

 

Looking forward to the new code, going to look at your site now!

 

Debbie

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

Love it, I went through the affiliate sign up process and it worked like a breeze, thanks for adding the State box back in.

 

Steve, I like some of the custom boxes on your site, are they all available as contributions somewhere or did you design them yourself? I really like the PayPal box, looks very professional. And the Gift Voucher box, and the newsletter sign up box,....

 

Debbie

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

Debbie they are all from contributions here at osCommerce.

 

The site you have just looked at is my own "Loaded version" which i supply to my hosting and reseller customers. It features almost everything bar the kitchen sink :)

Link to comment
Share on other sites

I guess some sort of implementation could be looked at for breaking up the banners by size or type, but that would need a fair bit or recoding at this stage.

 

Will keep it in mind for a future release however. :)

 

As for the availability of the code...

 

Im just waiting for Henri to give it the once over and if its ok we'll get it into the CVS.

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...