saif
-
Posts
16 -
Joined
-
Last visited
Posts posted by saif
-
-
Hi,
I am trying to implement payment as cash only. so I don't need credit card verification. In this case what can you advise?
thanks
Saif
-
Hi Larry,
so far everything is working fine apart from checkout. Basically in my .htaccess file if I add following code as you provided then it is giving following error and even I can't see the html folder where the index file is. But if I remove this code then everything is working fine.Can you give me some hints that what could be the reason is?
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.# For HTTPS pages:RewriteCond %{HTTPS} offRewriteRule ^/(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]%{HTTP_HOST}thanksSaif -
Hi Larry,
Thank you for your help. Finally i find out. I enabled module_rewrite on and also I removed / from rewriterule and now it is working.
<IfModule mod_rewrite.c>RewriteEngine on# For sales:RewriteRule ^shop/sales/?$ sales.php# For the primary categories:RewriteRule ^shop/([A-Za-z\+]+)/?$ shop.php?type=$1# For specific products:RewriteRule ^browse/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3</IfModule> -
you can see my mod_rewrite-
<IfModule mod_rewrite.c>RewriteEngine on# For sales:RewriteRule ^/ex2/html/shop/sales/?$ sales.php# For the primary categories:RewriteRule ^/ex2/html/shop/([A-Za-z\+]+)/?$ shop.php?type=$1# For specific products:RewriteRule ^/ex2/html/browse/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3# For HTTPS pages:RewriteCond %{HTTPS} offRewriteRule ^/ex2/html/(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]%{HTTP_HOST}</IfModule> -
yes already i did this, but still not working. It is giving same error-
Not FoundThe requested URL /ex2/html/shop/coffee/ was not found on this server. -
Hi Larry,
Thanks for your reply.Anyway I made good progress. wishlist and cart links are working fine. But I am facing issue with coffee, goodies and sales button. I tried different way but it didn't work. it is giving me following error-
Not FoundThe requested URL /ex2/shop/coffee/ was not found on this server.same thing happening for other two buttons.<IfModule mod_rewrite.c>RewriteEngine on# For sales:RewriteRule ^/shop/sales/?$ sales.php# For the primary categories:RewriteRule ^/shop/([A-Za-z\+]+)/?$ shop.php?type=$1# For specific products:RewriteRule ^/browse/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3# For HTTPS pages:RewriteCond %{HTTPS} offRewriteRule ^/(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]%{HTTP_HOST}</IfModule>currently ex2 folder is placed in c:/wamp/www/ex2all php files are in c:/wamp/www/ex2/html/all html files are in c:/wamp/www/ex2/html/view
I am really sorry but right now I don't know what to do. I checked forum and online but can't get proper solution for this
thanks
-
<IfModule mod_rewrite.c>RewriteEngine on# For sales:RewriteRule ^/ex2/shop/sales/?$ sales.php# For the primary categories:RewriteRule ^/ex2/shop/([A-Za-z\+]+)/?$ shop.php?type=$1# For specific products:RewriteRule ^/ex2/browse/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3# For HTTPS pages:RewriteCond %{HTTPS} offRewriteRule ^/ex2/(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]%{HTTP_HOST}</IfModule>
-
-
Thank you for your reply. Could you please tell me where from can I get help for this?
-
OK Larry, I've managed to make ALL my links work. I sooooooo glad!!! But I just don't understand
home.html
<li><a href="/coffee/coffee/shop/coffee/">Coffee</a></li>
List_categories.html
<a href="/coffee/coffee/browse/' . $type . '/' . urlencode($row['category']) . '/' . $row['id'] . '" class="h4">View All ' . $row['category'] . ' Products</a></p>
I've doubles type coffee. Why?
I have unfortunatly an other pb that has been already discussed on the forum but could not find the solution through it.
For cart.php and whishlist.php, I get this message:
"An error occurred in script 'C:\wampserveur\www\coffee\cart.php' on line 81:
mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Array"
ligne 81 in shop.php
if (mysqli_num_rows($r) > 0) { // Products to show!
Same message for whislist
What can I do about that?
Thank again for your time
hi ameliehub, please can you explain how did you make those link working /shop/sales/ ? because I am facing same issue. because there are no folder call shop. please let me know .thanks
-
Thanks margaux. I am gonna try tonight. Anyway since yesterday i progress a lot. Hopefully I'll figure out the actual problem.
-
Hi margaux,
Thanks for asking. I have changed config.inc to below, mainly none of links are working.when I click it is giving following error
(Not Found
The requested URL /shop/sales/ was not found on this server.)
// Determine location of files and the URL of the site:
define ('BASE_URI', 'c:/wamp/www/ex2/');
define ('BASE_URL', 'http://localhost/');
define ('MYSQL', BASE_URI . 'mysql.inc.php');
now home page is showing but when i click on wish list or cart it is giving following error message
An error occurred in script 'C:\wamp\www\ex2\html\wishlist.php' on line 80:
mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Array
please help me with this.
thanks
-
how can I find out mod rewrite problem? when I click on goodies then it is showing following error-
Not Found
The requested URL /ex2/shop/goodies/ was not found on this server.
thanks
-
Hi margaux,
Thanks for asking. I have changed config.inc to below, mainly none of links are working.when I click it is giving following error
(Not Found
The requested URL /shop/sales/ was not found on this server.)
// Determine location of files and the URL of the site:
define ('BASE_URI', 'c:/wamp/www/ex2/');
define ('BASE_URL', 'http://localhost/');
define ('MYSQL', BASE_URI . 'mysql.inc.php');
-
recently I bought the book effortless ecommerce and downloaded the code for ex2(coffee shop) from online. I am using apache 2.2.22 with php 5+ and my sql 5+. folder i put in c:\wamp\www\ex2 and inside ex2\my sql.inc and rest inside ex2\html\ . I tried to run it from localhost but not working at all. please help me with this. Thanks
The Requested Url /Shop/Coffee/ Was Not Found On This Server.
in Effortless E-Commerce with PHP and MySQL
Posted
I am trying to create a website for a indian takeaway. In here in UK people give order online so they don't have to call restaurant to give address, name, phone number etc. But they pay cash to delivery man once food is delivered. And also doing this they can easily get order from mainly young generation like students. I like to start with cash only and in future I am gonna add card payment as well.Thanks