Forums / Addon Order Total Modules / Better Together Contribution Support Thread

Better Together Contribution Support Thread

Views: 204,516

Results 1 to 20 of 696
24 Sep 2006, 12:53 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Better Together Contribution Support Thread

The Better Together Contribution is availalble at
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=309

This contribution allows you to associate products for discounts when they are purchased together, in the same way that Amazon does. It is an order total module, so you will see the discount at checkout time on page 2. Because of dependancies on the latest shopping_cart.php, you must be running ZenCart 1.3.5 to run this module.

More information is provided at:
http://www.thatsoftwareguy.com/zencart_better_together.html

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Sep 2006, 6:05 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Better Together Contribution Support Thread

Is it just me, or is this coded specifically for PHP5 ?
Seems to be incompatible with PHP4 ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Sep 2006, 10:15 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Where did it break in your PHP 4 installation? I actually tried to avoid using PHP 5 features but I'm developing on FC4 so I may have inadvertently used some.

Thanks,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Sep 2006, 10:34 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

mmmm... I'll bet it's the scope resolution stuff that's giving you grief. I'll install on my PHP4 site and test tonight; shouldn't be hard to fix it for php4.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Sep 2006, 3:45 PM
#5
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Haven't installed it yet- but thanks for Releasing it Scott! I have a client that is interested already - will let you know if we have any problems.

When the world gets in my face I say Have A Nice Day.

26 Sep 2006, 4:53 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Better Together Contribution Support Thread

swguy:

I'll bet it's the scope resolution stuff that's giving you grief.Yes. Probably need to build a PHP4-style constructor to set scope more compatibly ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Sep 2006, 4:58 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

D-ohhh! Serves me right for using arcane features.

OK - please check back shortly for a PHP 4 compliant version. It shouldn't be a big deal to fix it.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Sep 2006, 6:02 PM
#8
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hi Scott,

Really love the concept for this mod. I tried and I get this below, but am posting it in case it might help:-

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/thegemtr/public_html/includes/modules/order_total/ot_better_together.php on line 17

26 Sep 2006, 6:12 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

This is related to the point the Good Doctor raised. Sit tight - it will be fixed shortly.

Thanks,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Sep 2006, 10:15 PM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

A new version has just been posted and should appear shortly in the downloads area. This code has been tested against PHP 4. Please let me know of any more problems.

Thanks,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Sep 2006, 2:18 AM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

It's up. Thanks to Dr. Byte for pointing out the root cause of the problem.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Oct 2006, 9:25 PM
#12
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hello Scott,

thank you for this contrib.
add_prod_to_prod seems to work fine for me, but as soon I try to specify
add_prod_to_cat & add_cat_to_cat, it won't work.
Categories specified do not have subcategories..
I mean...it is the Cat ID I have to specify, isn't it?

Dimi

16 Oct 2006, 1:15 AM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Categories are the parent categories of the items, not the top level category. If you have
(as in the demo items)
categories
2 - software
19 - action
22 - unreal tournament

then the category for 22 is 19 not 2.

The other cause of this could be a pre 1.3.5 version of zencart but I see you're running
the latest.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Oct 2006, 10:43 AM
#14
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hello Scott,

Yes, makes sense....I use the subcategories ID's
I just noticed that it works on a testshop Install.....but it will not work on modified live shop with some contributions in it.

I will look trough the mods installed which one may cause the issue.

16 Oct 2006, 10:46 AM
#15
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Your live shop is also at 1.3.5?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Oct 2006, 3:16 PM
#16
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Yes, it is also in 1.3.5
I have tested to remove the contribs one by one, removed & added languages again...(thought might be related to multilingual issues as I have 3 languages installed)
Nothing worked...
I even tried to install the contribs I have to the testshop
Arghhhh....whatever I do, it works on "dr. Bytes" :laugh: original shop. Won't work on mine...
And it is only the PROD_CAT & CAT_CAT define. PROD_PROD works fine.
I will load my products data into the testshop and try again

16 Oct 2006, 3:36 PM
#17
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Well, that is what I was afraid of...I loaded the liveshop data into the testshop
Around 180 categories, 10.000 products
No additional changes made..
It doesn't work.
Is there any totals related configuration I miss?

16 Oct 2006, 3:47 PM
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Please be sure prod to prod works, and I will send you some debug code tonight so we can see what's happening.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Oct 2006, 4:02 PM
#19
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hello Scott,

thank you. Yes, prod to prod is working fine.
I will PM you the URL of the shop as it is a non indexed B2B Wholesale Shop.
I will post the solution to be available to the following users with the same issue.
However, I am somehow sure that it is not related to this contribution, might be a bug in my categories index.

16 Oct 2006, 11:48 PM
#20
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

New caveat (will be added to documentation shortly) - if you are using the prod_to_cat or cat_to_cat features, please check the master_categories_id field in the products table, and ensure that it's the category for this product. If you manually loaded the data or did something out of the ordinary to populate your database, it might be set to 0, in which case you will need to fix it.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.