Home › Forums › WoodMart support forum › Use image of each variation for a swatch – not working
Use image of each variation for a swatch – not working
- This topic has 12 replies, 3 voices, and was last updated 1 year, 3 months ago by
Hung Pham.
-
AuthorPosts
-
October 17, 2023 at 10:48 pm #504920
didacuskParticipantHere is my configuration. You can view each image.
What I am missing?
https://ibb.co/RyL9PDC
https://ibb.co/g6H499Z
https://ibb.co/qnFZvNZ
https://ibb.co/QPpLqWM
https://ibb.co/bNq6Cqj
https://ibb.co/wsb5PLDOctober 18, 2023 at 6:56 pm #505235
Hung PhamKeymasterHi didacusk,
Thanks for reaching to us.
You need to select existing attributes instead and checked visible on product https://prnt.sc/hytr8l2VO-fX
Regards,
October 19, 2023 at 9:52 pm #505557
didacuskParticipantHi,
I removed it and re-created the attribute for the product from “add existing”. After that added an image for each variation, but it still not showing the pictures.
Images attached.
Attachments:
You must be logged in to view attached files.October 20, 2023 at 10:01 am #505646
Hung PhamKeymasterHi didacusk,
Navigate to Products -> Attributes -> chose the attribute -> Configure Items -> Edit -> Enable image swatch
Please refer to article: https://xtemos.com/docs-topic/variable-products-and-swatches/
Regards,
October 23, 2023 at 10:55 am #506232
didacuskParticipantOk, I cleared the color from each term and now showing the image of each variation correctly.
The problem now is that after I import the products using built-in woocommerce import tool, attribute again is shown in the way it should not be shown. Same like it is manually created and not chosen from “Add existing”. Image attached.
Is there any solution for that?
Attachments:
You must be logged in to view attached files.October 24, 2023 at 7:40 pm #506801
Hung PhamKeymasterHi didacusk,
Unfortunately, we do not have instructions on how to do that.
Attributes are Woocommerce functionality and the Woodmart theme does not have the option to import/export the attributes.
You will need to find a plugin or import or export the certain Database table or re-add existing attributes.
If you have any questions please feel free to contact us.
Regards,
October 25, 2023 at 7:14 pm #507205
didacuskParticipantYes, I will find a way to import the global attribute and not as local. You can close the ticket.
October 25, 2023 at 10:23 pm #507246
didacuskParticipantSorry, there is still issue.
I found way to import the product using the global attributes. After I tried to enable “Grid swatch attribute to display” the product page is broken. Images attached.
The name of attribute is in Bulgarian (cyrillic) – can this be an issue?
Edit: Page acctually saying: fatal error. Here is the error log from the webserver.
2023-10-25 22:26:07.154698 [NOTICE] [30549] [213.91.250.69:62046-Q:7C80EB68DD6789E1-52#promosector.bg] [STDERR] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php:169 Stack trace: #0 /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php(169): array_merge() #1 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/single-product/add-to-cart/variable.php(144): woodmart_has_swatches() #2 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #3 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1756): wc_get_template() #4 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(310): woocommerce_variable_add_to_cart() #5 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #6 /home/promosector.bg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1702): do_action() #8 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(310): woocommerce_template_single_add_to_cart() #9 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #10 /home/promosector.bg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(189): do_action() #12 /home/promosector.bg/public_html/wp-includes/template.php(787): require('...') #13 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template() #14 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/single-product.php(28): wc_get_template_part() #15 /home/promosector.bg/public_html/wp-includes/template-loader.php(106): include('...') #16 /home/promosector.bg/public_html/wp-blog-head 2023-10-25 22:26:07.154866 [NOTICE] [30549] [213.91.250.69:62046-Q:7C80EB68DD6789E1-52#promosector.bg] [STDERR] er.php(19): require_once('...') #17 /home/promosector.bg/public_html/index.php(17): require('...') #18 {main} thrown in /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php on line 169
-
This reply was modified 1 year, 4 months ago by
didacusk.
Attachments:
You must be logged in to view attached files.October 26, 2023 at 10:56 am #507407
Hung PhamKeymasterHi didacusk,
Could you please tell me how did you import product attributes before the problems occured.
Regards,
October 26, 2023 at 12:16 pm #507453
radchuk2012ParticipantGreetings!
According to your topic https://xtemos.com/forums/topic/hover-image-image-shaking-while-zooming-them/ I have a similar problem, but I have identified a different solution to the problem at the moment (does not break the zoom when hovering in differences from editing CSS) – https://xtemos.com/forums/topic/image-jitter-on-the-ajax-product-tabs-widget-in-chrome-on-windows/ .
Perhaps it will be useful.October 27, 2023 at 6:26 am #507711
Hung PhamKeymasterHi radchuk2012,
Thanks for reaching to us.
Please submit your own topic, it’s easy for me follow it.
Regards,
November 5, 2023 at 11:41 pm #510025
didacuskParticipantI imported product attributes with WP All import plugin
November 6, 2023 at 11:41 am #510140
Hung PhamKeymasterHi didacusk,
Please send me temporary wp-admin info (wp-admin URL, username, password) to Private Content area, I will take a look.
Regards,
-
This reply was modified 1 year, 4 months ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register