Zen Cart Logo
Forums / All Other Contributions/Addons / Free Gifts-Dangling Carrot support

Free Gifts-Dangling Carrot support

Views: 48,555

Results 1 to 20 of 237
25 Oct 2008, 9:52 AM
#1
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Free Gifts-Dangling Carrot support

This is the official thread for support on the Zen Cart port of Dangling Carrot.
In the early release, many core files are modified. This port was quite complex and we are hoping to modify the code to reduce the number of core files that are overwritten.

While we did a lot of testing on the mod prior to release, there may be things we missed, so if you experience any problems with the mod, please post them here.

Regards
Steve

25 Oct 2008, 2:57 PM
#2
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello there,

So far, I get this on the shopping cart page:-

1146 Table 'gemtree_zc2.products' doesn't exist
in:
[SELECT fg.*, p.products_id, p.products_model, p.products_price, p.products_image, p.products_status, pd.products_name FROM (zen_free_gifts fg, products p) LEFT JOIN products_description pd ON (pd.products_id=fg.products_id) WHERE pd.language_id = '1' AND p.products_id = fg.products_id ORDER BY fg.threshold ASC]

I reckon it is because I use prefix. The error disappears when I remove main_template_vars.php from includes/modules/pages/shopping_cart though.

Thanks

Heathenmagic

25 Oct 2008, 4:14 PM
#3
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Are you using V1.1, or V1.2 which was made available earlier today?

26 Oct 2008, 11:22 AM
#4
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello there,

I am using V1.2. I am just going through the install and checking I haven't missed anything.
:smile:

26 Oct 2008, 12:01 PM
#5
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello Steve,

I tried the Free Gifts under catalog in the admin, and I get a similar message on there. I am sure I have everything installed nicely, and I put the SQL statement through ok.

Regards,

James

26 Oct 2008, 2:13 PM
#6
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Hi James,

Can you tell me what version of MySql is being used on your server?
You can get this info from Zen admin under tools, server/version info.

This error is not something that i've had during numerous test installs, so bear with me while i try and re-create the problem here.

Thanks
Steve

26 Oct 2008, 3:36 PM
#7
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello Steve,

Thanks for getting back to me so quick. I have the following php:-

PHP Version: 4.4.9 (Zend: 1.3.0)

In the meantime, I put zen_ in front of the tables those two files couldn't find, and I am getting into the admin Free Gifts page. I'll let you know if I see anything else.

Regards,

James

26 Oct 2008, 5:04 PM
#8
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Hi James,

The problem is caused by the additional SQL queries inserted into the database.
They do not have the prefix that has been used when your original site was configured.
Neither the new tables, or the modified tables will be correct.

Please see the following SQL query, and substitute YOUR PREFIX with whatever you have set as a prefix.
Run the query either through zen admin, or phpmyadmin.
Be sure to back up your database first.

CREATE TABLE YOUR PREFIX_free_gifts (
gift_id tinyint(4) NOT NULL auto_increment,
threshold mediumint(9) NOT NULL default '0',
products_id mediumint(9) NOT NULL default '0',
PRIMARY KEY (gift_id)
) TYPE=MyISAM;

insert into YOUR PREFIX_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values (1200, 'Gifts Image Width', 'GIFTS_IMAGE_WIDTH', '90', 'The pixel width of heading images', '4', '25', now(), now(), NULL, NULL);
insert into YOUR PREFIX_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values (1201, 'Gifts Image Height', 'GIFTS_IMAGE_HEIGHT', '100', 'The pixel height of heading images', '4', '26', now(), now(), NULL, NULL);
UPDATE YOUR PREFIX_configuration_group SET sort_order=last_insert_id() WHERE configuration_group_id=last_insert_id();

ALTER TABLE YOUR PREFIX_products ADD products_carrot tinyint(1) default '0' AFTER products_status ;

That should solve all your problems.

Regards
Steve

26 Oct 2008, 11:03 PM
#9
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello Steve,

Many thanks, I had a strong feeling it was something like that. I will upload those two files again, and apply that modified SQL statement. I was wondering, could this also affect the way the shopping cart box and gifts box works? I have a random amount of 5 products in the gift box - but only made 1 free gift so far. And the message for free gift qualify doesn't appear in the shopping cart also. I have no error messages appearing anywhere.

Thanks in advance,
James:cool:

26 Oct 2008, 11:15 PM
#10
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Yes, the incorrect table alterations in the db will cause a lot of the mod to function incorrectly. The cart message relies on various information pulled from the database, if the relevant variables are not filled, then the message will not display.

Let me know if you have any more problems.

Regards
Steve

27 Oct 2008, 12:19 AM
#11
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Free Gifts-Dangling Carrot support

Hello Steve,

I carefully amended the SQL with my prefix, and took out the YOUR parts too. Sadly, I get the error messages I reported previously. I will try applying the Zen_ prefixes to the parts of the files that need them, and see which bits are needed for the sideboxes. It must be because of our setup somehow. I will take a crack at it tomorrow with fresh eyes.

Many thanks,

James

27 Oct 2008, 8:34 AM
#12
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

See Private Message

28 Oct 2008, 8:06 PM
#13
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

V1.3 uploaded to fix issue where sites with db prefix caused sql query errors.

5 Nov 2008, 1:34 PM
#14
tonyb avatar

tonyb

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I am using the latest version of zen cart as of 3rd Nov 08 and have downloaded the latest version of the free gifts 'dangling carrot' mod. Having installed the mod, the admin page for my site has completely disappeared and all I get is the message:

Fatal error: Cannot redeclare zen_address_format() (previously declared in /home/sites/discoveryelectronics.co.uk/public_html/admin/includes/functions/general.php:470) in /home/sites/discoveryelectronics.co.uk/public_html/admin/includes/functions/functions_customers.php on line 35

Can anyone please help?

Thanks,
Tony

5 Nov 2008, 11:41 PM
#15
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Hi Tony,

This module is not yet compliant with version 1.3.8 of Zen Cart. It has only been tested up to version 1.3.7

I'm hoping to update the mod to suit 1.3.8 at some point in the future, but have many other commitments at this time.

Apologies for any inconvenience.

Regards
Steve

16 Nov 2008, 12:29 PM
#16
cjhearn avatar

cjhearn

New Zenner

Join Date:
Jan 2008
Posts:
14
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I'm interested in a version for ZC v1.3.8. Any idea if this is likely to be available soon (no pressure! :wink:)?

18 Nov 2008, 9:17 PM
#17
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

I'm jumping on the ME TOO wagon
JOhn ><>

19 Nov 2008, 11:56 PM
#18
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

I'm working on it guys n girls.
I want to try and reduce the number of core files modded at the same time, but if you're desperate i can do a 1.3.8 version without the other updates much sooner.

Regards
Steve

20 Nov 2008, 2:13 PM
#19
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Thank You for all your hard work, I really appreciate all you do for the community.
JOhn ><>

24 Nov 2008, 2:43 AM
#20
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

Me three! also waiting for 1.3.8. Thanks for this great mod! :clap: