Skip Navigation

[Gelöst] Product Image vs Custom Field Image

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

I originally chose to use a custom field to populate the featured image for Product pages for image customization and display preferences. The custom field displays exactly as I need but I'd like to know if I'm creating problems by not using the Product Image field considering that I have to use woocommerce. Is there a best practice recommendation here?

Solution:

You can use Views shortcode [wpv-post-featured-image] to output woocommerce product image:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

And if it is an variable product post, you can also use shortcode [wpv-woo-product-image] (Woocommerce Views plugin) to display different variable product images:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-product-image

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-product-image

This support ticket is created vor 6 Jahren, 1 Monat. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 7 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von CharlesB2907 vor 6 Jahren, 1 Monat.

Assistiert von: Luo Yang.

Author
Artikel
#1133830

I originally chose to use a custom field to populate the featured image for Product pages for image customization and display preferences. The custom field displays exactly as I need but I'd like to know if I'm creating problems by not using the Product Image field considering that I have to use woocommerce. Is there a best practice recommendation here?

Can the custom field image shortcode I created function as product image in every needed capacity?

#1134076

Hi,

You can use Views shortcode [wpv-post-featured-image] to output woocommerce product image:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

And if it is an variable product post, you can also use shortcode [wpv-woo-product-image] (Woocommerce Views plugin) to display different variable product images:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-product-image

Above shortcode [wpv-woo-product-image] should be able to same thing as types shortcode, so I recommend you use product image and [wpv-woo-product-image] shortcode for woocommerce product posts.

#1134108

Thank you for the recommendation. However, I have custom coding that command the custom field image to display in a certain way and it is currently working. My question is, if I continued to use the field image, what issues might that cause with the woo product applications?

#1134129

These will not be variable product offerings and therefore the [wpv-woo-product-image] doesn't appear to have the behavior I need. I'm in the process of testing the [wpv-post-featured-image] as there is only a single variation needed.

However, I need the featured image to display up to a maximum height it's column module for the posts of two separate custom templates using css vh. I'm not sure I can customize the [wpv-post-featured-image] in the exact same way.

#1134132

You can output the feature image URL with shortcode [wpv-post-featured-image output="url"], then apply your custom CSS style to it.

see our documnet:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image
-url option displays the URL of the image

#1135453

Hi Lou,

Thank you for your help on this issue. I'm using the wpv-post-featured-image and so far it appears to function as I need.

#1135878

Is the original question resolved? Please let me know if you need more assistance, fell free to create new thread if there is other new question. thanks

#1136017

My issue is resolved now. Thank you!