ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Test modifications
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Test modifications

 Post Reply Post Reply
Author
Message
bp_travis View Drop Down
Newbie
Newbie


Joined: 27-June-2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bp_travis Quote  Post ReplyReply Direct Link To This Post Topic: Test modifications
    Posted: 24-February-2009 at 4:22pm
I am doing modifications to my store and I don't want it live during the modifications, but I need to be able to access the store the test the modifications. So basically I need like a back way into the store while it is otherwise turned off to the public so I can test my changes.

Thanks
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 28-February-2009 at 7:43pm
Hi,
   It depends what modifications you wish to carry out.
If you wish to try a different header/footer then I would create a different customer group with a test user within it and then add code to display a different header and footer to that customer group :
http://wiki.earlyimpact.com/how_to/show_different_content_customer_type#leveraging_customer_pricing_categories


To display the site to ve taken a look at the code and I believe the easiest method would be to modify :
pcStartSession.asp and viewCart.asp. Look for :

'*******************************
' Check if store is ON or OFF
'*******************************
If scStoreOff="1" then
    response.redirect "msg.asp?message=83"
End If


Create a test "customer" and then modify the code along the lines of :

'*******************************
' Check if store is ON or OFF
'*******************************
If scStoreOff="1" and session("idcustomer")<>"99" Then
    response.redirect "msg.asp?message=83"
End If


Where "99" is set to match your test customer ID.
To make use of this either login BEFORE switching off the store, or  login to the admin pages and then place an order as your test user account/

Of course, back up the files before you change them etc.
http://wiki.earlyimpact.com/developers/editcode
Please note I have not tested this in any way.
Back to Top
bp_travis View Drop Down
Newbie
Newbie


Joined: 27-June-2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bp_travis Quote  Post ReplyReply Direct Link To This Post Posted: 02-March-2009 at 5:20pm
Hello. Thanks for the tips! I will definitely have to try those techniques when I go to test the store. I am actually going to be experimenting with the UPS online shipping tools, and I'm not sure what the results are going to be, so I wanted the store off to the public, but open to me so I can see if it is going to work.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.