Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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