USPS plugin, how to set descriptions...

  • Posts: 17
  • Thank you received: 1
12 years 4 days ago #75811

I hope I'm using the latest, since my registered copy of hikashop didn't come with a USPS plugin, and I had to install one I found on the forums that apparently was posted 5 months ago (I just registered my copy last month, btw)

But anyway, I noticed that it doesn't say the shipping times for each method (priority, international, express, first-class, etc.) And this would be really, really useful for the customer to know what they're paying for - especially since Priority and First class have the same Shipping time (3-5 days), the only difference is that Priority is required for packages over 13 oz.

So when I try to change the description in the form box, it applies it to all. There is no way within Joomla/Hikashop backend to change this - I'll have to code this.

Is there a newer version that states these things that I'm missing? Or is this an unofficial plugin?

Also, I would like to able to tack on a handling fee, like the other modules do. And it would be nice to be able to set values for each shipping method, as currently there is no way to allow Priority only if it meets the minimum weight (as far as I can tell anyway.) There is only the ability to turn it on or off completely.

I know I could just use the Manual Shipping modules, but that is a really huge headache, and I know because I tried reading over all the rules and shipping price charts found on USPS's website.

Anyway, has anyone made these changes on their own and care to share the code? Or is there a version that already functions like the other modules?

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 1
12 years 4 days ago #75823

I'm coding it myself by replacing lines 634-637

if($shipping_description ==$type.'_DESCRIPTION') {
$shipping_description = '';
}

with
				  if($shipping_description !=$type.'_DESCRIPTION'){ 
					 /*if($usps_rates["Service"] == 'First-Class Mail') {*/
					$shipping_description = 'overnight delivery to most locations, free tracking and $100 insurance';

						}
					if($shipping_description =='PRIORITY_DESCRIPTION'){
					$shipping_description = '2-3 day delivery, free delivery confirmation';
					}
					if($shipping_description =='FIRST CLASS_DESCRIPTION'){
					$shipping_description = '2-3 day delivery';
					}
					if($shipping_description =='PARCEL_DESCRIPTION'){
					$shipping_description = '2-8 day delivery';
					}

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
12 years 4 days ago #75892

Hi,

You can create language overrides for these.
Like

PRIORITY_DESCRIPTION="2-3 day delivery, free delivery confirmation"
FIRST CLASS_DESCRIPTION="2-3 day delivery"
PARCEL_DESCRIPTION="2-8 day delivery"

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum