Shopify, displaying price of first variant on Collection page - collections

I want to display the price of the first variant on the collection page even if it is out of stock.
Currently, it's displaying the price of the first variant that is available in stock.
Please provide step-by-step instructions on how and where to paste the code because I have no background with programming.
My theme is Ella version 5.1.0

Related

How Can I keep Selling Out Of Stock Products?

My client has just upgraded to a new POS system that manages stock and overwrites product data on woo/wp, and the client has had trouble with the "manage stock" setting being automatically applied on woo every time she updates a product on the POS system.
the idea of this is the product needs to show as available regardless of what the stock status. ALL products should show 'add to cart and be purchasable REGARDLESS of the stock status. Any idea how can I achieve that?
From the looks of it, this seems like an issue with the POS. I have tested enabling backorders on WooCommerce and was able to backorder products. Please see if you are able to share the code overwriting product data. As this probably shuts off the back order setting again.
My test case>
Product Configuration
Available Backorder
Page when setting is disabled. (what is probably happening to you)
If you are able to share part of the code I will be able to assist you with this issue because by the looks of it this is an issue with custom code and not with WooCommerce itself.
Keep in mind that this does look different from your webshop, as my test server is currently running a default WP theme.

Product Structured Data Bug in Woocommerce 3.5

Using woocommerce 3.5 & wordpress 5, Some days before i noticed that google is not showing rich snippets for my products when i test a product URL at google structured data testing tool, product meta was disappeared.
product structured data is visible in Breadcrumb list. how i can show my product data separately, Please help here is my store URL https://techcart.pk
The reason for this is that the Product and final breadcrumb item share the same "#id". This means they are considered to be the same entity, so they get merged.
They are both using an "#id" that represents the page they are on. So in a way they are also sharing the "#id" of the WebPage.
I'd recommend changing their "#id" to something unique. A common solution is to add a # value to the end if the "#id". e.g.
https ://example.com/product12345#Product
That indicates that it is a Product entity on the page.

Woocommerce stock quantity display no longer working

Since updating to the latest version of WooCommerce, the stock quantity display no longer works. Before in the variation description box we could paste
Stock Qty: [variation_stock id="15869"]
and the quantity would display under the product.
Since the update all information in the description box has disappeared. When we reinstate it, it doesn't take long for it to disappear again.
This is pretty disastrous considering we've got 1900 variations. Anyone know idea how to fix this problem please?

Woocommerce Price Not Showing

I think this is a weird situation. Usually Woocommerce is a normal plugin, when I install it and Voila Ecommerce ready to use. But, when I install it in my staging server, the price never appear.
I try to debug, I print out all value on $product variable. All information I need is placed in there except "price", but regular price appear. If I put "Sale Price", the price appear, ofcourse 2 prices appear, regular and sale. So the function "$product->get_price_html()" was empty. I have tried to downgrade the Woocommerce version, the result is the same. Unlucky me. You can see it on dev.skripptek.com/kulkulfarm/shop
One problem more, if I use variations, it couldn't saved.
product dashboard
I put sale price at above, and below is null.
I have to googled it, and no one have my problems. It make me stressed and crazy. Is anyone have some problem with me? Please help, it's been 3 days.
Additional information
I already debugged Woocommerce. The "price" is never filled with value when I fill the regular price in DB, but when I fill sale price, the "price" filled automaticly with value.
When I try edit product with quick edit, price is also filled with value but not if I edit directly in edit post. Maybe someone in Automattic can help me with this?
Solved
I update this description, it is solved actually see and expand the comments below. Not sure why it happen, it is just happened in my staging server but in production working fine. Maybe need reinstall the WordPress installation or not compatible with apache version or mysql version.
I'm having a similar issue. It's been working fine with the current child theme (Dazzling) until towards the end of last year.
Products with variants however are behaving correctly. It's the simple product.. if I enter a new product and regular price, it doesn't show "add to cart" and on the previous multiple product listing screen it shows as "read more". If I put a sale price in, it works.
Also, If I remove/clear the sale price that was saved previously and save again, it still has the price I cleared. It's as if wordpress/woocommerce isn't updating the product on this section. All other areas, updating seems fine.
I did a temporary workaround, until this is resolved, by adding a sale price and scheduling it in the past.
I'm seeing a few posts about this issue and starting to suspect it an woocommerce/wordpress issue after an update? I can't be certain though.

woocommerce dynamic pricing display discount table

I use the woocommerce dynamic pricing plugin by Lucas Stark, the problem is that it doesn't display the discounts which isn't great from a marketing perspective. The problem is highlighted well here
This code, found in the Chris Lema link above, does display a discount table. BUT I use % discounts and this code doesn't work with that. e.g. a product's normal price is $100, 5% off if they buy more than 5, 10% off if they buy 10 or more, shows as price for 5 or more $5 10 or more $10. Clearly this isn't right it should display 5 or more $95 10 or more $90 - How do I achieve that?
Lastly from a marketing perspective it would be good if all products with a quantity discount displayed the cheapest price on the main price. e.g a product that is $100 normally, but with 5% off if you buy 5 or more or 10% off if you buy 10 or more should display the discount table as above but should also display from $90 i.e. the cheapest price, as the main price instead of $100 - How do I achieve that?
"...for performance reasons we decided that it should remain out" according to the plugin creator, Lucas.
I am thinking of a workaround like a meta box in each post where you can type discount information in just plain text and then hook to woocommerce_price_html(which runs everytime the shop page and single product page is displayed), thus eliminating the need to tweak Lucas Stark's plugin.
Lucas also released a new extension
( October 2013 ) which is purported to be 'a great way to let users know about a discount they can receive if they purchase more products.' This user said this extension has issues with discount tables, but I haven't tried it myself.
I haven't used either personally, but http://www.wplab.com/shop/woocommerce-bulk-pricing/ does bulk pricing with a display table if that's the killer feature.
try this plugin http://codecanyon.net/item/woocommerce-dynamic-discounts/6533113
It does allow to create discounts similar to what you need plus it displays discounts on both single and variable products .
try the demo here http://codecanyon.net/item/woocommerce-dynamic-discounts/full_screen_preview/6533113
There are more alternatives that are capable of displaying a quantity pricing table. Like the one that james posted or WooCommerce Dynamic Pricing & Discounts.
Also, it would be possible to hire some freelancer that would make it work with the plugin that you are referring to.
Here is a solution - though it does not (currently) allow the filtering of pricing results based on user role....
http://blueskysessions.com/2014/03/31/woocommerce-dynamic-pricing-plugin-how-to-show-the-quantity-pricing-rules-for-all-product-variations-on-the-product-page/#comments

Resources