-
AuthorPosts
-
October 30, 2014 at 1:10 am #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
November 1, 2014 at 4:50 am #344468Hi 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!
IsmaelNovember 2, 2014 at 5:03 pm #344888Thank 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!November 3, 2014 at 10:13 pm #345556Hey!
3.) Go with this one in Quick CSS:
.woocommerce span.soldout, .woocommerce-page span.soldout { top: 350px; }
Best regards,
AndyNovember 4, 2014 at 12:06 am #345628Thank 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! :)
November 5, 2014 at 2:54 pm #346522Hey!
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,
IsmaelNovember 6, 2014 at 12:50 pm #347064Hi 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! :)
November 7, 2014 at 11:39 am #347666November 7, 2014 at 11:43 am #347670sorry, in the meantime I moved the site….
shop: http://www.dreamcakefactory.nl/?post_type=product
product: http://www.dreamcakefactory.nl/?product=boeket-met-pioenroos-orchidee-en-hortensia-7-feb-heerenveenThank you!! :)
November 8, 2014 at 12:29 pm #348124Hi!
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,
IsmaelNovember 11, 2014 at 9:54 pm #349689This reply has been marked as private.November 14, 2014 at 1:52 am #351052Hi!
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,
IsmaelNovember 14, 2014 at 1:48 pm #351227Thank you Ismael! Problem solved, me happy! :)
Kind regards, Eline -
AuthorPosts
- The topic ‘some webshop issues’ is closed to new replies.