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

Better Together Contribution Support Thread

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

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
25 Sep 2006, 06:05
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Better Together Contribution Support Thread

Is it just me, or is this coded specifically for PHP5 ?
Seems to be incompatible with PHP4 ...
26 Sep 2006, 10:15
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
26 Sep 2006, 10:34
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
26 Sep 2006, 15:45
#5
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
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.
26 Sep 2006, 16:53
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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 ...
26 Sep 2006, 16:58
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
26 Sep 2006, 18:02
#8
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Posts:
730
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, 18:12
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
26 Sep 2006, 22:15
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
27 Sep 2006, 02:18
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

Re: Better Together Contribution Support Thread

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

Scott
15 Oct 2006, 21:25
#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, 01:15
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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
16 Oct 2006, 10:43
#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
#15
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

Re: Better Together Contribution Support Thread

Your live shop is also at 1.3.5?
16 Oct 2006, 15:16
#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, 15:36
#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, 15:47
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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.
16 Oct 2006, 16:02
#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, 23:48
#20
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

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