{"id":55223,"date":"2015-10-01T05:03:30","date_gmt":"2015-10-01T09:03:30","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=55223"},"modified":"2017-06-24T08:58:26","modified_gmt":"2017-06-24T12:58:26","slug":"oscommerce-how-to-create-custom-page-with-link-in-footerheader-menu-in-multilingual-website-2","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/oscommerce-how-to-create-custom-page-with-link-in-footerheader-menu-in-multilingual-website-2.html","title":{"rendered":"osCommerce. How to create custom page with a link in footer\/header menu (in multilingual website)"},"content":{"rendered":"<p>This tutorial will show you how to create new page(s) in multilingual osCommerce site.<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=2uk7WuYMF7w?width=1280&amp;height=720\" rel=\"prettyPhoto\">osCommerce. How to create custom page with link in footer\/header menu (in multilingual website)<\/a>\r\n<ol>\r\n<li><p>Let&#8217;s take a Shipping page as a template for our new page. Open osCommerce installation directory and locate <strong>shipping.php<\/strong> file.<\/p><\/li>\r\n\r\n<li><p>Copy the file and rename it. For example, to <strong>newpage.php<\/strong>.<\/p><\/li>\r\n\r\n<li><p>Open this file and change:<\/p>\r\n<pre class=\"brush:php\">\r\n  require(DIR_WS_LANGUAGES . $language . '\/' . FILENAME_SHIPPING);\r\n  $breadcrumb-&gt;add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));<\/pre>\r\n\r\n<p>To:<\/p>\r\n <pre class=\"brush:php\">\r\n  require(DIR_WS_LANGUAGES . $language . '\/' . FILENAME_NEWPAGE);\r\n  $breadcrumb-&gt;add(NAVBAR_TITLE, tep_href_link(FILENAME_NEWPAGE));<\/pre>\r\n<\/li>\r\n\r\n<li><p>Make sure that this file includes the following:<\/p>\r\n\r\n<pre class=\"brush:php\">\r\n&lt;?php echo TEXT_INFORMATION; ?&gt; <\/pre>\r\n\r\n<p><strong>TEXT_INFORMATION<\/strong> will include your page content defined in each language that you are using on your site:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1-300x138.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1\" width=\"300\" height=\"138\" class=\"aligncenter size-medium wp-image-55224\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1-300x138.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1-150x69.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_1.jpg 931w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n  \r\n<li><p>Open <strong>\/includes<\/strong> folder and edit <strong>filenames.php<\/strong> file. Add new line and define new file name as follows:<\/p>\r\n<pre class=\"brush:php\">define('FILENAME_NEWPAGE', 'newpage.php');<\/pre>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2-300x208.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2\" width=\"300\" height=\"208\" class=\"aligncenter size-medium wp-image-55225\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2-300x208.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2-150x104.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_2.jpg 985w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li><p>Open <strong>includes\/languages\/english<\/strong> directory. Locate <strong>shipping.php<\/strong> file, copy it and rename to <strong>newpage.php<\/strong>.<\/p><\/li>\r\n\r\n<li><p>Open <strong>newpage.php<\/strong> file and change its content:<\/p>\r\n<pre class=\"brush:php\">\r\n  define('NAVBAR_TITLE', 'New Page');\r\n  define('HEADING_TITLE', 'New Page');\r\n  define('TEXT_INFORMATION', 'This will be our new page for English language.');<\/pre>\r\n  <\/li>\r\n  \r\n<li><p>Now we can add a new page and content for other languages that are available on your site.<\/p><\/li>\r\n\r\n<li><p>Open <strong>\/includes\/languages\/your_language<\/strong> directory, for example <strong>\/includes\/languages\/german<\/strong>.<\/p><\/li>\r\n<li><p>Locate <strong>shipping.php<\/strong> file, copy it and rename to <strong>newpage.php<\/strong>.<\/p><\/li>\r\n\r\n<li><p>Open <strong>newpage.php<\/strong> file and change its content:<\/p>\r\n<pre class=\"brush:php\">\r\n  define('NAVBAR_TITLE', 'Neue Seite');\r\n  define('HEADING_TITLE', 'Neue Seite');\r\n  define('TEXT_INFORMATION', 'This will be our new page for German language');<\/pre>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3-300x141.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3\" width=\"300\" height=\"141\" class=\"aligncenter size-medium wp-image-55226\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3-300x141.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3-150x71.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_3.jpg 822w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n\r\n\r\n\r\n\r\n<li><p>Now, let&#8217;s add new footer menu for our New Page as well.<\/p><\/li>\r\n<li><p>The process is basically the same. Open <strong>includes\/modules\/boxes\/cm_menu_footer.php<\/strong>:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4-300x177.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4\" width=\"300\" height=\"177\" class=\"aligncenter size-medium wp-image-55227\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4-300x177.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4-150x88.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_4.jpg 864w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<\/li>\r\n\r\n<li><p>Duplicate existing item and specify Filename and Menu for Footer:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5-300x162.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5\" width=\"300\" height=\"162\" class=\"aligncenter size-medium wp-image-55228\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5-300x162.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5-150x81.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5-1024x553.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_5.jpg 1276w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\r\n<li><p>Add a new item to the list.<\/p>\r\n\r\n<\/li>\r\n\r\n<li><p>Open <strong>includes\/languages\/english\/modules\/boxes\/cm_menu_footer.php<\/strong> file:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7-300x179.jpg\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7\" width=\"300\" height=\"179\" class=\"aligncenter size-medium wp-image-55229\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7-300x179.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7-150x89.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_7.jpg 868w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\r\n<li><p>Define item for Footer Menu:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8-300x151.png\" alt=\"osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8\" width=\"300\" height=\"151\" class=\"aligncenter size-medium wp-image-55230\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8-300x151.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8-150x76.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8-1024x516.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/osCommerce_How_to_create_custom_page_with_link_in_footer_header_menu_8.png 1254w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Save your changes. Refresh your site.<\/p>\r\n\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=2uk7WuYMF7w?width=1280&amp;height=720\" rel=\"prettyPhoto\">osCommerce. How to create custom page with link in footer\/header menu (in multilingual website)<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to create new page(s) in multilingual osCommerce site.<\/p>\n","protected":false},"author":37,"featured_media":55233,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[731],"tags":[789,627,521,571,2068,538,572],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/55223"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=55223"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/55223\/revisions"}],"predecessor-version":[{"id":81676,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/55223\/revisions\/81676"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/55233"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=55223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=55223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=55223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}