mappel
Forum Replies Created
-
ah ok, the three columns I tried to mock up, look very messy…
I had three columns in mind…
1st the shopname (may the VAT ID underneath)
2nd the address (with street and country among each other)
3rd contact info (with email and phone among each other)Hi John,
thanks for getting back to me.
Yeah, you are right. After a short break, I started xampp and firefox ect new, cleared the cache again… and now indeed, the bookmarks get redirected, too. thanks:)
to the second point:
there is a grey status bar in the left-bottom corner of firefox and chrome window. it displays the url when a link is hovered.
that (i would call it url-preview) status bar unfortunately doesn’t show the redirected target url, but the source link.
I just wanted to ask, if your plugin can’t/doesn’t change that?
Just wanted to make sure, if I did set up everything correctly.
Thanks!Forum: Plugins
In reply to: [WooCommerce] You cannot add another “” to your cart – Redirect? 2Thank you @wbrubaker !
Awesome, your code (added below) works like a charm on any product pageUnfortunately it doesn’t work with the shortcode
[add_to_cart id=’111′ class=” style=”]
on my landing page, for example.It doesn’t redirect. Do I have to add the parameter “sold individually” in the shortcode as well?
Of course, the box “sold individually” is already ticked in the product settings.https://gist.github.com/WillBrubaker/4b2798706d56f75d82997ddf29ab210f
add_filter( ‘woocommerce_add_to_cart_sold_individually_found_in_cart’, ‘wbrubaker_redirect_to_cart’ );function wbrubaker_redirect_to_cart( $found_in_cart ) {
if ( $found_in_cart ) {
wp_safe_redirect( wc_get_page_permalink( ‘cart’ ) );
exit;
}
return $found_in_cart;
}Okay, I’ve found a great plugin that does just that!
IW Woocomerce Cart Item Redirectmy beginner’s mind solution was something like:
add_action( ‘template_redirect’,’myfunction_redirect’ );
function myfunction_redirect() {
if ( is_product() ) {
return wp_redirect( site_url() );
exit();
}so every woocommerce single product page is redirected to let’s say a WP overview-product page…
I really would love to find out, how the plugin is doing what it’s doing, because I want to learn more about WP and woocommerce…
someone any ideas?
thanks, mikaI’ve found the solution. I didn’t know I have to install a plugin called “wordpress-importer”. now it’s working:)
I
Manual installIf you do not want to provide FTP credentials to WordPress you can manually install the WordPress Importer plugin on your local machine following these steps.
Download the WordPress Importer plugin to your computer.
Unzip the plugin file.
Copy the folder called “wordpress-importer” to your site’s /wp-content/plugins/ directory.
Activate the plugin on the Plugins page.You should now be able to use Tools->Import->Wordpress to import your XML file.