sgreiner Posted May 5, 2006 Posted May 5, 2006 I hope I can explain what I want. I have a few sites that I have affliate accounts with. I want to put their products within my site. Its easy to do for stand alone pages and ads, but not when I want it on the sub-cat page. Let me try to explain what I need. If you click on a parent level cat from my home page, you are still on index.php example: (www.my_url.com/index.php?cPath=22) Then you click on one of the sub-cats on this page you goto (www.my_url.com/index.php?cPath=22_82) On this page you will see 6 items. These are items that are part of my store. Underneath these products, I would like the place the code that will pull the affilate products and place them on this page. I am pretty sure I need to place the code on index.php, but the problem is that each sub-cat is different and so will the products I want to display. Example: index.php?cPath=22_82 needs to pull items that are specific to this cat. index.php?cPath=22_32 needs to pull items that are specific to this cat. and so on... I guess what I need is a way to say if my url is index.php?cPath=22_82, the the affilite code can be xxxxx If my url is index.php?cPath=22_32, the the affilite code can be xxxxx Keep in mind we are still on index.php - meaning we have not clicked the actual product which thens brings us to product_info.php. I see other sites that have this setup, I just can't figure out the logic in the code. I know what affilate code to put in my site to pull the items, just not sure where to put it since all my sub-cat pages are based on index.php Initially I was thinking of an if,then,else statement. I hope this make sense. If you want, you can PM me and I will give you specific URLS and we can disuss further. "There is no doubt about precisely when folks began racing each other in automobiles. It was the day they built the second automobile." - Richard Petty
chooch Posted May 5, 2006 Posted May 5, 2006 you should post this on the affiliate contribution support thread, maybe you'll get a more informed response Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH
Recommended Posts
Archived
This topic is now archived and is closed to further replies.