Print Page | Close Window

Test modifications

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2510
Printed Date: 27-February-2025 at 5:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Test modifications
Posted By: bp_travis
Subject: Test modifications
Date 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



Replies:
Posted By: Hamish
Date 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 -
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 - http://wiki.earlyimpact.com/developers/editcode
Please note I have not tested this in any way.


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: bp_travis
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net