Bean Boy Posted May 25, 2009 Share Posted May 25, 2009 Hi, I've been using OScommerce for many years now and it's been reliable flexible and relatively trouble free. At the moment I'm trying to execute a given include providing the customer has only chosen a specific product to view. I have quite a few modifications including the SEO urls that mod rewrites the URL. Within product_info.php I've tried inserting the following line Line 19: <?php if($HTTP_GET_VARS['products_id'] = 77 ) { Line 20: include('/myfilepath/myfile.php');} ?> Should this code work the way I intend it (I admit I'm no coder)? The idea is to record a landing page impression on the myfile.php so I can track conversions. The problem is that this insertion causes product id 77 product info page to be shown in the e-store nomatter what product or category you select? Come to my store, you can only buy product 77 and that is definitely not what we want. So, please anyone, advice about how to execute something in product_info given only a specific product is selected. Many thanks Link to comment Share on other sites More sharing options...
germ Posted May 25, 2009 Share Posted May 25, 2009 Line 19: <?php if($HTTP_GET_VARS['products_id'] == 77 ) { Try that. ;) When testing an equality yoiu need TWO (or three in some cases ) equal signs. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.