View Single Post
  #7  
Old April 29th, 2013, 08:34 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Why not remove pagination from those views (the view that you are embedding) and just add a link at the bottom of the view that says "View more..." or "View next 18 products". That link will take the user to the store category page.

You can create a link to Page 2 of the specified category page like this:

Code:
<a href="<?php echo dfr('url')->query_to_url('page=2&view=category&c='.$category->id); ?>">View more</a>
I would suggest creating a new custom view. Name it something like embedcats.

Add a Product list module to the view.

Add the Product List template code to the view. So you might have something like this:

HTML Code:
<a href="<?php echo dfr('url')->query_to_url('page=2&view=category&c='.$category->id); ?>">View more</a><br />

<!-- Product List -->
<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>
    <div class="prc">[product.currency mode="sign"][product.price]</div>
    <p class="desc">[product.description]</p>
    <div class="btns">
    <a href="[product.link]" title="View details of [product.name]" class="dfbutton dforange dfmedium dfrounded">Details</a>
    </div>
    <div class="clearingdiv"> </div>
  </div>
  </div>
  [/product.each]
  <div class="clearingdiv"> </div>
</div>
<!-- /Product List -->

<a href="<?php echo dfr('url')->query_to_url('page=2&view=category&c='.$category->id); ?>">View more</a>
Then on your pages in your blog, you would embed like this:

Code:
[DFR:embedcats?c=605386]
Eric