Skip to main content

[Solved]Top Sales.

More
14 years 7 months ago - 14 years 7 months ago #39248 by CMS-Buttler
Hello HikoShop Team,

ist it possible to ti show the rank of the produckts sorted by sales in the module?

Like

Product a

Rank 1

Product c

Rank 2


and so on?

Thx

Andreas
Last edit: 14 years 7 months ago by CMS-Buttler.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #39361 by nicolas
Replied by nicolas on topic Re: Top Sales.
Yes it's possible.

In your module's hikashop options, change the option "ordering field" to "product_sales" and the option "ordering direction" to "descending".

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago - 14 years 7 months ago #39377 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Top Sales.
Yeah thx i did that already

the question was can i show the rank with numbers.

1
2
3
4
5

in the frontend?

Another Idea could be to show the number of sales in the frontend.

Is that pssoible?

How could i show the quantitiy in stock only in the modules?

So many questions sorry.

Thx

Andreas
Last edit: 14 years 7 months ago by CMS-Buttler.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #39519 by nicolas
Replied by nicolas on topic Re: Top Sales.
There are no options for all that. You will have to edit the layout file that you're using on your products listing ( it's by default listing_img_title ) via the menu Display->Views and change the code there to display the additional information you need.

For the sales the code will be:
<?php echo $this->row->product_sales; ?>

For the quantity the code will be:
<?php echo $this->row->product_quantity; ?>

For the rank the code will be:
<?php static $rank =0; $rank++; echo $rank; ?>
The following user(s) said Thank You: CMS-Buttler

Please Log in or Create an account to join the conversation.

Time to create page: 0.174 seconds
Powered by Kunena Forum