Skip to main content

USPS Online Prices?

12 years 1 month ago - 12 years 1 month ago #173848 by Mohamed Thelji
Replied by Mohamed Thelji on topic USPS Online Prices?
Hello,

If you want to apply for example, only 50% of the price of your USPS shipping method, the solution will be to change these lines :
Code:
foreach($rates as $finalRate) { $finalRate->shipping_ordering .= '_'.$i++; $usable_rates[$finalRate->shipping_id] = $finalRate; }
By :
Code:
foreach($rates as $finalRate) { $finalRate->shipping_price = ($finalRate->shipping_price * 50 ) / 100; $finalRate->shipping_ordering .= '_'.$i++; $usable_rates[$finalRate->shipping_id] = $finalRate; }
Last edit: 12 years 1 month ago by Mohamed Thelji.

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

12 years 3 weeks ago #176021 by wayneft
Replied by wayneft on topic USPS Online Prices?

Mohamed Thelji wrote: Hello,

If you want to apply for example, only 50% of the price of your USPS shipping method, the solution will be to change these lines :

Code:
foreach($rates as $finalRate) { $finalRate->shipping_ordering .= '_'.$i++; $usable_rates[$finalRate->shipping_id] = $finalRate; }
By :
Code:
foreach($rates as $finalRate) { $finalRate->shipping_price = ($finalRate->shipping_price * 50 ) / 100; $finalRate->shipping_ordering .= '_'.$i++; $usable_rates[$finalRate->shipping_id] = $finalRate; }


I don't see those 3 lines of code in the file. Are you referencing the most up to date plugin? Is there a reason you can just plug a negative percentage into the Percentage field in the plugin? I tried doing it but there doesn't seem to be any consistency to how the value is applied.

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

12 years 2 weeks ago #176189 by Mohamed Thelji
Replied by Mohamed Thelji on topic USPS Online Prices?
Yes,
I'm referencing the most up to date plugin, are you editing the "plugins\hikashopshipping\usps\usps.php" file ?

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

12 years 2 weeks ago #176301 by wayneft
Replied by wayneft on topic USPS Online Prices?
Line #251 shows this:
Code:
foreach($rates as $finalRate) { $usable_rates[$finalRate->shipping_id] = $finalRate; }

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

12 years 2 weeks ago #176328 by Mohamed Thelji
Replied by Mohamed Thelji on topic USPS Online Prices?
Ok, so can you download the last Hikashop version through our website, install it and check it again ?

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

Time to create page: 0.131 seconds
Powered by Kunena Forum