jhvanee Posted May 7, 2014 Share Posted May 7, 2014 When I use the page "View sale items" my customers can't put an item (on that specific page) in there basket. If they try to do so, there is a new homepage. Is there a solution for this problem? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 7, 2014 Share Posted May 7, 2014 Welcome jhvanee! Glad to see you made it to the forums. I just tested CC5.2.10, on the Sale Items page, clicked Add to Basket, and the item is displayed in the "Your Shopping Basket" sidebox. Do you have "search engine friendly" URLs enabled? Can we have a web address to see this happening? What version of CC5 are you using? Quote Link to comment Share on other sites More sharing options...
jhvanee Posted May 7, 2014 Author Share Posted May 7, 2014 Thank you for the quick reaction. You can see it on http://www.vanee.org/hobbysite/verkoop-items.html I am using CC5.2.10. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 7, 2014 Share Posted May 7, 2014 Can we see the contents of your .htaccess file? I ask because when asking for: POST /hobbysite/sale-items.html?_g=ajaxadd I get: 302 Moved Temporarily /hobbysite/index.php Your browser (the ajax request) is expecting a small chunk of HTML. But because of the 302, the browser is re-requesting the entire front page and is displaying the entire front page in place of the sidebasket box. But I cannot tell if CubeCart is bouncing the browser, or if there is a rule in the .htaccess file that is bouncing the browser. I ask for: POST /hobbysite/gelukspoppetjes.html?_g=ajaxadd I get: 200 OK This has happened before: '?do=embed' frameborder='0' data-embedContent>> '?do=embed' frameborder='0' data-embedContent>> and partially: '?do=embed' frameborder='0' data-embedContent>> Quote Link to comment Share on other sites More sharing options...
jhvanee Posted May 7, 2014 Author Share Posted May 7, 2014 The content of the .htaccess file is: deny from all <Files print.*.php> allow from all </Files> On the same page you also can't sort properly. When I look at the html code of the page http://www.vanee.org/hobbysite/verkoop-items.html I see: http://www.vanee.org/hobbysite/sale-items.html instead of http://www.vanee.org/hobbysite/verkoop-items.html (line 5, 72, 124, 151, 176, 197, 217 and 236) Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 7, 2014 Share Posted May 7, 2014 If you are able to view the database directly (using phpMyAdmin or a similar utility), please look at the table CubeCart_seo_urls. You may have to filter the resultset to show only `type`='saleitems'. What can you tell us about the result of the query? Also, there should be an .htaccess file in the folder /hobbysite/. The contents you listed above is not complete. For search engine friendly URLs to work, there must be at least this: #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> Quote Link to comment Share on other sites More sharing options...
jhvanee Posted May 8, 2014 Author Share Posted May 8, 2014 Sorry, I took the wrong file --------------------------------------------------- ## File Security <FilesMatch ".(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On ######## START v4 SEO URL BACKWARD COMPATIBILITY ######## RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(.[a-z]+)?(?.*)?$ index.php?_a=saleitems&%1 [NC,L] ######## END v4 SEO URL BACKWARD COMPATIBILITY ######## RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA] </IfModule> --------------------------------------------------- Sorry, but I can't view the database directly. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 8, 2014 Share Posted May 8, 2014 "Sorry, but I can't view the database directly." Odd. I wonder why not? The .htaccess file is correct. Quote Link to comment Share on other sites More sharing options...
jhvanee Posted May 8, 2014 Author Share Posted May 8, 2014 When I look at the database I see: ID Path type item_id 58 verkoop-items saleitems 0 Meanwhile Milos Homola has requested my login information. I appreciate your help, but to prevent multiple people are working on my problem, it might be more convenient for you to close this issue on this forum? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 8, 2014 Share Posted May 8, 2014 I would be interested to learn of whatever the resolution may be, if one is provided to you by Devellion. Quote Link to comment Share on other sites More sharing options...
jhvanee Posted May 9, 2014 Author Share Posted May 9, 2014 The answer from CubeCart support: Thank you. Sale items SEO URL must be sale-itmes.html. When I changed it now it is working well. I had a look into cubecart code sale-items is expected at this time. The problem is solved now. Thank you all for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.