Denz Posted November 28, 2008 Share Posted November 28, 2008 Hi, I had posted before but know what I need now. I want the product_info.php page to display itself in different ways depending on product viewed. eg....If on product A, B or C it would show Add to Cart button and if clicked on product 1,2 or 3 it would not have Add to Cart Button. I have thought maybe and IF/OR statement would work - something like : IF product X hide add to cart button ELSE "carry on as usual" (hehe) So, how do I add into the admin a radio button or the likes to say View/Hide add to cart button and how do I implement this into the page? Sorry, I can fumble my way thought PHP to manipulate it a bit, but this is beyond me :) Would love some help. Maybe whoever does this could add it to contribs cause I am sure someone else will want it too! Thanks muchly, Denz Link to comment Share on other sites More sharing options...
FIMBLE Posted November 28, 2008 Share Posted November 28, 2008 you will prob want a switch rather than if statement nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
germ Posted November 28, 2008 Share Posted November 28, 2008 If on product A, B or C it would show Add to Cart button and if clicked on product 1,2 or 3 it would not have Add to Cart Button. To me, this just BEGS the question: Why have something in the catalog no one can add to the cart?????? I thought the whole idea for an online store was to SELL products... :huh: 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...
bkellum Posted November 28, 2008 Share Posted November 28, 2008 To me, this just BEGS the question: Why have something in the catalog no one can add to the cart?????? I thought the whole idea for an online store was to SELL products... :huh: Jim, a scenario would be if you were selling an affiliate product that must be purchased on the affiliate's site. For these cases, I remove the "add to cart" button and simply show the "buy now" button instead. This links to my affiliate so that I get the credit for the purchase. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
germ Posted November 28, 2008 Share Posted November 28, 2008 Well.... That's where I was headed with my reply: The reason why? Another reason might be if they were "freebies". But exclusion on that basis would probably best be based on price rather than product ID. Sometimes what people ask for isn't what they really need. ;) 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.