Hello,
Thank you for providing us with information.
We’ll forward it to our developers.
Regards,
Eva Kemp.
9 replies5 participantsUpdated by Eva Kemp
Hello,
I create a variable product having no SKU associated to the “generic” product, since all the SKUs will come with the product variations (different SKU for each variation).
Entering on the product page, the SKU label is missing (no matter what attributes are selected).
However, on the standard WooCommerce plug-in (no custom theme), on the variable product page it displays “SKU: N/A”, and the SKU is changed according to the selected attributes.
Based on our findings, the problems is in the file wp-content/themes/idstore/woocommerce/single-product/price.php (lines 26-28):
<?php if ( $product->is_type( array( 'simple', 'variable' ) ) && $product->get_sku() ) : ?>
<span class="product-code"><?php _e('SKU:', ETHEME_DOMAIN); ?> <span class="sku"><?php echo $product->get_sku(); ?></span></span>
<?php endif; ?>
In the original price.php file from WooCommerce plug-in (wp-content/plugins/woocommerce/templates/single-product/meta.php, line 24-28) the working code is:
<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>
<span class="sku_wrapper"><?php _e( 'SKU:', 'woocommerce' ); ?> <span class="sku" itemprop="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : __( 'N/A', 'woocommerce' ); ?></span>.</span>
<?php endif; ?>
So, in order to fix this issue we modified the price.php file from your theme as following:
<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>
<span class="product-code"><?php _e('SKU:', ETHEME_DOMAIN); ?> <span class="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : _e( 'N/A', ETHEME_DOMAIN ); ?></span></span>
<?php endif; ?>
Could you check the above patch with your developers?
Thanks,
Victor
Hello,
Thank you for providing us with information.
We’ll forward it to our developers.
Regards,
Eva Kemp.
Hi guys,
I would like to add attributes like Color label or size label below quantity dropdown. Your demo version provides that. How to do that. If I add a single product, I can add content of attributes but not a dropdown menu. How to fix that?
Thanks for reply.
Best Farid
Hello @FaridJa,
You need to create a variable product and attributes in WP Dashboard > Products > Attributes.
Please refer to Woocommerce documentation:
http://docs.woothemes.com/document/variable-product/
https://www.youtube.com/watch?v=aen8ieJuB88
Best regards,
Jack Richardson.
Hello,
sry, I don´t find a way to start a new topic.
Just a simple question: How can I figure out, how to define/ remove products from sale category?
Because the products shown in the link below, are no sale products.(no sale offer defined)
Thanks for reply,
King regards,
Farid
Hello,
You can select or unselect products to show in category list in Dashboard->Products->Product Categories. See screenshot: http://prntscr.com/98r90l
Regards,
Robert Hall.
Hello,
I thought that too, but it is not selected.
There is no sale category existing. It´s created with [etheme_sale] in order to output sale items.
How to select products with that?
regards,
Farid
Hello @FaridJa,
You need set sale price in product editor.
Please try it.
Best regards,
Jack Richardson.
Hello Jack Richardson,
I know that. The wired thing is, I didn´t set any sale product. Nevertheless I have some producta on sale category. and I cannot figure out why in order to deselect them.
Thanks for replay,
regards, Farid
Hello,
We’re sorry for a long delay.
The issue with sale shortcode has been fixed.
Now it’s working correctly and to show sale products you need add sale price.
Regards,
Eva Kemp.
Tagged: best selling, themes, variable product page, woocommerce
Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
SpaBeauty
(live demo, opens in a new tab)
Niche Market 02Marketplace
(live demo, opens in a new tab)
Pizza StoreFood & drinks
(live demo, opens in a new tab)
WeddingFashion
(live demo, opens in a new tab)
Wedding StoreFashion
(live demo, opens in a new tab)
Online CoursesBusiness
(live demo, opens in a new tab)
Lingerie StoreFashion
(live demo, opens in a new tab)
Spice StoreFood & drinks
(live demo, opens in a new tab)
Organic Cosmetics StoreBeauty
(live demo, opens in a new tab)
Cosmetics StoreBeauty
(live demo, opens in a new tab)
Web AgencyPortfolio
(live demo, opens in a new tab)
Electronic Mega MarketElectronics
(live demo, opens in a new tab)
HotelBusiness
(live demo, opens in a new tab)
Headphone StoreElectronics
(live demo, opens in a new tab)
Concert StoreBooks & art
(live demo, opens in a new tab)
CleaningBusiness
(live demo, opens in a new tab)