[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 1754 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 30 days
Recommended Popular Threads Controvertial Threads
TPS To F-1 COS
TPS Sakiyo Tara Case is in Court.
Got my F1 reinstatement approved within 3 months(was out of F1 for almost 2 years)
Nepal Likely to Get 60-Day TPS Notice
#MAGA#FAFO is delicious
NEPAL TPS IS GONE
🛡️ Nepal TPS Holders: Don’t Panic About August 5 — DHS Screwed Up (Maybe on Purpose)
TPS cancel bho bhane k garne?
मुद्दा हाल्छन होला र ?
Nepal TPS Extension Possible as Court Reviews Late Notice Issue
Bill to Protect TPS and DED Recipients
कोर्टमा जाँदा आइसले समात्ला भन्ने डर छ भने यस्तो गर्नुहोला
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