Jshopping Last Products hide a part of items

19.07.2019 15:58
#1
dolphin4ik_1
Joomshopping forum user no avatar
Name: Sergey
22.11.2014
Posts: 13
Quote
Jshopping Last Products hide a part of items

Hi, i use module Jshopping Last Products. How can i hide some items under button-'Show more'.

Fore example module shows all products but i want hide the first 20 items and others will be shown when i click on button show more.

<?php if(count($rows)) foreach($rows as $product){ ?>

<div class="col-lg-3 col-md-4 col-xs-6 list_product__product">

<div class="sblock1">

<div class="block_product">

<div class="product productitem_<?php print $product->product_id?>">





<div class = "image">

<?php if ($product->image){?>

<div class="image_block">

<?php print $product->_tmp_var_image_block;?>

<?php if ($product->label_id){?>

<div class="product_label">

<?php if ($product->_label_image){?>

<img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />

<?php }else{?>

<span class="label_name"><?php print $product->_label_name;?></span>

<?php }?>

</div>

<?php }?>

<a href="<?php print $product->product_link?>">

<img class="jshop_img" src="<?php print $product->image?>" alt="<?php print htmlspecialchars($product->name);?>" title="<?php print htmlspecialchars($product->name);?>" />

</a>

</div>

<?php }?>



<?php print $product->_tmp_var_bottom_foto;?>

</div>



<div class = "oiproduct">



<?php if ($product->product_quantity <=0 && !$jshopConfig->hide_text_product_not_available){?>

<div class="not_available"><?php print _JSHOP_PRODUCT_NOT_AVAILABLE;?></div>

<?php }?>



<?php if ($product->product_old_price > 0){?>

<div class="old_price">

<?php if ($jshopConfig->product_list_show_price_description) print _JSHOP_OLD_PRICE.": ";?>

<span><?php print formatprice($product->product_old_price)?></span>

</div>

<?php }?>



<?php print $product->_tmp_var_bottom_old_price;?>



<?php if ($product->product_price_default > 0 && $jshopConfig->product_list_show_price_default){?>

<div class="default_price">

<?php print _JSHOP_DEFAULT_PRICE.": ";?>

<span><?php print formatprice($product->product_price_default)?></span>

</div>

<?php }?>



<?php if ($product->_display_price){?>

<div class = "jshop_price">

<?php if ($jshopConfig->product_list_show_price_description) print _JSHOP_PRICE.": ";?>

<?php if ($product->show_price_from) print _JSHOP_FROM." ";?>

<span><?php print formatprice($product->product_price);?><?php print $product->_tmp_var_price_ext;?></span>

</div>

<?php }?>



<?php print $product->_tmp_var_bottom_price;?>



<div class="price_extra_info">

<?php if ($jshopConfig->show_tax_in_product && $product->tax > 0){?>

<span class="taxinfo"><?php print productTaxInfo($product->tax);?></span>

<?php }?>



<?php if ($jshopConfig->show_plus_shipping_in_product){?>

<span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>

<?php }?>

</div>



<?php if ($product->basic_price_info['price_show']){?>

<div class="base_price">

<?php print _JSHOP_BASIC_PRICE?>:

<?php if ($product->show_price_from && !$jshopConfig->hide_from_basic_price) print _JSHOP_FROM;?>

<span><?php print formatprice($product->basic_price_info['basic_price'])?> / <?php print $product->basic_price_info['name'];?></span>

</div>

<?php }?>



<?php if ($product->manufacturer->name){?>

<div class="manufacturer_name">

<?php print _JSHOP_MANUFACTURER;?>:

<span><?php print $product->manufacturer->name?></span>

</div>

<?php }?>



<?php if ($jshopConfig->product_list_show_weight && $product->product_weight > 0){?>

<div class="productweight">

<?php print _JSHOP_WEIGHT?>:

<span><?php print formatweight($product->product_weight)?></span>

</div>

<?php }?>



<?php if ($product->delivery_time != ''){?>

<div class="deliverytime">

<?php print _JSHOP_DELIVERY_TIME?>:

<span><?php print $product->delivery_time?></span>

</div>

<?php }?>



<?php if (is_array($product->extra_field)){?>

<div class="extra_fields">

<?php foreach($product->extra_field as $extra_field){?>

<div>

<span class="label-name"><?php print $extra_field['name'];?>:</span>

<span class="data"><?php print $extra_field['value'];?></span>

</div>

<?php }?>

</div>

<?php }?>



<?php if ($product->vendor){?>

<div class="vendorinfo">

<?php print _JSHOP_VENDOR?>:

<a href="<?php print $product->vendor->products?>"><?php print $product->vendor->shop_name?></a>

</div>

<?php }?>



<?php if ($jshopConfig->product_list_show_qty_stock){?>

<div class="qty_in_stock">

<?php print _JSHOP_QTY_IN_STOCK?>:

<span><?php print sprintQtyInStock($product->qty_in_stock)?></span>

</div>

<?php }?>



<?php print $product->_tmp_var_top_buttons;?>



<div class="wrap-block-btn">

<div class="name">

<div class="name-label"><?php print $product->name?></div>

<?php if ($jshopConfig->product_list_show_product_code){?>

<span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <span><?php print $product->product_ean;?></span>)</span>

<?php }?>



<div class="name-description">

<?php print $product->short_description?>

</div>



</div>





<div class="button">

<?php if ($product->buy_link){?>

<a class="btn btn-success button_buy" href="<?php print $product->buy_link?>">

<?php print _JSHOP_BUY?>

</a>

<?php }?>



<a class="btn button_detail" href="<?php print $product->product_link?>">

<?php print _JSHOP_DETAIL?>

</a>



<?php print $product->_tmp_var_buttons;?>

</div>

</div>



<?php print $product->_tmp_var_bottom_buttons;?>



</div>



</div>

</div>

</div>

<div class="clearfix">



</div>

</div>



<?php print $product->_tmp_var_end?>



<?php } ?>




</div>


 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.