Naomi... Posted April 4, 2010 Share Posted April 4, 2010 Hello everyone, I'm new to php but anyway, my shop is getting ready. However, I have two problems which I cannot resolve yet. My problems are... 1. I changed font and background color in stylesheet one by one but only in index.php, those changes doesn't work. If I go to product_info.php or another page like shopping_cart.php, it does work. I searched many article related this problem and tried but I still have a problem. 2. If I click "Checkout" after choosing product, page shows Related searches and it states only like keywords and not a checkout process page. I went to module from osCommerce admin but I'm getting a following error message and I cannot go into module. Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sergio/public_html/admin/modules.php on line 349 Does anyone help me? Thanks for your help. Naomi... Link to comment Share on other sites More sharing options...
npn2531 Posted April 4, 2010 Share Posted April 4, 2010 The reason it doesn't work in the index always is because index.php displays several 'pages' or versions of itself depending on what the shop is doing. Go to the stylesheet.css and place the background image in the body tag. It will show up everywhere. For example: BODY{ background-repeat: no-repeat; background-position: 20px 20px; background-image: url(images/my-background-image.gif) } Note, however if a page has a table (<table>) with a non-transparent background will cover up the image. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Naomi... Posted April 11, 2010 Author Share Posted April 11, 2010 Hi, Thanks for your reply! As for index.php problem, I finally resolved. The reason was the word "download" was added just before "css" in index.php automatically when I uploaded the file and I found that's why css was not working correctly for only index.php! However, checkout process problem has not been resolved yet... I tried many things and now the error becomes different! If I click "checkout", page shows only the words "Related Searches" and some keywords. Our shop is still on test mode and you can visit and see how the page proceeds. http://x-tribal.com I'm stuck on this for a long time :'( Thanks for any ideas or suggestions. Naomi... Link to comment Share on other sites More sharing options...
npn2531 Posted April 11, 2010 Share Posted April 11, 2010 Naomi, You have a really nicely designed site btw. The reason you are getting 'related searches' is because in essence you don't have a security certificate set up on your site, but you have your site set up in your includes/configure.php for ssl. If that sounds like greek to you, then simply go to your webhost and tell then you would like to purchase a SSL certificate for your 'domain' x-tribal. That will most likely solve your problem. You can get free, cheap or expensive ones. Start with the free or cheap, you can always upgrade easily, once you figure things out. Note that if you when you get the error message you will have this in your browser bar: https://x-tribal.com/checkout_shipping.php If you manually delete the 's' after http , and then press return (enter) it works. In your case it goes to: https://x-tribal.com/login.php, as it should. You will get another error msg, but again delete the 's' and it works. Perhaps someone else can post a more coherent explanation of how SSL certificates work. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Naomi... Posted April 13, 2010 Author Share Posted April 13, 2010 Hi npn2531, I was also thinking the same and now finally checkout function is working!!! I purchased SSL certificate last month but I've been forgotten about inserting it in my hosting as I had so much things to do on building web site. ( how stupid...!) Again, thanks for reminding me about that!! Naomi Naomi, You have a really nicely designed site btw. The reason you are getting 'related searches' is because in essence you don't have a security certificate set up on your site, but you have your site set up in your includes/configure.php for ssl. If that sounds like greek to you, then simply go to your webhost and tell then you would like to purchase a SSL certificate for your 'domain' x-tribal. That will most likely solve your problem. You can get free, cheap or expensive ones. Start with the free or cheap, you can always upgrade easily, once you figure things out. Note that if you when you get the error message you will have this in your browser bar: https://x-tribal.com/checkout_shipping.php If you manually delete the 's' after http , and then press return (enter) it works. In your case it goes to: https://x-tribal.com/login.php, as it should. You will get another error msg, but again delete the 's' and it works. Perhaps someone else can post a more coherent explanation of how SSL certificates work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.