Jump to content

The page "View sale items"


jhvanee

Recommended Posts

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?

Link to comment
Share on other sites

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>>

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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>
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...