1. roderic
  2. RO CSVI
  3. Thursday, 15 October 2015
  4.  Subscribe via email
Running on Joomla 3.4.4 with CSVI 6.20 and Virtuemart 3.0.10

On CSVI 5.xx it used to export the prices of the shoppergroup the exporting user was attached to. After the upgrade it always exports the same price. I tried a few things al ready, nothing seems to work. What changed in 6.xx compared to 5.xx? What do I need to do different?
Accepted Answer Pending Moderation
Hello,

The prices should be exported for the shopper group linked to that price. Are you dealing with multiple prices and/or multiple shopper groups?
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
There are multiple shopper groups. One group get's 3% discount, 2nd group 5% etc.
Before the update to csvi 6, I would get the prices of the shoppergroup that were linked to the user account doing the export. Now I always get the same price, the baseprice without discounts.
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Before the update to csvi 6, I would get the prices of the shoppergroup that were linked to the user account doing the export.
You said that before. It is a pain because you would need to login with a different user account every time for getting the correct prices. Now the prices are exported correctly for each shopper group.

I do see your issue I think because you are grouping on the manufacturer name, thus there is always only 1 product in your export. The grouping removes all other prices, therefore you always get only 1 price in your export.

It worked in the past in your case because your base price is the same but each group had it's own discount. If each product would have had multiple prices and each price it's own settings it wouldn't have worked.

So, the only way around it I see is to add an option to the export template where you can force a certain shopper group to be used rather than the one assigned to a price. This option is included in the patch file, which you can load. After that when you edit your export template, you must click on the Advanced button first to make the option visible (this is not an everyday option) on the Options tab. Select your shopper group from the list on the Customer shopper group and save your template. Run the export and it should export the price for that particular shopper group. At least it did here :)

Let me know how it goes.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Late response.. I loaded the patch. But it doesn't make a difference. Doesn't matter what group I select, prices stay the same.
I also removed the grouping by Manufacturer. Didn't really do that on purpose. That also didn't change anything.

Summary:
So there are several shopper groups. They all have their own percentage of discount. The customers can run their own export on the frontend and should get their own shoppergroup prices. Right now they just get the base price. While before they just got their discounted price. Patch doesn't help. Removing the grouping by manufacterer doesn't help. Next idea? :)
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,

Can you post your debug log of a certain export and tell me which shopper group you had chosen. The shopper group selected in the template should be used for export.
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
See attachment. Selected group is Silver 5%.

I just updated to 6.3 btw. Nothing changed.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,

I may have seen an issue and fixed it in the enclosed patch file. Can you give that a try and let me know how it goes?
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Yes, it now works when I choose a specific shoppergroup. :)

But, can you also fix it so you don't need to choose one upfront, but automatically picks the shoppergroup the account that is doing the export is linked too? Like it was before in csvi 5?
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,

It was just a fluke that it worked the way it did :P It was never intended to work that way.

So, I had another look at the VirtueMart code (CSVI doesn't do the price calculation itself), I think the attached patch file does what you are asking for. You still have to use the force shopper group option but there is now an option to use the logged-in user details.

Let me know if that works for you.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
That sounds like it would be the right solution. Unfortunately it doesn't work. It just gives the base price again. I attached the log.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Aha, I noticed something in regards to the log, so that issue should be dealt with now as well. Can you see if the attached patch works for you. Thanks.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
No prices at all now. No matter if I use the advanced option or not.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Apologies, my mistake. I was testing with the wrong site. :pinch:

This patch should make things work again.

Let me know how it goes.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Prices are back. :) The based on user-login doesn't work yet though.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Ok, I know now that 0 is not the same as 0 :whistle:

Can you see if this works for you? I can see that it loads the user for me. Thanks.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
No difference, unfortunately.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 16
Accepted Answer Pending Moderation
Ok, some more changes, please give the applied patch a try. Thanks.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Same result. I attached another log.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 18
Accepted Answer Pending Moderation
Roderic,

Can you explain how you have set up a product with pricing and shopper groups? That way I can get a better idea of how you set things up and what we can expect in the export file.
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
The base price is set in the product. Then "algemene regels toepassen" (Apply general rules?). So basically nothing happens here yet.

Then the discount is set in the shopper group, see attachment. Depending on wich group the customer is in, he will get that discount.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!