IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#24942 - 06/23/08 09:57 AM No Ship To Address for users!!
P. Brittle Offline
Member

Registered: 04/02/04
Posts: 37
We have a case where the departments will not have a "ship to" address because there isn't a physical address for the departments. The users for each department have separate locations.

Ideally, I would be able to enter an address when setting up the user. This appears to be impossible. The next option would be to have individuals put in their own address but when checking out there are no obvious fields for putting in a "ship to" address. There used to be a place for the user to enter shipping info when checking out (before the shopping cart) but that appears to be gone.

Are there any work arounds for adding user addresses? If not, do you have any other suggestions?
_________________________
P. Brittle

Top
#24943 - 06/23/08 11:22 AM Re: No Ship To Address for users!!
cosimo Offline
OL Expert

Registered: 10/31/01
Posts: 1286
Loc: montreal
Hi,
You can enter a custom shipping address by clicking the pencil icon in the 'Shipping Options' page. This will display a dialog allow you to specify the shipping address information.

Thanks
Cosimo

Top
#24944 - 06/23/08 02:46 PM Re: No Ship To Address for users!!
P. Brittle Offline
Member

Registered: 04/02/04
Posts: 37
Thanks, I do realize that but I was hoping for a workaround of some sort. The people who will be ordering on this site may or may not be computer saavy and the current setup would allow them easily order without providing shipping information. Is it possible to have the shipping page come in as a form to be filled out rather than a verification page?
_________________________
P. Brittle

Top
#24945 - 06/23/08 03:44 PM Re: No Ship To Address for users!!
cosimo Offline
OL Expert

Registered: 10/31/01
Posts: 1286
Loc: montreal
Hi,

you could use the skinning engine to check and see if the field has a value. Add the
following code to the end of template.php file of the skin. This will enable/disable the "Proceed"-button on the shipping otpions page in the
checkout.

The code below is a combination of PHP and JavaScript (acutally using
the JQuery library which is part of the PSW installation).
Ideally you create a separate php file for this code and include that one in the template.php. This will help keeping things organized (but it
is not required).
Code:
 <?
            if($_SESSION[nav][cPageID] == "checkout_shippingoptions"){
                
if($_SESSION[checkout][aOrder][aShipping][fcShippingAddress1] == ""){
                    ?>
                        <script language="JavaScript1.2">
                            $("#saveButton").attr("disabled", "disabled");
                            
$("#cShipToThisAddressFieldset").append("<div id=\"addresswarning\" 
style=\"margin-top:0.5em;padding-left:0.5em;color:red;\">Your address 
information is not complete. Click the pencil icon to enter the 
details</div>");
                        </script>
                    <?
                } else {
                    ?>
                        <script language="JavaScript1.2">
                            $("#saveButton").removeAttr('disabled');
                            $("#addresswarning").remove();
                        </script>
                    <?
                }
            }
?>
 
Hope this helps
Cosimo

Top
#24946 - 07/14/08 10:24 AM Re: No Ship To Address for users!!
P. Brittle Offline
Member

Registered: 04/02/04
Posts: 37
This is great. Thanks! smile
_________________________
P. Brittle

Top