View Single Post
  #10  
Old January 19th, 2015, 10:51 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

I found the issue. You had a missing ending PHP tag in your Drip Template.

You also have a [product.each] and [product.end] tag in your Product detail view. Those were also causing problems.

Here's what you had:

HTML Code:
<div class="sp">
  <div class="lc">
    <div class="thmb">
      <a href="[product.url]" title="[product.name]" target="_blank" rel="nofollow">
        [product.image tag='1']
      </a>
    </div>
  </div>
  <div class="rc">
    <h2><a href="[product.url]" title="[product.name]" target="_blank" rel="nofollow">[product.name]</a></h2>
    <p class="desc">[product.description html='yes']</p>
    <div class="prc">[product.currency mode='sign'][product.price]</div>
    <?php if ($product->saleprice > 0 &&  $product->saleprice < $product->price) { ?>
  <div class="prc">
    <small>
      Was: <span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
      Now: <span style="font-weight: bold; color:red;">[product.currency mode='sign'][product.saleprice]</span>
    </small>
  </div>
<?php } else { ?>
  <div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
  </div>    
[product.each]
  <p>
    <a href="[product.link]"><strong>[product.name]</strong></a> from <span style="color:#999;font-size:85%;font-style:italic;">[product.merchant]</span><br />
    [coupon.description]<br />
    <small>
      <?php if ($$[coupon.code]!='') : ?><strong>Coupon promo code:</strong> [coupon.code]<br /><?php endif; ?>
      <?php if ($$[coupon.begin]!='') : ?><strong>Begin Date:</strong> [coupon.begin]<br /><?php endif; ?>
      <?php if ($$[coupon.end]!='') : ?><strong>End Date:</strong> [coupon.end]<br /><?php endif; ?>
      <?php if ($$[coupon.restrictions]!='') : ?><strong>Restrictions:</strong> [coupon.restrictions]<br /><?php endif; ?>
    </small>
  </p>
[product.end]
    <div class="btns">
      <a href="[product.url]" class="dfbutton dforange dflarge" title="Buy this product" rel="nofollow">Buy</a>
    </div>
  </div>
  <div class="clearingdiv"> </div>
</div> 
<div class="clearingdiv">&nbsp;</div>
[ebay_show_items keywords="[product.name]" category_id="11863"]
<div class="clearingdiv">&nbsp;</div>
Here's what I changed it to:

HTML Code:
<div class="sp">
  <div class="lc">
    <div class="thmb">
      <a href="[product.url]" title="[product.name]" target="_blank" rel="nofollow">
        [product.image tag='1']
      </a>
    </div>
  </div>
  <div class="rc">
    <h2><a href="[product.url]" title="[product.name]" target="_blank" rel="nofollow">[product.name]</a></h2>
    <p class="desc">[product.description html='yes']</p>
    <div class="prc">[product.currency mode='sign'][product.price]</div>
    <?php if ($product->saleprice > 0 &&  $product->saleprice < $product->price) { ?>
  <div class="prc">
    <small>
      Was: <span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
      Now: <span style="font-weight: bold; color:red;">[product.currency mode='sign'][product.saleprice]</span>
    </small>
  </div>
<?php } else { ?>
  <div class="prc">
    <small>
      [product.currency mode='sign'][product.price]
    </small>
  </div>
  <?php } ?>
    <div class="btns">
      <a href="[product.url]" class="dfbutton dforange dflarge" title="Buy this product" rel="nofollow">Buy</a>
    </div>
  </div>
  <div class="clearingdiv"> </div>
</div> 
<div class="clearingdiv">&nbsp;</div>
[ebay_show_items keywords="[product.name]" category_id="11863"]
<div class="clearingdiv">&nbsp;</div>
Now everything works as it should.

To fix it on your site, go here WordPress Admin Area > Tools > Datafeedr and click the [Update Settings Only] button.

Eric