Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Module problem


mom2ashley

Recommended Posts

Posted

Hi

When I go to Admin->Modules-> Shipping, a list of shipping methods are listed but funnily enough, there is no option on the right to install/uninstall/edit the shipping methods. Can someone please help me please?

 

It only happens to the Shipping Module. The rest of the modules i.e. payment, order totals modules have the option to install/uninstall/edit.

 

I'm not familiar with php. Any help to point me to the file to look at / code will be much appreciated.

 

Rgds

mom2ashley

Posted
can anyone please help?

Maybe you did something with the layout??????

Posted
Maybe you did something with the layout??????

Hi

I wish I knew where to check. I've been searching high and low on the possible files to look at but in vain.

It only happens on the shipping module and not on other modules. Anyone else have any ideas? Your help will be greatly appreciated.

Posted
Hi

I wish I knew where to check. I've been searching high and low on the possible files to look at but in vain.

It only happens on the shipping module and not on other modules. Anyone else have any ideas? Your help will be greatly appreciated.

Replying to you PM.

 

The only time I has something similar was when installing the CCGV addon, and my payment boxes were squashed up.

Posted

Hi

screenshot.jpg Here is a screenshot of what I am referring to.

This is in admin-> Modules -> Shipping

Notice that there is no option to install/uninstall/edit the shipping module.

Posted
Hi

screenshot.jpg Here is a screenshot of what I am referring to.

This is in admin-> Modules -> Shipping

Notice that there is no option to install/uninstall/edit the shipping module.

You have an entry called regions, if that from USPS it might be the problem. If not, it may be something hogging 100% of the space.

 

You could delete both files of each module from the site (back them up first) and see if the problem goes away (you can copy them back later).

Posted

chek the configure group associated.

 

Are payment modules being editable.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
Notice that there is no option to install/uninstall/edit the shipping module.

 

This will coz if some codes missing on you admin/modules.php

 

find out that

 echo $box->infoBox($heading, $contents);

is with in your admin/modules.php

 

this info box contain that your installing button part

DJS

Posted

OR try out this.

 

put this complete codes

 

Find out:

?>
	  </tr>
	</table></td>
  </tr>
</table></td>
<!-- body_text_eof //-->

 

add before to this:

 

 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo '			<td width="25%" valign="top">' . "\n";

$box = new box;
echo $box->infoBox($heading, $contents);

echo '			</td>' . "\n";
 }

 

I think your problem will solve.

DJS

Posted
chek the configure group associated.

 

Are payment modules being editable.

 

Satish

Hi Satish

All modules are ok except for the shipping module. i.e. if I were to go to admin->modules->payment, I am able to install/uninstall/edit any of the payment modules.

 

Rgds

mom2ashley

Posted
OR try out this.

 

put this complete codes

 

Find out:

 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
   echo '            <td width="25%" valign="top">' . "\n";

   $box = new box;
   echo $box->infoBox($heading, $contents);

   echo '            </td>' . "\n";
 }
?>
         </tr>
       </table></td>
     </tr>
   </table></td>
<!-- body_text_eof //-->

 

Hence, my problem with the shipping module still persists. Do you have any other ideas? Appreciate your help.

 

Rgds

mom2ashley

Posted
Hi Dakshika

Thanks for taking time to respond to my post.

However, I've looked at my admin/modules.php file and it already has the codes that you suggested to put in i.e.

 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
   echo '            <td width="25%" valign="top">' . "\n";

   $box = new box;
   echo $box->infoBox($heading, $contents);

   echo '            </td>' . "\n";
 }
?>
         </tr>
       </table></td>
     </tr>
   </table></td>
<!-- body_text_eof //-->

 

Hence, my problem with the shipping module still persists. Do you have any other ideas? Appreciate your help.

 

Rgds

mom2ashley

For the record, I've also replaced the admin/modules.php file with the original modules.php file and it didn't solve anything. Hence I reckon the problem is not in admin/modules.php file...*sigh*...

Posted

Do you have another browser you can use, such as Firefox?

:unsure:

 

Maybe this is some wierd IE problem.

 

Another thing to try is to get the page up in your admin that you've posted the screen shot of. The one that doesn't display the install/remove/edit buttons.

 

<right-click> and choose "View source".

 

In the source code, search for "button".

 

Post anything found.

 

I'm thinking maybe the code is there, but for some wonky reason you just can't see the button.

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Do you have another browser you can use, such as Firefox?

:unsure:

 

Maybe this is some wierd IE problem.

 

Another thing to try is to get the page up in your admin that you've posted the screen shot of. The one that doesn't display the install/remove/edit buttons.

 

<right-click> and choose "View source".

 

In the source code, search for "button".

 

Post anything found.

 

I'm thinking maybe the code is there, but for some wonky reason you just can't see the button.

:huh:

 

Hi Germ

Thanks for taking time to respond to my post.

I did what you asked i.e. admin->modules->shipping (but on IE) and then right-clicked and 'view source' and searched for 'button'. The source doesn't contain anything with the word button. However, when I go to admin->modules->payment (which works ok), right clicked and chose view source and searched for button, I get this :

 <td align="center" class="infoBoxContent"><a href="https://www.great-expectations.com.my/admin/modules.php?set=payment&module=authorizenet&action=install"><img src="includes/languages/english/images/buttons/button_module_install.gif" border="0" alt="Install Module" title=" Install Module "></a></td>

 

