How to increase # products randomly displayed

In a static block, for example UB Home and Pets, there are just 10 random products cycling through in rotation.
Here’s the code:
————
<div class=”ub-style2 ub-style2-right”>
<div class=”category-title”>
<h3>Clearance<span>Books priced to clear…</span></h3>
</div>
{{block class=”Ubertheme\UbContentSlider\Block\Slider” name=”ub.hp.right.slider” template=”slider_products_right_home.phtml” title=”on sale” show_title=”0″ content_type=”random_products” category_ids=”30″ show_desc=”0″ show_wishlist=”0″ show_compare=”0″ show_add_cart=”0″ show_paging=”0″ show_review=”0″ number_items=”1″ number_items_desktop=”1″ number_items_desktop_small=”1″ number_items_tablet=”1″ number_items_tablet_small=”1″ slide_transition=”backSlide” auto_run=”0″ }}</div>
————
Where do increase this from the current 10 to say 50 ?
thanks in advance.
Nick

3 answers

Profile photo of Ziven Staff 100280.00 $tone May 9, 2018
Public

Hi Nick,
You can add the qty param as highlighted in red below: 
 

<div class=”ub-style2 ub-style2-right”>
<div class=”category-title”>
<h3>Clearance<span>Books priced to clear…</span></h3>
</div>
{{block class=”Ubertheme\UbContentSlider\Block\Slider” name=”ub.hp.right.slider” template=”slider_products_right_home.phtml” title=”on sale” show_title=”0″ content_type=”random_products” category_ids=”30″ show_desc=”0″ show_wishlist=”0″ show_compare=”0″ show_add_cart=”0″ show_paging=”0″ show_review=”0″ number_items=”1″ number_items_desktop=”1″ number_items_desktop_small=”1″ number_items_tablet=”1″ number_items_tablet_small=”1″ slide_transition=”backSlide” auto_run=”0″ qty=”50″ }}</div>

 
Once done, please clean your Magento cache. 

Please let me know how it goes then.
Best Regards,
Ziven.

#1
Profile photo of Ziven Staff 100280.00 $tone May 10, 2018
Public

Hi Nick, 
Glad that you figured it out at your end. Should you have additional question, please submit a new ticket or reach us here.
Regards,
Ziven.

#3

Please login or Register to Submit Answer

Written By

Comments