Skip to main content

CREATE A LISTING OF PRODUCTS WITH DISCOUNT

14 years 3 months ago #57738 by jcmattos
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?

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

14 years 3 months ago - 14 years 3 months ago #57765 by Mohamed Thelji
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: 14 years 3 months ago by Mohamed Thelji.

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

14 years 3 months ago #57813 by jcmattos
And it's possible show a image with the percentage in the product listing image? (Like "SALE.jpg" image)

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

14 years 3 months ago - 14 years 3 months ago #57829 by Mohamed Thelji
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: 14 years 3 months ago by Mohamed Thelji.

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

14 years 3 months ago #57831 by Xavier
Hi jcmattos,

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

Add the lines:
Code:
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.

14 years 3 months ago #57857 by jcmattos
it works! thanks!

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

14 years 3 months ago - 14 years 3 months ago #57873 by RHAF
It work thanks...
Last edit: 14 years 3 months ago by RHAF.

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

14 years 3 weeks ago #69879 by verzevoul
I ll try it to! Its important, thanks!

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

14 years 3 weeks ago #69965 by verzevoul
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.

14 years 3 weeks ago #70056 by Xavier
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.

14 years 3 weeks ago #70093 by verzevoul
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.

14 years 3 weeks ago #70097 by Xavier
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.082 seconds
Powered by Kunena Forum