Zen Cart Logo
Forums / All Other Contributions/Addons / Gift Wrapping Contribution

Gift Wrapping Contribution

Views: 90,257

Results 21 to 40 of 389
23 Aug 2007, 00:14
#21
swguy avatar

swguy

Administrator

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

Gift Wrapping Contribution

If by "1-3 items" you mean 1-3 of the same item, modify calculate_wrap_fee_oneitem() to compute $fee based on $wrapitems. If by 1-3 items, you mean the total number of items in the cart, modify calculate_wrap_fee() to return the number of items, sum it inside the loop where calculate_wrap_fee is called, and determine the fee after the end of the loop.

23 Aug 2007, 00:53
#22
tatiana77 avatar

tatiana77

Zen Follower

Join Date:
May 2007
Posts:
114
Plugin Contributions:
0

Re: Gift Wrapping Contribution

Loop the wha to the who?

I'm sorry Scott. I don't wanna mess up I'm going live in a week... if you know how I can code it for > 1-3 items, you mean the total number of items in the cart

TIA... if you get the chance :)

23 Aug 2007, 10:23
#23
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

I'm going to update this mod (hopefully in late Sept) to add the ability to charge in different ways.

11 Sep 2007, 13:18
#24
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

I have a design for making gift wrapping a per product selection at checkout time which I hope to implement before the end of October. Stay tuned.

14 Oct 2007, 02:50
#25
djallen avatar

djallen

New Zenner

Join Date:
Oct 2007
Posts:
1
Plugin Contributions:
0

Re: Gift Wrapping Contribution

The new 2.0 modules looks great, with features that are sure to be loved by many. I've been working with the previous version and this takes it to a whole new level. Thanks for working on this. :clap:

I downloaded from your website (http://www.thatsoftwareguy.com/zencart_giftwrap_checkout.html) and installed, but now when I try to checkout I receive an error either after I have a cart and try to login or when I'm logged in and hit the checkout button on the cart that says "cannot redeclare class .... /includes/classes/order.php in line 20"

I'm wondering if I didn't get something copied to the correct location, so will work tomorrow on that. Has anyone seen anything similar? Thanks!

14 Oct 2007, 07:03
#26
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

It sounds as though you may have simply renamed the original "includes/classes/order.php" to another file that still has the ".php" extension. Instead, rename it to (say) "includes/classes/order.php.old" This was it won't be loaded.

14 Oct 2007, 22:32
#27
gmoyle avatar

gmoyle

Zen Follower

Join Date:
Jan 2004
Location:
Reno, NV
Posts:
98
Plugin Contributions:
1

Re: Gift Wrapping Contribution

LOVE THIS MOD! Going to make a contribution for it right now.

Couple questions

Has anyone tried to integrate it into Super Orders Mod?

Where do I update the copy for the Gift Wrapping Poppup link?

Greg

14 Oct 2007, 23:12
#28
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

Thank you. In answer to your questions:

  • the popup is in ./includes/languages/english/extra_definitions/giftwrap.php
    I'll add this detail to the install instructions.

  • To integrate with Super Orders, just take that block of code from l. 501 - 555 and
    paste it in to super_orders.php just before the inclusion of orders_download.php.
    Actually, this is another great thing to add to the instructions.

Thanks,
Scott

15 Oct 2007, 00:27
#29
gmoyle avatar

gmoyle

Zen Follower

Join Date:
Jan 2004
Location:
Reno, NV
Posts:
98
Plugin Contributions:
1

Re: Gift Wrapping Contribution

Fantastic. Thanks for the quick reply.

24 Oct 2007, 19:07
#30
cdennison avatar

cdennison

New Zenner

Join Date:
Oct 2007
Posts:
6
Plugin Contributions:
0

Re: Gift Wrapping Contribution

hi Scott. Like most others i am very appreciative for your mods/work. I do have a question - and its not that big - but i was hoping to have the gift wrap attribute be under the other attributes. i made all the changes in terms of ordering the attributes and still it seems to be first in order. any idea how to move it to last in order?

if this is a frighteningly dumb question, i apologize in advance.

Thanks!

24 Oct 2007, 19:19
#31
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

The answer to your question is: the attribute display logic is part of the Zen Cart core that you probably don't want to change unless you're an expert.

Having said that, this week I'm going to put a new version of this contribution on the Zen Cart download server that won't require separate attributes. Prob. end of the week.

Scott

25 Oct 2007, 23:26
#33
duffy avatar

duffy

New Zenner

Join Date:
Aug 2005
Location:
Johnstown, PA, USA
Posts:
45
Plugin Contributions:
0

Re: Gift Wrapping Contribution

I installed this mod on a test store on my PC running Zen version 1.3.7 with no other mods installed. When running my first test order I get the following error:

Fatal error: Cannot redeclare class order in C:\htdocs\store\includes\classes\order.php on line **1030

**Any ideas? Thanks, by the way, for your great work with Zen Cart!

26 Oct 2007, 00:34
#34
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

You want to rename the previous version of "order.php" to something with a file extension other than "php." For instance, "order.php.old" You have called it (something like) "order.old.php" and it can't figure out which is the real "order" class.

26 Oct 2007, 01:26
#35
duffy avatar

duffy

New Zenner

Join Date:
Aug 2005
Location:
Johnstown, PA, USA
Posts:
45
Plugin Contributions:
0

Re: Gift Wrapping Contribution

Thanks for your prompt reply. I renamed the original order.php as order.phpORIG when I first loaded the mod. Doubled checked just to be sure, and then removed it from the classes folder altogether. Still have the problem.

26 Oct 2007, 20:10
#36
duffy avatar

duffy

New Zenner

Join Date:
Aug 2005
Location:
Johnstown, PA, USA
Posts:
45
Plugin Contributions:
0

Re: Gift Wrapping Contribution

Thanks to all your help on this Scott, it was determined the problem was with the Windows install on local machine. Once installed on the live site it worked fine! :clap:

26 Oct 2007, 20:12
#37
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

Specifically, when downloading from the contribution area to a local Windows machine, the last line of includes/classes/orders.php was changed to

}?>

changing it back to
}
?>

resolved the problem.

28 Oct 2007, 01:46
#38
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Gift Wrapping Contribution

Does this allow customers to choose between different gift wrapping options? I was thinking I would like to offer several different color option..

28 Oct 2007, 03:11
#39
swguy avatar

swguy

Administrator

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

Re: Gift Wrapping Contribution

Not yet, but that's in the plan.

28 Oct 2007, 03:13
#40
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Gift Wrapping Contribution

Cool... I think that would be nice - especially if you want theme wrapping

Birthday
Hannaka
Xmas....