Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

4.4.5 MOD providing easy changing of PO Customer Order

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-02-2012, 12:38 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default 4.4.5 MOD providing easy changing of PO Customer Order

Hi,

I have the need to provide additional fields for registered users where easy update capability at check out can be done. Two of these fields are

1) Purchase Order number
2) Shipping to a residence checkbox
-(I ship FedEx and if I ship via FedEx Ground to a residence I get an additional surcharge over the regular residence over ground surcharge (about $2.75) If I ship all ground orders as FedEx Home, I pay the unneeded Home surcharge (about $2.75) on all orders. So being able to distinguish between residence and commercial addresses is helpful. Not all customers select this option for a residence, but some is better than none. Also, the real time shipping option I provide for all ground, is just FedEx Ground. I don't offer FedEx Home -- as that is too confusing for the customer.

The following are the changes I made, and they appear to work fine. So far, I haven't seen any problems that I caused.

1) Added Additional Field in General Settings->User Profile
a) PO Number
b) Ship to residence checkbox

2) Changed Languages->Label -
lbl_additional_information
From "Additional Information" to "General Information"

3) I'm using Fast Lane Checkout, so my changes apply to those modules - I did NOT make this change operate as a 'pop-up' window, mainly because I didn't know how to get the pop up to point directly to the "Account Details" panel -- if I did know how to do this, that is what I would have done.

Code Changes to
common_files/modules/Fast_Lane_Checkout/customer_details_html.tpl

Around line 275
AFTER
<table cellspacing="0" class="flc-checkout-address" summary="{$lng.lbl_additional_information|escape}" >
{$smarty.capture.addfields}

ADDED
{if $login ne ''}
{assign var=modify_url value="register.php"}
{assign var=link_href value="register.php"}
{/if}
<tr><td colspan="2">{include file="customer/buttons/modify.tpl" href=$modify_url link_href=$link_href|default:$modify_url style="link"}</td></tr>

****
This appears to work for me - If anyone tries to use, and sees a problem, please let me know. If this mod can be helpful to any others -- enjoy!

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:34 AM.

   

 
X-Cart forums © 2001-2020