WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Endless forwarding on shop page (5 posts)

  1. Kargo123
    Member
    Posted 7 months ago #

    Hey there,
    I just decided to setup the woocommerce shop plugin, as I think it's the best free plugin for a full featured shop.
    My wordpress template actually doesn't work out with WC, so I edited the page.php --> woocommerce.php and at first it seemed to work. But now, after I changed some settings in the setup of the plugin to specify the selling-settings the shop page is unavailable now. Chrome shows this error:

    <img src="http://www.imageshost.de/img/png/32aa32fd0657a0f05837e2e7a57530d2.png" alt="Diese Website weist eine Weiterleitung auf - endless forwarding loop on this website"/>
    "Fehlercode: ERR_TOO_MANY_REDIRECTS"

    When deactivating the plugin, the site /shop works out (without content of course).

    How can I solve this issue to get the shop working?
    Please help me :(

    Thanks in advance
    Kargo

    http://wordpress.org/plugins/woocommerce/

  2. ManusH
    Member
    Posted 7 months ago #

    As far as I understand, you have changed some criticial codes from the core files.
    That is why the page falls into an endleess loop.

    You have to modify those changes back to the original and than re-make the changes as you want.

    Btw, which theme are you using?

    Because that modification of yours seems to cause a theme issue!
    It is best to use a woocommerce compatible or just the default WordPress themes. There are some "free" woocommerce themes in the WooThemes website.

    For some 3rd party themes, it is needed to make some changes in order to make it compatible...

  3. Kargo123
    Member
    Posted 7 months ago #

    Hey Manus and thank you very much for replying.
    The strange thing is, I didn't change the code of the php-files when the error occured. Btw the link to my shop is this: http://www.studienstrategie.de/shop/
    I am using a custom design, which was programmed just for my purposes and thus I don't want to change it to woocommerce-themes. You probably can understand that.
    So you propose I should change the setting in the woocommerce.php back to normal and then insert the include-party for the shop again?
    Actually I'd love to use a hook like described on the WC-website http://docs.woothemes.com/document/third-party-custom-theme-compatibility/ , but for my level of programming (mostly HTML and CSS, just rudiments of php) the instruction doesn't work. I don't understand the following things:

    "By inserting a few lines in your theme’s functions.php file, First unhook the WooCommerce wrappers"

    --> where exactly do I need to do this?

    add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
    add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);

    function my_theme_wrapper_start() {
    echo '<section id="main">';
    }

    function my_theme_wrapper_end() {
    echo '</section>';
    }

    --> what's happening with the "my_theme"-part - just exchange that part with the name of my theme / the folder name on the FTP?

    I'd be happy to get the shop working!

  4. ManusH
    Member
    Posted 7 months ago #

    I can see that you are using a tailor-made theme for your site. Some theme related to T.Kojima...

    Those instructions in the WC site are all about theming
    and most of the time a custom-theme is about php-programming;
    not so much to do with the html and css.

    If you are not much experienced in that kind of a programming, it can easily be a disaster for your entire site.

    If it is a premium theme ypu are using, it will be a better idea to ask to the developer first!

  5. Kargo123
    Member
    Posted 7 months ago #

    I now tried to use the hook-instructions but the shop-starting page shows just a blank page. At least the endless loop is gone...
    Even when I delete the function parts from the functions.php the site /shop shows a blank page. What is wrong there? I also installed the Plugin for German files, may it have to do something with that?
    Question on the hook-thing: the instructions say I have to insert the following things into my functions.php

    add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
    add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);

    function my_theme_wrapper_start() {
    echo '<section id="main">';
    }

    function my_theme_wrapper_end() {
    echo '</section>';
    }

    So I did. And I changed all "my_theme"-parts into "studienstrategie", which is the name of my theme. But it still doesn't work.

    Please help :(

Reply

You must log in to post.

About this Plugin

About this Topic