Which means somehow, somewhere my button code is missing for my shipping modules.

So how do I go about this now? Edit admin/modules.php? I don't think this would work cause I replaced my modules.php with the orginal one and it still didn't work....

 

Any ideas? Thanks again for taking time to respond.

 

Rgds

mom2ashley

Posted

Try to install payment module in ur payment section after installing that find out button_edit.gif is on your source codes.

 

Then if not problem with ur module.php

 

find out that code is on ur file.

$keys = substr($keys, 0, strrpos($keys, '<br><br>'));

	$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove') . '">' . tep_image_button('button_module_remove.gif', IMAGE_MODULE_REMOVE) . '</a> <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['module']) ? '&module=' . $HTTP_GET_VARS['module'] : '') . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
	$contents[] = array('text' => '<br>' . $mInfo->description);
	$contents[] = array('text' => '<br>' . $keys);

 

if you did not find out this code and add above codes before below mention codes.

 

} else {
	$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install') . '">' . tep_image_button('button_module_install.gif', IMAGE_MODULE_INSTALL) . '</a>');
	$contents[] = array('text' => '<br>' . $mInfo->description);
  }

 

Keep Backup Before you done

DJS

Posted
Nope, deleted those files as requested. The problem remains....Thanks for helping:)

Is it the same for http as it is for https?

 

Does the shipping on the category side look ok?

Posted
Is it the same for http as it is for https?

 

Does the shipping on the category side look ok?

 

Hi Leslie

Yes it is the same for both http and https.

What did you mean by "Does the shipping on the category side look ok?" I don't quite understand your question.

Of all the modules in admin, everything work OK except for the shipping module. Was that what you were asking?

 

Rgds

mom2ashley

Posted

Obviously your root level admin/modules.php file is in place and not duplicated in admin/includes/languages/english/, otherwise you'd get a " cannot redeclare tep_db_connect" error.

 

So check in includes/modules/shipping/ that the files you have in there are not the same files you have in includes/languages/english/modules/shipping/

 

It would also help if you can tell us what you were doing on the website just before this error occurred. These things don't happen of their own accord and are usually as the result of something you were working on.

 

Also make sure that you have applied the fix listed here (applies to all modules):

http://www.oscommerce.com/forums/index.php?sho...mp;#entry923577

 

Vger

Posted
Hi Leslie

Yes it is the same for both http and https.

What did you mean by "Does the shipping on the category side look ok?" I don't quite understand your question.

Of all the modules in admin, everything work OK except for the shipping module. Was that what you were asking?

 

Rgds

mom2ashley

No, I meant when you go through the checkout process, but see Vger's post first.

Posted
Obviously your root level admin/modules.php file is in place and not duplicated in admin/includes/languages/english/, otherwise you'd get a " cannot redeclare tep_db_connect" error.

 

So check in includes/modules/shipping/ that the files you have in there are not the same files you have in includes/languages/english/modules/shipping/

 

It would also help if you can tell us what you were doing on the website just before this error occurred. These things don't happen of their own accord and are usually as the result of something you were working on.

 

Also make sure that you have applied the fix listed here (applies to all modules):

http://www.oscommerce.com/forums/index.php?sho...mp;#entry923577

 

Vger

 

Hi Vger

Thanks for taking time to respond to this. I appreciate it very much.

I've applied the fix as suggested in your reply. i.e. http://www.oscommerce.com/forums/index.php?sho...mp;#entry923577

 

I've also checked both the directories as advised i.e.

includes/modules/shipping

includes/languanges/english/modules/shipping

 

Both of these directories have files with the same names but the contents are different. i.e. file called mzmt.php in includes/modules/shipping and msmt.php in includes/languanges/english/modules/shipping have different contents.

 

What did I do before I discovered that the shipping module in admin is not working the way it should?

Installed - Easy Advanced Special Admin contrib - http://addons.oscommerce.com/info/5273

Applied this fix - http://www.oscommerce.com/forums/index.php?sho...quence&st=0

Discount Coupon Codes - http://addons.oscommerce.com/info/4269 contribution version 3.31

 

The thing is I'm not sure when exactly the shipping module started acting up. It could have been a long time now but I may have just realised it.

 

And you know how when you click on admin->modules->payment and the MODULE DIRECTORY http://home..... is stated at the bottom of the payment module box? Well, the MODULE DIRECTORY part does not appear when i click on admin->modules->shipping (where the oval is in the screenshot below)

 

shipping.JPG

Posted
No, I meant when you go through the checkout process, but see Vger's post first.

 

Hi Leslie

In the checkout process, the shipping options are shown.

But then I wanted to tweak the shipping charges and that's when I went to admin->modules->shipping and then discovered that I couldn't edit the shipping modules.

 

Rgds mom2ashley

Posted

Unless something has changed within your files, the files in the includes/languages etc should have the same names as the ones in the includes/modules etc. Unless when you typed mzmt.php or msmt.php it wa a typo.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...