This topic has 7 replies, 2 voices, and was last updated 2 years ago ago by Rose Tyler
Hi there,
Some issues as mentioned in the title:
1) On the shop page when selecting a attribute of a variable product, text is adding inside the cart button. I don’t want this to happen. I want to show only the cart button. See: https://prnt.sc/kB7kfVmtkbKx
2) Firstly it shows the text “Array” in product meta area when the GTIN field is empty and I update/publish a product.
When removing the word Array and update the product again, it appears fine.
However, the GTIN doesn’t appear in product meta area even if the GTIN is entered at the attribute level of a variable product. It shows nothing in product meta area (not even the word GTIN).
The GTIN works fine with single products. See: https://prnt.sc/pUc4vAGlpV7n
To solve problem number 2, I’ve disabled all the plugins (except Woocommerce & Xstore core plugins) and deleted all additional code in child theme functions.php. But it didn’t solve the issue. Can you help me finding the problem?
3) Lastly, how can I translate the word GTIN in frontend? In which PO file can I find it?
Thank you.
Hello,
1/ Add the next code in Theme Options > Theme custom CSS:
.products-grid .product-details .button:not(.compare) {
font-size: 0;
}
2/ I’ve passed it to our dev team. Please be patient and do not change access.
3/ Check translation of XStore theme. Read next articles – https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/ https://www.8theme.com/documentation/xstore/theme-translation/translation-files-update/
Regards
1) The code works however it creates another problem. For single products that are out of stock the text “Read more” disappears as well. This should remain unchanged. See: https://prnt.sc/l94KQUsW17dE
2) /
3) Solved.
Regards.
Hello,
1/ Change the code to:
.products-grid .product-type-variable .product-details .button:not(.compare) {
font-size: 0;
}
Regards
Hello,
2/ You need to set the value here – https://prnt.sc/gASkBVELUtIH , then it will work – https://prnt.sc/J4xpSN3CvxIl It is predefined behavior.
If you have PHP skils and want to make changes, do them via child theme (check code from xstore/woocommerce/single-product/meta.php ).
Regards
Hi,
1) Solved
2) I know that but the GTIN is different per variable. In this way you only have one fixed GTIN for all the variations.. But I don’t understand that all other input fields such as price, SKU, Quantity in stock etc. work for variable products, only the GTIN does not.. Do you have an idea where the problem lies?
Regards.
Hello,
Thanks for the reply.
Improvement will be done in the next theme update. We will release it soon.
Regards
Tagged: gtin, issues, meta, product, shop, variable products, woocommerce, wordpress themes
The issue related to '‘Issues on shop page & product meta(GTIN) on single product page after enabling variable products’' has been successfully resolved, and the topic is now closed for further responses