Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 5th, 2011, 03:05 AM
blnklaus blnklaus is offline
 
Join Date: Jun 2011
Posts: 70
Default 404 page for the store

Hy, is it possible to integrate a "view" for product which leaved the store. What i mean is: If a product is removed by the merchant an a guest comes from a google search, he se the standard 404 Page. Is it possible that the visitor become am Special Page like: "Sorry the product u serch for isn't anymore in the Store, here are some similar product for you.
  #2  
Old August 5th, 2011, 03:04 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

Right now that's not possible with views.

It's however possible to create/customize a 404 page.

1) Check first if your theme's folder already provides a 404.php file

If such file is available WordPress will automatically use that page if a Page Not Found error occurs.

Feel free to customize the current error message to your needs by editing the file.

2) If your theme does not provide a 404.php file

Create one yourself or ask the theme owner to provide one for the theme.

You can find more info below.

http://codex.wordpress.org/Creating_an_Error_404_Page
  #3  
Old August 5th, 2011, 06:46 PM
blnklaus blnklaus is offline
 
Join Date: Jun 2011
Posts: 70
Default

My theme Knows about 404 page. But that's not what i want for the Store. So i think a Special " error page" (view) for the Store will Be a Great Feature fore the Next update.
  #4  
Old August 5th, 2011, 08:13 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

As a workaround you can add something like this in your 404 php file.

Code:
<?php  

$product = "store/product";

if (strpos($_SERVER['REQUEST_URI'], $product) !== false) { ?>
  
  <h2>your store 404 error</h2>
  
<?php } else { ?>
	
  <h2>your default 404 error</h2>

<?php } ?>
It allows you to specify an error message specific for your missing product pages.

The $product variable depends on the URL structure you chose for your product pages (Store > URL Settings).

So change accordingly.

Last edited by stefan : August 6th, 2011 at 09:44 AM.
  #5  
Old August 12th, 2011, 08:52 AM
dele001 dele001 is offline
 
Join Date: Apr 2011
Posts: 33
Default

Just curious, can we copy a template of a php code on datafeedr and post on our 404 page?
  #6  
Old August 12th, 2011, 08:57 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Sure!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All page links go to store front page tex22 Problems 10 April 20th, 2011 12:41 PM


All times are GMT -5. The time now is 01:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.