Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #343133

    Hi there, Enfold-wizards! I’m so excited how my new, and hugely improved, website is taking shape! Thank you for this amazing theme!

    I’m now working on the webshop-part, and I’m running into some issues. I did a lot of searching and trying, but I can’t seem to figure it out. I did however screw up the entire site by messing up the functions.php, but I solved that one fortunately. My hands will go nowhere near any php files from now on, unless you guys tell me to. :)

    Anyway, my questions:
    * can I change the in stock/out of stock texts at the products page?
    * If I make a purchase, but then delete it again from the shopping cart en press return to shop, the whole layout of the shop is messed up. It should be masonry, but it’s not anymore. The pictures are huge, and the whole thing is all over the place. I’m not set on the masonry layout by the way. If something else is better, that’s fine by me. I think the masonry thing was in the demo I imported.
    * I would like to show sold out buttons at the shop overview page as well as the product pages. To do so, I installed the woocommerce sold out widget, and dragged it to both places. But it’s not doing anything, and I don’t know what I am doing wrong…
    * how can I change the colours of the woocommerce notifications (the messages that appear on the top of the page when you buy something, or change your cart)?

    Thank you for helping me! Kind regards, Eline

    #344468

    Hi Eline!

    Thank you for using Enfold.

    1.) Please refer to this link: https://support.woothemes.com/hc/en-us/articles/202845976-How-to-Change-In-Stock-Out-of-Stock-Text

    2.) Did you set the page as the base shop page on Woocommerce > Settings > Products panel? The masonry element doesn’t fully display products info. We really don’t recommend applying this product layout for your shop page.

    3.) On the page that you posted, which products are sold out or out of stock?

    4.) Use this on Quick CSS or custom.css:

    #top div.woocommerce-message {
    /* background-image: url('../images/icons/tick.png'); */
    border-color: #8BAF5B;
    background-color: #E0F1B5;
    color: #4F5F39;
    }

    Cheers!
    Ismael

    #344888

    Thank you Ismael!
    1) worked like a charm! Only now my number of items available has disappeared… Probably need to add something (a referral to number in stock) right before the new available text, but I don’t know how.
    2) Killed the masonry thing, problem solved! :) Thanks!
    3) All products with VOL at the end of the description are sold out. (I manually add the dutch word for sold out as a temporary solution). I can see the buttons while the page is loading pictures, but then the pictures overwrite the button, it seems.
    4) Done! Thank you!

    #345556

    Hey!

    3.) Go with this one in Quick CSS:

    .woocommerce span.soldout, .woocommerce-page span.soldout {
    top: 350px;
    }
    

    Best regards,
    Andy

    #345628

    Thank you Andy! worked like a charm! Can you help me with finishing problem nr 1?
    I changed the in stock/out of stock text like Ismael suggested, but in doing so, the number of items on stock disappeared… How do I fix that? The code I entered in CSS was:

    /**
    * Change In Stock / Out of Stock Text
    */

    add_filter( ‘woocommerce_get_availability’, ‘wcs_custom_get_availability’, 1, 2);
    function wcs_custom_get_availability( $availability, $_product ) {

    // Change In Stock Text
    if ( $_product->is_in_stock() ) {
    $availability[‘availability’] = __(‘plekken beschikbaar’, ‘woocommerce’);
    }

    // Change Out of Stock Text
    if ( ! $_product->is_in_stock() ) {
    $availability[‘availability’] = __(‘VOL! Sorry…’, ‘woocommerce’);
    }

    return $availability;
    }

    Thanks for your help! :)

    #346522

    Hey!

    Did you add the code on functions.php file? Please give us a link to the product page and the link to the actual product with the inventory display issue.

    Regards,
    Ismael

    #347064

    Hi Ismael!
    Yes I did (sorry, I said CSS, but it was the php obviously). It’s the only thing I added to functions.php so far. I added it at the very end of the file, don’t know if that matters?

    product page: http://www.dreamcakefactory.nl/wordpress/?post_type=product
    product: http://www.dreamcakefactory.nl/wordpress/?product=boeket-met-pioenroos-orchidee-en-hortensia-23-dec-ede
    but all products that are on stock have the same issue…

    Thank you Ismael! :)

    #347666

    Hi!

    I checked the links but they lead me to 404 pages. Please check.

    Cheers!
    Ismael

    #347670
    #348124

    Hi!

    If you removed the suggested code above, do the stock numbers and text display? Please post the login details here and set it as a private reply. We would like to check it.

    Regards,
    Ismael

    #349689
    This reply has been marked as private.
    #351052

    Hi!

    Thank you for the info. You can replace the code with this:

    /**
     * Change In Stock / Out of Stock Text
     */
     
    add_filter( 'woocommerce_get_availability', 'wcs_custom_get_availability', 1, 2);
    function wcs_custom_get_availability( $availability, $_product ) {
        global $product;
       	// Change In Stock Text
        if ( $_product->is_in_stock() ) {
            $availability['availability'] = $product->get_stock_quantity() . __(' plekken beschikbaar', 'woocommerce');
        }
     
        // Change Out of Stock Text
        if ( ! $_product->is_in_stock() ) {
        	$availability['availability'] = __('VOL! Sorry...', 'woocommerce');
        }
     
        return $availability;
    }

    Best regards,
    Ismael

    #351227

    Thank you Ismael! Problem solved, me happy! :)
    Kind regards, Eline

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘some webshop issues’ is closed to new replies.