latro666
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Base url redirects with a p= querystringOk so I worked out an out of the box (dodgy) solution to this for future searchers.
First off I intercepted any ?p= in htaccess and rewrite as a server 404. We are using url rewriting so p= should never come up (this is dodgy as hell but meh)
RewriteCond %{QUERY_STRING} /?p=(\d*) RewriteRule ^$ *? [R=404,L]I then in htaccess reset which file the server looks to for 404s:
ErrorDocument 404 /wp-content/x-redirector.phpI created this file and setup my own key value redirection script:
<?php $url = $_SERVER['REDIRECT_URL']; $qs = $_SERVER['REDIRECT_QUERY_STRING']; if($qs != ''){ $url = $url . "?" . $qs; } //page in wordpress with page not found msg $endurl = '/page-not-found'; //array of redirects $redirects = array(); $redirects['/?Section=page&p=/areasofexpertise'] = '/whatever/'; foreach($redirects as $key => $value){ if($key == $url || $key . '/' == $url){ $endurl = $value; } } Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: $endurl" ); ?>Cycles the redirects and if it gets a hit it changes the forwarding url if it does not find a match then it goes to /page-not-found which is a WordPress page.
not very efficient or elegant but it works 😀
Hi,
Apologies for the late reply, illness has delayed what i was working on.
I’d rather not publically post the link to the site (can email if you’d like?). I just kinda need an idea of where to start as mentioned in the other post there appears to be compare categories etc but no means to link products?
I’m using the default WooCommerce theme imported into my own theme so its pretty much stock just with my header.php etc e.g. literally added /woocommerce into my own theme.
We’d quite hapily pay for the pro version but i’v got little idea how to get the basics of the lite one functioning. I dont doubt its a great plugin and it me that is simply missing something.
Some simple directions would be cool like ‘goto products, select a product, do this’ to get a very basic comparison running of two products.
Re what you originally suggested, all the products show in that list but are deactivated. On clicking edit it alerts to upgrade to the pro version to express compare feature manager.
I followed your like for the lite version:
http://docs.a3rev.com/user-guides/woocommerce/compare-products/#section-16It alludes to variations. My first issue here is that there are 100 stand alone product (shoes) they have no variations they are all ‘simple products’ and therefore lone parents.
Ignoring this I change a product to variable and then add one in keeping everything blank. Here is a screen shot:
http://i50.tinypic.com/1z515xc.jpgAt this point it also asks for a compare category so i selected master (unsure what this is for?) and saved the product.
Went back to the list of products in settings -> products. The product in question still appears as Deactivated.
Entering a price in the variation as per 2 in the diagram does not change this.
So unsure how to proceed from here?
All I want to do is the ability to compare one simple product to another one in any category, they are very basic with literally just an image, title and category. The idea is they can pick a shoe and have it side by side with another shoe.
I’m sure i’m doing something wrong but for the life of me i cannot see what?
woo hoo, cheers man perfect. Always the little things.
If your are ever in the bedfordshire area of the uk a beer rests on a pub bar for you.
Forgot to mention i also did this selecting master category, no button appears. At my wits end a bit 😀 seems very complicated, maybe i’m not getting something?
Hi there
Thanks for the help. It looks like I need to set a variation up for the lite version. I get to the point of the drop down on the product and it says:
‘Select a Compare Category for this Product :’I want to be able to compare two products, why do i have to select a category? It seems irrelevant.
Forum: Fixing WordPress
In reply to: get_option() from outside the loop?You are right! omg one of those days:
<?php
if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘normal panel’) ) :
?>
<?php endif; ?>Was calling the DEFAULT wordpress sidebar widgets you get on install, it was outputting fine further down the page!
time to go home and eat something i think. Thanks for the jolt 😀
Forum: Fixing WordPress
In reply to: Exclusion of categories not workingah good thinking. Apply the page you are on as well as the exclusion.
Still odd though that the first bit of code does not work.
Forum: Fixing WordPress
In reply to: Remembering taxonomy term when viewing postGuess thats a no then :(.
For future searchers i just bodged it with cookies:
On taxonomy listing:
<?php $curtax = $wp_query->queried_object->term_id; setcookie("curtax", $curtax, time()+3600, '/'); ?>Then the next page can access that cookie to workout what the taxonomy the user came in from.
Forum: Fixing WordPress
In reply to: How to add contact form fields?I dont have any links as i’d code from scratch.
A quick way to do it is this. Save this file from that site
http://houstondiscountroofing.com/wp-content/themes/leadlocal/images/form_bot_top.gifmake a text file and add this:
<div style=”background-image:url(form_bot_top.gif); width:305px; height:375px;”>
<div style=”margin:15px;”>
example
</div>
</div>save as example.html in the same directory as the image.
You can see this is a very basic way to go about it but might work. You just need to make the background image your self and play around with the padding etc. The word example you can replace with the form.
Forum: Fixing WordPress
In reply to: How to add contact form fields?Do you have any HTML or CSS experience?
Forum: Fixing WordPress
In reply to: image in headerwhats the link to the site?
Forum: Fixing WordPress
In reply to: I can't even access the website anymorelooks like your site is hosted with 1and1.
http://order.1and1.comgive them a call
Forum: Fixing WordPress
In reply to: I can't even access the website anymoreThere is nothing you can do.
The only thing you can do it to findout who hosts the site and contact them.
A 500 error means the computer running the site is broke or the site running on it is broke and needs to be restored or if that fails, fixed by a developer.
Forum: Fixing WordPress
In reply to: I can't even access the website anymoreDo you normally login to the admin via:
http://s344464366.onlinehome.us/wp-login.php ?If so that is erroring too so unless you have FTP access? (like accessing the websites hard drive) there inst much you can do.
Forum: Fixing WordPress
In reply to: New post permalink slug redirects to other postsNo worries 🙂