Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Per Click Integration for Banner Manager


XxWickedxX

Recommended Posts

The banner manager currently offers dates to show a banner from or allows you to show it a certain number of times or impressions..

 

I would like to have the option so that banners display per click.. For example I could set a banner to expire after 50 clicks.. Anyone know how to do this or have some feedback?

Link to comment
Share on other sites

The banner manager currently offers dates to show a banner from or allows you to show it a certain number of times or impressions..

 

I would like to have the option so that banners display per click.. For example I could set a banner to expire after 50 clicks.. Anyone know how to do this or have some feedback?

 

If no one is interested in doing this then at least any advise on how I could do it myself..

Link to comment
Share on other sites

yes the code is in catalog\includes\functions\banner.php See function tep_expire_banners, check the code flow for "impressions" Basically you need to replace it with the banner_clicked

Link to comment
Share on other sites

Ok and then I would need to integrate that into the admin panel as an option.. Where would I need to go to do that and how.. I can do the other thing but I dont know if i can link it to the admin panel or not.

Link to comment
Share on other sites

then you add a configuration switch (an sql statement) with a 'true'/'false' handler. The osc core has the stock sql file with plenty of examples. Then in the catalog\includes\functions\banner.php file you check the switch if it's on you use the banner_clicked otherwise you use the stock behavior. (the impressions)

 

And the switch itself will be available from your osc admin. Just assign the group (1 is for the MyStore configuraiton)

Edited by enigma1
Link to comment
Share on other sites

  • 4 weeks later...

Instead of re creating a whole new function would it not be easier just to modify the existing impressions function to clicks instead.. Would that not cut the days work in half? If so what would be the only thing needed then?

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