Discount a Category, but what about variants?

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #63569

Hi, my client has the following problem:
All of het products in a category need to be discounted with 50%
when I do this, products with variants show prices like this: 0,00 19,95
With 19,95 being the non-discounted (original) price.
Any way to solve this without selecting all variants of products one by one this category?

thanks,

Roy

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #63695

Hi,

Could you please make a screenshot of your discount configuration?
I'm currently testing it and we may have a bug.

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #63830

Sure, here it is.

Attachments:

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #63911

Could you also ,give me more informations about the product and its variants? (screenshot would be appreciated)

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64105

Hi the product is a hat, in 3 sizes (the variants)
Only thing special about it is; the variants had the same prices filled in as the original product.
So I removed the prices to make it work.
The category has lots more products, without variants it works fine, with variants and prices added to the variants it will show 0,00 € 19,95
Here is a link to the product:
www.ollotiek.nl/js/index.php/Hoofddoeken...r-zomerstrohoed.html

thanks,

Roy

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64110

It's working fine there.
Do you have the last version of Hikashop? Also, how did you created your product? Using import?

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64183

No they do the product-creating all by hand.
Do discounts work fine when prices are added to the variants?
In that case i might need a new version, although we recently upgraded to 1.5.8

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64184

Oh, I see there is a 1.6.0 now. I will try it.

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64185

I tried with exactly the same configuration.
Try to update and if it doesn't fix the bug I would probably need an access to your backend in order to take a look.

The following user(s) said Thank You: rockoladeluxe

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64278

Hi, I installed the new version 1.6.0 of Hikashop, but now I got this problem:
In some category vieuws the links to productpages are not present. So it is now not possible
to visit productpages of most categories..

I will investigate possible differences in categories right now, but if you got any solution, it will be more than welcome!

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64280

There is an "add link to product page" option in modules and menus so it may be disable on your product listing.

Last edit: 12 years 2 months ago by Eliot.

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64290

First i could not find any "add link to product page" button for the menu's untill I changed the menu contents to "products" (the non working links were products in a category content menu)
So I think it is solved now.
For mor info regarding this I also used this topic on the forum: www.hikashop.com/en/forum/2-general-talk...-not-accessable.html

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64306

Well, The initial problem of discounted variants is not solved by doing the update: www.ollotiek.nl/js/index.php/Hoofddoeken...r-zomerstrohoed.html
Also, my first menu item refuses to link to the products layout. I checked menuitem config, checked in, emptied cache and rebuild the menu but it seems to want to go to the frontpage somehow: www.ollotiek.nl/js/index.php >>>choose Gala & Cocktail Jurken.

As I wrote before, i changed all category content menuitems to product content, those links are all right now.

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64324

In the mean time, I made a new menuitem for Gala & Cocktailjurken and depublished the old one.

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64330

It seems the discount problem just exist for this product from what I see.
Try to delete the variant price and it should solve the problem.
About your menu item it tried and it seems to work, everything is fine?

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64372

Well we already deleted all variants prices a few days ago because of this.
Today, after the update, I made the current prices at the variants to see if it works.
Luckily the prices are/were the same as the original product,so in this case it does not matter to much. but what if variants would have different prices ?

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64376

Since I can't reproduce this bug could you confirm me it's displaying 0,00€ only when variants have prices?
Also, does this happen if you create a new similar product?

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

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64387

Alright, I finally spotted the problem and fixed it.
You have to edit two files, the first one is currency.php in administrator\components\com_hikashop\classes replace this line:

if(empty($products[$key]) || !in_array($product->product_id,$products[$key])){
with this one:
if(empty($products[$key]) || !in_array($product->product_id,$products[$key]) && !in_array($product->product_parent_id,$products[$key])){

then edit the product.php file in the same folder and replace this line:
if(isset($element->$field) && is_array($element->$field) && count($element->$field)){
with this one:
if(isset($element->$field) && (is_array($element->$field) && count($element->$field) || is_object($element->$field))){

Last edit: 12 years 2 months ago by Eliot.
The following user(s) said Thank You: rockoladeluxe

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64440

I will do that, in the mean time: After today's update almost all add to cart buttons are gone!
This happend 100% positive directly after the update, this morning everthing was ok.
A quick solution to this and maybe a possible cause might be great, as i just got called on this fridayevening to fix this too.

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

  • Posts: 81
  • Thank you received: 2
12 years 2 months ago #64441

Nevermind a solution to the disappeared ad to cart button: you can turn it back on like this.
It is not what to expect when updating dough: www.hikashop.com/en/forum/4-how-to/4471-...ton-disappeared.html

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

Time to create page: 0.097 seconds
Powered by Kunena Forum