Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
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
  #1  
Old May 28th, 2014, 08:41 AM
kawie kawie is offline
 
Join Date: Feb 2014
Posts: 60
Default problem with product list page

Store ID: 1bfaz5suc0den4jv
Website URL: http://www.botas.net
URL to page in question: http://www.botas.net/botas-com-animal-print/

Hi Eric,

unfortunately I was trying to include a filter above the product list (category page) and I guess I did something wrong because now the products don't appear as they did before.
Now I only have 10 products on the first page, before they were 18. And they appear very irregular, sometimes not 3 in the same row.
And if I click to go to page 2, I receive the "not found error 404" message.

The actual code is this and I wonder were the mistake is:

HTML Code:
<!-- Pagination Links (Top) -->
<div class="pgr">
  Páginas:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Top) -->


<!-- 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>    
      <div style="text-align: center; font-weight: bold; color:red;">
<?php
if ( $product->saleprice > 0 ) {    
    if ( $product->price > $product->saleprice ) {
        echo '' . round( ( ( $product->price - $product->saleprice ) / $product->price ) * 100 ) . '% Off';
    }
}
?>  
      </div>
    
    </div>
    <div class="thmb"><a href="[product.link]" title="[product.name]">[product.image tag='1']</a></div>
   
        
    
    
    <?php if ($product->saleprice > 0 &&  $product->saleprice < $product->price) { ?>
  <div class="prc">
    <small>
      <span style="text-decoration: line-through;">R$ [product.price]</span>
      <span style="font-weight: bold; color:red;">R$ [product.saleprice]</span>
    </small>        
  </div>
    
    

    
    
<?php } else { ?>
  <div class="prc">
    <small>
      R$ [product.price]
    </small>
  </div>    
<?php } ?>
    
    
    
    
    <div class="btns">
    <a href="[product.link]" title="Detalhes [product.name]" class="dfbutton dfblue dfmedium dfrounded">Detalhes</a>
    </div>
    <div class="clearingdiv"> </div>
  </div>
  </div>
  [/product.each]
  <div class="clearingdiv"> </div>
</div>
<!-- /Product List -->


<!-- Pagination Links (Bottom) -->
<div class="pgr">
  Páginas:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Bottom) -->
I also want to include above the product list this filter used to order products from lower to higher price or vice-versa.

Could you help me out please?

Thank you,

Kathrin
  #2  
Old May 28th, 2014, 08:50 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

The issue is you are embedding a view into a WP page: http://www.botas.net/botas-com-animal-print/

Embedded views can't have pagination that's why going to page 2 doesn't work.

The reason your products aren't lining up properly is because you have added extra text to items on sale which is pushing those items down the page.

I suggest changing this:

HTML Code:
      <div style="text-align: center; font-weight: bold; color:red;">
<?php
if ( $product->saleprice > 0 ) {    
    if ( $product->price > $product->saleprice ) {
        echo '' . round( ( ( $product->price - $product->saleprice ) / $product->price ) * 100 ) . '% Off';
    }
}
?>  
      </div>
To this:

HTML Code:
      <div style="text-align: center; font-weight: bold; color:red;">
<?php
if ( $product->saleprice > 0 ) {    
    if ( $product->price > $product->saleprice ) {
        echo '' . round( ( ( $product->price - $product->saleprice ) / $product->price ) * 100 ) . '% Off';
    } else {
    	echo ' &nbsp; ';
    }
}
?>  
      </div>
Eric
 


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
Front page product list abbeydriving Problems 8 March 14th, 2012 04:07 AM
Product List Home Page bultpruf Problems 2 November 19th, 2011 12:58 PM
Factory > View > Store Front Page > Product List coolgearguy Questions 7 September 7th, 2011 04:44 PM
The Problem about Product list's width jasonman188 Problems 1 March 16th, 2011 08:26 AM
... get the default product list back on the front page? ayorofrance Questions 2 January 8th, 2011 09:01 PM


All times are GMT -5. The time now is 11:20 PM.


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