hkgenesis Posted August 28, 2017 Share Posted August 28, 2017 I'm new to oscommerce. after installed, found the links are http://127.0.0.1/index.php?.... something like that, which means it can only be access locally. how can make it avaliable for http://www.example.com/index.php? like this also can use mod to change the url address bar accordlingly? Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 28, 2017 Share Posted August 28, 2017 You will need to edit the includes/configure.php and admin/includes/configure.php files to change the url. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
hkgenesis Posted August 28, 2017 Author Share Posted August 28, 2017 Thanks, great Then how to change the broswer's address url to specific domain name? use mod rewrite? Link to comment Share on other sites More sharing options...
MrPhil Posted August 28, 2017 Share Posted August 28, 2017 If you edit the configure.php files correctly, that will set the domain name for you. This assumes you have your server and site themselves set up correctly (this is outside of osCommerce). A very important note: do NOT under any circumstances put a live site on the Web that is hosted on your PC (*AMPP server). Hackers know far more about security issues than you do, and they will eat you alive! Use a commercial hosting service. A PC is OK for playing with a test site (when you don't yet have a server), or doing development on PHP or MySQL levels that your host doesn't yet have, but for nothing else. Link to comment Share on other sites More sharing options...
hkgenesis Posted August 28, 2017 Author Share Posted August 28, 2017 thanks, it is under construction. is there a way to rewrite the url address bar? Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 29, 2017 Share Posted August 29, 2017 If you mean change a url like ...com/index.php?cPath=1 to ...com/my-first-category-c-1.html, yes, that is possible. There are two addons commonly used for that: Ultimate SEO and SEO 5. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pauljohnson Posted August 29, 2017 Share Posted August 29, 2017 Did you try editing includes/configure.php file? Like this Link to comment Share on other sites More sharing options...
ArtcoInc Posted August 29, 2017 Share Posted August 29, 2017 @hkgenesis On 8/27/2017 at 9:47 PM, hkgenesis said: I'm new to oscommerce. after installed, found the links are http://127.0.0.1/index.php?.... something like that, which means it can only be access locally. how can make it avaliable for http://www.example.com/index.php? like this also can use mod to change the url address bar accordlingly? 15 hours ago, hkgenesis said: thanks, it is under construction. is there a way to rewrite the url address bar? You say that this site is under construction. Are you developing it on a local computer, or on your host's server? Do you have a domain name registered? Do you have the domain name pointed to your host's server? If you are developing this on a local computer, then you can not have a www.example.com URL address. If you are developing this on your host's server, you need your domain name registered and pointed to your host's server. HTH Malcolm Link to comment Share on other sites More sharing options...
hkgenesis Posted August 30, 2017 Author Share Posted August 30, 2017 IT is solved. btw, how to renable the quick find bar just disappear after set something in admin panel Link to comment Share on other sites More sharing options...
ArtcoInc Posted August 30, 2017 Share Posted August 30, 2017 @hkgenesis Can you tell us how you solved this? It may be useful for someone else searching for the same problem. Malcolm Link to comment Share on other sites More sharing options...
hkgenesis Posted September 6, 2017 Author Share Posted September 6, 2017 Just because goto hosting company instead of self host One Question in information box we added a new item "pay" however the url display is http://www.xxxx.com/FILENAME_PAY instead of pay.php sure the format is same as ' <a href="' . tep_href_link(FILENAME_PAY) . '">' . MODULE_BOXES_INFORMATION_BOX_PAY . '</a><br />' . With the pay.php stayed in root anybody know why?thanks Link to comment Share on other sites More sharing options...
burt Posted September 6, 2017 Share Posted September 6, 2017 tep_href_link('pay.php') Link to comment Share on other sites More sharing options...
hkgenesis Posted September 6, 2017 Author Share Posted September 6, 2017 thanks, any template can suggest to use? Link to comment Share on other sites More sharing options...
hkgenesis Posted September 6, 2017 Author Share Posted September 6, 2017 sory, it does not work ' <a href="' . tep_href_link(FILENAME_PAY) . '">' . MODULE_BOXES_INFORMATION_BOX_PAY . '</a><br />' . ' <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' . ' <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' . the code is above , all works except pay, filename pay.php,shipping.php already leave on www Link to comment Share on other sites More sharing options...
♥raiwa Posted September 6, 2017 Share Posted September 6, 2017 @hkgenesis, In your code replace: tep_href_link(FILENAME_PAY) by: tep_href_link('pay.php') filename constants ( FILENAME_PAY ) are not needed and removed in the latest 2.3.4BS and future versions. Yours isn't defined in "includes/filenames.php", that's why it doesn't work. Use hardcoded, real filenames instead => 'pay.php' and you'll be in the avantgarde of actual OsCommerce coding. THis is what Gary suggested in his post: 7 hours ago, burt said: tep_href_link('pay.php') About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
hkgenesis Posted September 9, 2017 Author Share Posted September 9, 2017 Thanks and good explanation do any good templete for layout? Link to comment Share on other sites More sharing options...
frankl Posted September 9, 2017 Share Posted September 9, 2017 @hkgenesis You can change your store to one of these themes by changing just one file. https://www.tonerpak.com.au/osc/ osCommerce user since 2003! Link to comment Share on other sites More sharing options...
hkgenesis Posted September 10, 2017 Author Share Posted September 10, 2017 how to switch form input field compulsory or not compulsory? Link to comment Share on other sites More sharing options...
frankl Posted September 10, 2017 Share Posted September 10, 2017 @hkgenesis Which particular form input field? osCommerce user since 2003! Link to comment Share on other sites More sharing options...
hkgenesis Posted September 11, 2017 Author Share Posted September 11, 2017 memership registration Link to comment Share on other sites More sharing options...
MrPhil Posted September 11, 2017 Share Posted September 11, 2017 18 hours ago, hkgenesis said: how to switch form input field compulsory or not compulsory? That is a totally different issue. Open a new thread for that question, rather than overloading this one and confusing everyone. Link to comment Share on other sites More sharing options...
Dubaid Posted September 11, 2017 Share Posted September 11, 2017 On 6/9/2017 at 8:25 PM, raiwa said: @hkgenesis, In your code replace: tep_href_link(FILENAME_PAY) by: tep_href_link('pay.php') filename constants ( FILENAME_PAY ) are not needed and removed in the latest 2.3.4BS and future versions. Yours isn't defined in "includes/filenames.php", that's why it doesn't work. Use hardcoded, real filenames instead => 'pay.php' and you'll be in the avantgarde of actual OsCommerce coding. THis is what Gary suggested in his post: Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.