Jump to content

Fix for Shipping by Category


Guest Guru Granny

Recommended Posts

Guest Guru Granny

In the "Shipping by Category" module of Version 3.0.17, I discovered an error for how international shipments were calculating. The amount entered as the "Per International Shipment" was being treated as the "Per International Item" and vice-versa. Rather than just entering the figures backwards, I decided to find the code that needed to be corrected. Here's how I fixed it.

The file to correct is http://www.yourdomain.com/yourstore/admin/categories/index.php. (I found the code on lines 277-284.)

The lines to be changed will look like this:

<tr>

<td class="tdText"><?php echo $lang['admin']['categories']['per_int_ship']; ?></td>

<td><input name="
item_int_ship
" value="<?php echo $results[0]['
item_int_ship
']; ?>" type="text" class="textbox" size="6" /></td>

</tr>

<tr>

<td class="tdText"><?php echo $lang['admin']['categories']['per_int_item']; ?></td>

<td><input name="
per_int_ship
" value="<?php echo $results[0]['
per_int_ship
']; ?>" type="text" class="textbox" size="6" /></td>

</tr>

Change the parts shown in red, so the lines look like this:

<tr>

<td class="tdText"><?php echo $lang['admin']['categories']['per_int_ship']; ?></td>

<td><input name="
per_int_ship
" value="<?php echo $results[0]['
per_int_ship
']; ?>" type="text" class="textbox" size="6" /></td>

</tr>

<tr>

<td class="tdText"><?php echo $lang['admin']['categories']['per_int_item']; ?></td>

<td><input name="
item_int_ship
" value="<?php echo $results[0]['
item_int_ship
']; ?>" type="text" class="textbox" size="6" /></td>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...