Zen Cart Logo

Adding More Groups in Per Item

Locked

Views: 2,086

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
7 Jul 2009, 3:08 PM
#1
ptool avatar

ptool

New Zenner

Join Date:
Jun 2009
Posts:
23
Plugin Contributions:
0

Adding More Groups in Per Item

I downloaded the mod for the Group Pricing (Per Item), I have not had any problems so far, but I wanted to add a 5th group. I went into the files

Admin>Includes>Extra Data>Group_Price_Per_Item.php
Includes>Extra Data>Group_Price_Per_Item.php

I added the line:
define('GROUP_PRICE_PER_ITEM5', 'Group E');

Stating that it is 5th group and the name is Group E
Is there a file I am missing? Do i need to add this somewhere else?

Any help would be greatly appreciated =)

7 Jul 2009, 3:20 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Adding More Groups in Per Item

Far as I know, that mod only supports 4 groups. Adding another would involve a lot more than just defining the name of the group, I think.

7 Jul 2009, 8:11 PM
#3
ptool avatar

ptool

New Zenner

Join Date:
Jun 2009
Posts:
23
Plugin Contributions:
0

Re: Adding More Groups in Per Item

yeah after I used the developers tool kit, i managed to find all the files needed to change the mod. I added about 10 more to my list.

They only problem I am having with it, I cannot get the net / gross prices to stick, soon as I update the item, they are wiped out.

I am currently in the collect_info.php file looking at the code, comparing between the ones i added, and the ones that were previously in there.

8 Jul 2009, 1:53 AM
#4
defvayne23 avatar

defvayne23

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Adding More Groups in Per Item

When you added the new groups, did you update your products table to include the new groups?

9 Jul 2009, 7:44 PM
#5
ptool avatar

ptool

New Zenner

Join Date:
Jun 2009
Posts:
23
Plugin Contributions:
0

Re: Adding More Groups in Per Item

I updated three files.

document_product.php
product.php
collect_info.php

After reading your post I checked to make sure that i added them in to those files and I did, i seemed to have missed one file thought, and I found my other groups in there.

update_product.php

but everytime i have attempted to change it, i get an error when trying to edit the item.

Thanks for the help!

9 Jul 2009, 9:51 PM
#6
defvayne23 avatar

defvayne23

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Adding More Groups in Per Item

Not sure why you would need to update those 4 files. What I'm talking about is when installing the mod is the sql file you ran. To fix the problem all you need to do I beleive is run:
ALTER TABLE products ADD products_group_e_price DECIMAL( 15, 4 ) NOT NULL AFTER products_group_d_price ;

10 Jul 2009, 6:11 PM
#7
ptool avatar

ptool

New Zenner

Join Date:
Jun 2009
Posts:
23
Plugin Contributions:
0

Re: Adding More Groups in Per Item

I changed my files back to default, to what they were before i changed them.

I tried the SQL patch as you have shown there, it processed.

When i went to my group pricing page, it showed the "Group E" there. But it was like all the default group pricing, it would not let me change per item.

29 Jul 2009, 3:53 PM
#8
ccheney avatar

ccheney

New Zenner

Join Date:
May 2008
Posts:
8
Plugin Contributions:
0

Re: Adding More Groups in Per Item

Hi did you figure this out? I'm trying to do the same thing.