Jump to content

Correcting Program Spelling Errors


markscarts

Recommended Posts

Some folk could not care less, while to others reading misspelled words is a major irritant. If you've noticed that the word "shipping" is misspelled in the Ship-by-Weight module, at least through version 3.0.2, and would like to correct it, here's how:

OPEN <root directory>/admin/modules/shipping/By_Weight/index.php

FIND all instances of the word shiping and replace with shipping.

Also, for those sites operating in the USA and allowing mail orders, you might want to use the word check in place of the UK spelling, cheque.

OPEN <root directory>/modules/gateway/Print_Order_Form/orderForm.php

FIND:

	if($module['cheque'] == 1){

  $print_order_form->assign("LANG_PAY_BY_CHEQUE","Pay by cheque");

  $print_order_form->assign("VAL_MAKE_CHEQUES_PAYABLE_TO","Please make cheques payable to ".$module['payableTo'].".");

  $print_order_form->parse("order_form.check_true");

	}




REPLACE WITH:




	if($module['cheque'] == 1){

  $print_order_form->assign("LANG_PAY_BY_CHEQUE","Pay by check");

  $print_order_form->assign("VAL_MAKE_CHEQUES_PAYABLE_TO","Please make checks payable to ".$module['payableTo'].".");

  $print_order_form->parse("order_form.check_true");

	}




While you're in the vicinity, you may wish to open the actual order form and add a link back to your site, so that customers can go back to the site easily after ordering by mail . . .



OPEN <root directory>/modules/gateway/Print_Order_Form/orderForm.tpl



FIND:




</div>

</body>

</html>




REPLACE WITH:




</div><div><p align="center" class="copyText" style="margin-bottom:1em"><a style="color:blue" href="http://YOUR SITE'S URL/index.php"><b>

Return to Store</b></a></p></div>

</body>

</html>

Just remember in the code above to replace YOUR SITE'S URL with, you guessed it, your own site's actual URL :D

As a CubeCart Newbie who is ignorant of PHP, I am happy to share my very simple tips for other newbies. Comments, suggestions appreciated.

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...