Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old January 21st, 2015, 11:05 AM
creativa creativa is offline
Join Date: Nov 2014
Posts: 12
Default PHP Conditionals for Coupons

Website URL:
URL to page in question:

Hi, I'm trying to set a PHP If() Conditional on the Product Detail Page where IF a Merchant is offering Coupons/Promotions, THEN a link will appear on page that when clicked, it will open up a window with the coupons available for that particular Merchant.

Right now, for the purpose of giving you an example, I have a PHP Conditional based on the Sale Price of the product. So, you'll notice that if a product is on sale, the word Coupon appears next to the price and that opens up the window with the available coupons. But when you click another product that is not on sale, you don't see the Coupons links anymore. So I want to do the same thing, but with the right PHP Conditionals.

This is the Code I have so far:

<?php if ($product->saleprice > 0 && $product->saleprice < $product->price) : ?>
<a class="fancybox" href="#test">Coupons</a>

<div id="test" style="display:none;width:800px;">
<div id="view">
<?php echo datafeedr_tag('Coupons?merchant='.$product->merchant.'&c=1456737'); ?>
<?php endif; ?>


Thanks for your help...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coupons globie Questions 4 February 14th, 2014 03:11 AM
Using Coupons youngy Questions 2 February 20th, 2013 08:37 AM
Coupons kargz12 Problems 4 March 20th, 2012 12:22 PM
Coupons? lesljr Questions 2 March 13th, 2012 04:11 PM

All times are GMT -5. The time now is 12:50 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.