Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Developers, Mods and Updaters
 PHP Mods
 Better address pasting for PirateShip.com shipping
Author « Topic »  

OrientalOutpost
Advanced Member

China
302 Posts

Pre-sales questions only
(More Details...)

Posted - 01/24/2022 :  09:53:25  
If you are using PirateShip.com (another free shipping service like Stamps.com or Endicia.com, but no monthly fee), the "Copy to Clipboard" function on ECT works pretty well, but neglects the customer's email address, which you must copy and past separately. Here is a fix:

In incorders.php

Find:

document.getElementById('addressdiv').style.display='block';

And right before that line, add:

document.getElementById('addresstextarea').value+="\r\n" + document.getElementById('ordEmail').innerHTML;

Find:

if($isprinter || $doedit) print editspecial($alldata['ordEmail'],'email',35,'AUTOCOMPLETE="off" onkeydown="return combokey(this,event)" onkeyup="combochange(this,event)"'); else print '<a href="mailto:' . htmlspecials($alldata['ordEmail']) . '">' . htmlspecials($alldata['ordEmail']) . '</a>';


And change that to:

if($isprinter || $doedit) print editspecial($alldata['ordEmail'],'email',35,'AUTOCOMPLETE="off" onkeydown="return combokey(this,event)" onkeyup="combochange(this,event)"'); else print '<a id=ordEmail href="mailto:' . htmlspecials($alldata['ordEmail']) . '">' . htmlspecials($alldata['ordEmail']) . '</a>';

That just adds id=ordEmail so that the javascript popupaddress() which does the "Copy to Clipboard" function can find and grab the email address.

PirateShip.com can ship internationally from the USA with First Class International for reasonable rates. They recently added UPS Ground to Canada for commercial rates that are cheaper than USPS (because you are effectively shipping UPS on their account, you get the lowest tier rates too!). It automatically defaults to the cheapest way to get your package to the destination, domestically or internationally. Saves me a ton of money!

Their domestic Priority Mail rates are the discounted/commercial rates as well. If your parcels or > 1 lb, this is usually a good deal until you get heavier and UPS is cheaper. If 1 lb or under, Sendle.com has the best deal with a special First Class rate.

[url="https://www.OrientalOutpost.com"]Oriental Outpost Custom Wall Scrolls[/url]
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000