CREATE A LISTING OF PRODUCTS WITH DISCOUNT

  • Posts: 10
  • Thank you received: 0
12 years 4 months ago #57738

Hi,

How can I make a listing with just products with:

1. discounts.
2. More views.
3. More voting.

Can you help me with that please?

And it's possible show a image with the percentage in the product image?

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
12 years 4 months ago #57765

Hello,

1. You can do it if you :
- Group all your discounted product in a category
- Create a product listing of this category

2. Yes, if you create a new product listing menu and set the "Ordering field" option to product_hit

3. Yes, if this time you set the "Ordering field" option to product_total_vote

Hope this will help you.

Last edit: 12 years 4 months ago by Mohamed Thelji.

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

  • Posts: 10
  • Thank you received: 0
12 years 3 months ago #57813

And it's possible show a image with the percentage in the product listing image? (Like "SALE.jpg" image)

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #57829

Our development team is currently working on a solution that will allow you to add another picture like your "SALE.jpg" on your product's pictures.

Last edit: 12 years 3 months ago by Mohamed Thelji.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 3 months ago #57831

Hi jcmattos,

Yes it's possible, edit the view "Product / listing_img_title.php" in HikaShop > Display > Views

Add the lines:

if($this->row->discount->discount_percent_amount != null){
	?><div class="hika_discount_listing"><?php
		echo (int)$this->row->discount->discount_percent_amount;
	?></div><?php
}

And you can add an image in this div, place the text in this image, and place the image with css properties.

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 10
  • Thank you received: 0
12 years 3 months ago #57857

it works! thanks!

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

  • Posts: 1
  • Thank you received: 0
12 years 3 months ago #57873

It work thanks...

Last edit: 12 years 3 months ago by RHAF.

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

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
12 years 1 month ago #69879

I ll try it to! Its important, thanks!

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

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
12 years 1 month ago #69965

Parse error: syntax error, unexpected '}' in /home/............./html/com_hikashop/category/listing_img_title.php on line 37.

i tried it too, I added the code mentioned at the end of the file, but the above error came.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #70056

Hi verzevoul,

Since the first thread of this topic, a new feature has been made in HikaShop, the Badges.
The badges allow you to add a badge on the product image.

You can find some documentation here:
www.hikashop.com/en/support/documentatio...p-badge-listing.html

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

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
12 years 1 month ago #70093

Really nice feature. But how can I add a badge with 20% discount to 3 only products. Not categories?

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #70097

You can create a new category (for example: discount20), add this category to your 3 products, and apply the badge on this category.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.122 seconds
Powered by Kunena Forum