[Show all top banners]

hurray

More by hurray
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 OS Commerce Coding Help.
[VIEWED 1755 TIMES]
SAVE! for ease of future access.
Posted on 11-12-15 12:36 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi guys,
I need a small help. I have a website that uses prestashop open source e-commerce.
There is a module block for products that are on sale and I would like this module block to display products sorted by price in low-high order.
Here is a part of the code at present that needs to be modified to achieve the result. Any help from fellow nepalese brother or sister would be greatly appreciated.

public function hookRightColumn($params)
{
$nbr=Configuration::get('BLOCKSPECIALS_NBR');

$products = Product::getPricesDrop($this->context->language->id, 0, $nbr, false);

$this->smarty->assign(array(
'products' => $products,
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
));

return $this->display(__FILE__, 'blockmultiplespecials.tpl');
}


 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
#MAGA#FAFO is delicious
A legit Non-Profit organization "United For TPS Nepal "
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters