HomeLog InRegisterSearch the ForumHelp
   
Shopping Cart Software e-Commerce Forums > BV Commerce 5 > BV Commerce 5 Customization > Quick fix to Gift Wrapping  Forum Quick Jump
 
New Topic Post Reply Printable Version
[ << Previous Thread | Next Thread >> | Show Newest Post First ]

CCB Paul
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2009
Total Posts : 37
 
   Posted 6/2/2010 11:33 AM (GMT -4)    Quote This PostAlert An Admin About This Post.
Hi all,

With us just having migrated to 5.7 I was reminded of a problem and the fix that we did that I wanted to share.

The problem we were having is that, in a nutshell, we don't do gift wrapping. Ever. The store however refuses to out right eliminate the gift wrap button. The problem is that the global GiftWrapAllowed variable is part of a if-and-than-else statement and not higher up in a nested hierarchy format. Thus you can turn off gift wraping but the button would always show up.

I'm sure that many others have solved this but I wanted to pass on the fix for others more wary at digging into code blindly. The fix is located in the Cart.aspx.vb code and is rather simple starting at line 259:


                    If (WebAppSettings.GiftWrapAll = False) And (gwp.GiftWrapAllowed = False) Then


That is the original line which you will need to change to:


                If (WebAppSettings.GiftWrapAll = True) Then
                                 If (gwp.GiftWrapAllowed = False) Then 


Then further down starting at line 298 you will need to change this:


                        End If
                    End If
                End If
                ' End 5.4 Gift Wrap Code


To this:


                        End If
                    End If
         Else
                           btnGiftWrap.Visible = False
                           lblGiftWrap.Visible = False
                           lblGiftWrapQty.Visible = False
                           lblgiftwrapprice.Visible = False
        End If
            End If
                ' End 5.4 Gift Wrap Code


I hope this helps anyone looking to make sure that the global gift wrap setting overrides all as (IMHO) it should. :-)

Good luck.

cool


Paul Pettit
CIO, CCB Inc.

www.ccbnonprofits.com

Serving those that server others with affordable technology solutions.

Post Edited (CCB Paul) : 6/2/2010 11:50:55 AM (GMT-4)

Back to Top
 

birdsafe
BVC Expert



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Feb 2007
Total Posts : 1329
 
   Posted 6/2/2010 11:55 AM (GMT -4)    Quote This PostAlert An Admin About This Post.
Where are you seeing Gift Wrap show up? We never offer it either, but have never had an issue with it showing up anywhere with any version.


Joe Arbogast
www.birdsafe.com
www.birdsafestore.com
Mona Vie -- Health & Opportunity!
Applied Innovations Hosting

Back to Top
 

CCB Paul
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2009
Total Posts : 37
 
   Posted 6/2/2010 12:43 PM (GMT -4)    Quote This PostAlert An Admin About This Post.
The button always showed up in the cart on our site even when the GiftWrapAll variable was set to false. I can't speak for others only what was happening on our site.

The problem (for us) seemed to be the GiftWrapAll variable was included with the GiftWrapAllowed variable as an and/or part of the if-than-else statement. Simply separating the two, and making the more global admin controlled variable override all others seems to have fixed the issue. I'm not saying this applies to everyone but if someone is seeing the same thing and wanted to know how to fix it. there you go.


Paul Pettit
CIO, CCB Inc.

www.ccbnonprofits.com

Serving those that server others with affordable technology solutions.

Post Edited (CCB Paul) : 6/2/2010 11:54:07 AM (GMT-4)

Back to Top
 
New Topic Post Reply Printable Version
 
Forum Information
Currently it is Wednesday, September 08, 2010 11:34 PM (GMT -4)
There are a total of 57,382 posts in 12,471 threads.
In the last 3 days there were 2 new threads and 19 reply posts. View Active Threads
Who's Online
9 Guest(s), 0 Registered Member(s) are currently online.  Details