Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Questions (http://www.datafeedr.com/forums/forumdisplay.php?f=67)
-   -   "Visit Category" (http://www.datafeedr.com/forums/showthread.php?t=11505)

yankeestonk February 1st, 2015 03:01 PM

"Visit Category"
 
This is a tricky one. Is there a way to add a "visit category" button to results, much like a buy it or details button.

The purpose of the button would be if you were on a product that wasn't quite what you were looking for, and this button would take you to the category page of all the similar products.....or back to that area if you came from there.

What it would be good for say if you clicked on a Featured Product from the homepage. You go to the detail page but it's not quite right. A button that says "visit category" would bring you to the category without having to figure out which category it was. (without looking at breadcrumbs etc.)

Is it possible? If so I'd want to add to storefront page, category pages and detail page.

Thanks,
Ken

http://saveonogolf.net

Eric February 2nd, 2015 09:17 AM

Hi

That's covered here: http://www.datafeedr.com/forums/show...2666#post22666

Eric

yankeestonk February 2nd, 2015 09:54 AM

Is that what I'm trying to do? I'm looking for a button to go back to the category from all results. (product/category/search)

Stefan was saying it may not be possible from certain areas but it would be addressed in future release. That was in 2011. So I don't know if Datafeedr supports it or not now, but I don't think that's exactly what I'm looking to do anyway. Am I wrong?

Eric February 2nd, 2015 10:00 AM

If you want a button to appear right next to your product 'buy' and 'details' button, then yes, that is what you need.

Adding that code to your Product List modules will do the trick:

HTML Code:

<?php $category = $s->category_for_product($product); ?>
<a class="dfbutton dfgreen dfmedium dfrounded" href="[category.link]">[category.name]</a>


yankeestonk February 2nd, 2015 11:29 AM

This is the code for my storefront page. Can you put the code in the right place for me?

<!-- Product List -->
<ul class="products grid">
<div class="pl">
[product.each]
<div class="t1 col3">
<div class="bdr">
<h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
<div class="thmb"><a href="[product.link]" title="[product.name]">[product.thumbnail tag='1']</a></div>


<?php if ($product->saleprice > 0 && $product->saleprice < $product->price) { ?>
<div class="prc">
<small>
<span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
<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 } ?>
<p class="desc">[product.description]</p>
<div class="logo">[product.merchant_logo]</div>
<div class="btns">
<?php if ( $product->compset_status > 0 ) : ?>
<a href="[product.link]" class="dfbutton dforange dfmedium dfrounded" title="Find the best price for [product.name]">Compare Prices</a>
<?php else : ?>
<a href="[product.link]" class="dfbutton dfgreen dfmedium dfrounded" title="View details of [product.name]">Details</a>
<a href="[product.url]" class="dfbutton dforange dfmedium dfrounded" title="View details of [product.name]" target="_blank" rel="nofollow">Buy Now</a>
<?php endif; ?>
</div>
<div class="clearingdiv"> </div>
</div>
</div>
[/product.each]
<div class="clearingdiv"> </div>
</div>
</ul>
<!-- /Product List -->

Eric February 2nd, 2015 11:38 AM

Hi

It's nearly identical to the change I made here: http://www.datafeedr.com/forums/show...2933#post52933

Eric

yankeestonk February 2nd, 2015 12:27 PM

is this right?

<p class="desc">[product.description]</p>
<div class="logo">[product.merchant_logo]</div>
<div class="btns">
<?php if ( $product->compset_status > 0 ) : ?>
<a href="[product.link]" class="dfbutton dforange dfmedium dfrounded" title="Find the best price for [product.name]">Compare Prices</a>
<?php else : ?>
<a href="[product.link]" class="dfbutton dfgreen dfmedium dfrounded" title="View details of [product.name]">Details</a>
<a href="[product.url]" class="dfbutton dforange dfmedium dfrounded" title="View details of [product.name]" target="_blank" rel="nofollow">Buy Now</a>
<?php endif; ?>
<?php $category = $s->category_for_product($product); ?>
<a class="dfbutton dfgreen dfmedium dfrounded" href="[category.link]">[category.name]</a>

</div>
<div class="clearingdiv"> </div>

Eric February 2nd, 2015 12:30 PM

Yes, that looks good!

yankeestonk February 2nd, 2015 01:14 PM

Done, it worked! Thanks
Here's what it does. Do you think it's helpful?

http://saveongolf.net/store/category/hot-list-clubs/

Eric February 2nd, 2015 01:18 PM

Yeah, that could be useful.

yankeestonk February 2nd, 2015 01:37 PM

yeah sure Eric!...you just don't want me asking you how to remove it! ;0)

Thanks.

brentwilliamz February 3rd, 2015 10:45 PM

Dude, don't let it go to your head, but... you seem to be the only affiliate in DFR Forums right now who knows what to do for The Customer!

And sales.

Once again, the solution you've asked for, in this thread, is driven by what the Internet customer wants. That little silver Category button below the other 2 is perfect; there if they want it, in the background if they don't.

Well done, Salesperson Extraordinaire. :)

yankeestonk February 4th, 2015 06:48 AM

Wow, that was nice to read! Thanks! Slowly going broke just got a little more palatable! :)


All times are GMT -5. The time now is 02:57 PM.

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