VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: DaSco on July 10, 2012, 22:03:42 PM

Title: Discount rule not applyed if category isn't published
Post by: DaSco on July 10, 2012, 22:03:42 PM
In the version 2.0.8c is not applyed the rule associated to a category if the category is not published.

This working in the version 2.0.6.

You can try if it happens to you?

Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 11, 2012, 10:57:19 AM
Sorry for my bad English..

If I set a calculation rule for a category1 and after that I set this category not published, the calculation rule doesn't work, while in vers. 2.0.6 was all ok.

For example I need to create a not published category for set a discounts of my supplier.
Title: Re: Discount rule not applyed if category isn't published
Post by: Milbo on July 11, 2012, 12:27:14 PM
found and fixed for 2.0.8d
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 16, 2012, 18:10:05 PM
Hi Milbo,

I have make a new site with version 2.0.8d but the rule don't work for all products.

I set a rule for discount of my supplier but it don't work for all products in this category. Why?
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 16, 2012, 18:41:09 PM
The rule isn't apply at the first product of the page
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 17, 2012, 08:57:17 AM
Which file contains the error?

The rule is applied from the second product on the page, so for all pages
Title: Re: Discount rule not applyed if category isn't published
Post by: Milbo on July 17, 2012, 10:14:30 AM
Strange, for me it works. the file is the product model. I did not load unpublished categories of a product in the FE. But now I load always all categories, so I wonder that you have still the problem.
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 17, 2012, 12:16:08 PM
I have made a new installation for test with joomla 2.5.6a and VM 2.0.8e.

I set only one published category "prova" where there are 2 products:

- prova1         price Euro 10,00
- prova2         price Euro 20,00

I create a new rule with discount 20%

In the image there is the result.

The first product in the left top the rule is not apllied.

[attachment cleanup by admin]
Title: Re: Discount rule not applyed if category isn't published
Post by: Milbo on July 17, 2012, 13:22:49 PM
Maybe you disabled the rule in the product edit I need be access to understand this.
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 17, 2012, 15:27:15 PM
I send to you a private message with data for access
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 17, 2012, 19:33:01 PM
No the rule is not disabled.

If I delete or disable product called "prova1", the first product will be "prova2".

The rule not apllied on product "prova2".

I repeat: "The first product in the left top the rule is not apllied."

With more products if I click on the second page of category, it's equal. The first product in the second page on left top the rule is not apllied.

I'm using a new pure installation with only joomla 2.5.6a and VM 2.0.8e.
Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 17, 2012, 22:49:01 PM
Another way to test this error is change the order of products from ascending to descending, you will see change the price.

Link to test site:http://www.vitionline.it/NEW/index.php/shop/prova/orderDesc (http://www.vitionline.it/NEW/index.php/shop/prova/orderDesc)

Title: Re: Discount rule not applyed if category isn't published
Post by: DaSco on July 18, 2012, 19:18:34 PM
Anyone can make even if you happen to you