Post by jens_b » Wed Jun 10, 2015 2:58 pm

Hi!

Where can I change the sort order for the Featured products module on OC 2.0.1.1?
In older version there was getFeaturedProducts() in catalog/model/catalog/product.php
but looks like its gone in OC 2.0.1.1
Any help would be appreciated.

Thanks!

New member

Posts

Joined
Mon Oct 28, 2013 6:19 pm

Post by chulcha » Wed Jun 10, 2015 5:48 pm

Code: Select all

public function getProductRelated($product_id) {
???
but this not module featured

\catalog\controller\module\featured.php

There is no sorting
Sorting takes to add products to the list

Code: Select all

if (!empty($setting['product'])) {
			$products = array_slice($setting['product'], 0, (int)$setting['limit']);

			foreach ($products as $product_id) {
				$product_info = $this->model_catalog_product->getProduct($product_id);

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by jens_b » Wed Jun 10, 2015 7:00 pm

hm will have a look, thank you! :)

New member

Posts

Joined
Mon Oct 28, 2013 6:19 pm
Who is online

Users browsing this forum: No registered users and 51 guests