Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Coupon for “Product Attribute Terms”
- This topic has 5 replies, 2 voices, and was last updated 12 months ago by Soft79.
-
AuthorPosts
-
September 7, 2023 at 6:49 am #20014EMANUELE ROSSETTIParticipant
Hi, is it possible to configure a coupon for the purchase of 3 products that have a specific “Product attribute terms”?
Thank you
September 7, 2023 at 3:22 pm #20015Soft79KeymasterYou can try this:
1. Lookup the attribute’s slug at your-store.domain/wp-admin/edit.php?post_type=product&page=product_attributes . E.g. ‘color’. Also lookup the slug for the terms, e.g. ‘red’, ‘green’
2. On the ‘restrictions’ tab of the edit-coupon page, under Custom Fields select attribute_pa_, e.g. attribute_pa_color and in the value field put the term slug, e.g. ‘green’ September 8, 2023 at 6:46 am #20017EMANUELE ROSSETTIParticipantThanks for the reply.
In the dropdown you pointed me to I can’t find any “attribute_pa” item I’ll bring you the html code of the dropdown content<select id=”wjecf-select-custom-field”>
<option value=””>— Seleziona —</option>
<option value=”fb_product_group_id”>fb_product_group_id</option>
<option value=”sseo_meta_keywords”>sseo_meta_keywords</option>
<option value=”total_sales”>total_sales</option>
<option value=”wd_page_css_files”>wd_page_css_files</option>
<option value=”woodmart_fbt_bundles_id”>woodmart_fbt_bundles_id</option>
<option value=”woodmart_history_of_visits”>woodmart_history_of_visits</option>
<option value=”woodmart_price_unit_of_measure”>woodmart_price_unit_of_measure</option>
<option value=”woodmart_sguide_select”>woodmart_sguide_select</option>
<option value=”woodmart_total_stock_quantity”>woodmart_total_stock_quantity</option>
<option value=”woodmart_wc_video_gallery”>woodmart_wc_video_gallery</option>
<option value=”_backorders”>_backorders</option>
<option value=”_downloadable”>_downloadable</option>
<option value=”_download_expiry”>_download_expiry</option>
<option value=”_download_limit”>_download_limit</option>
<option value=”_edit_last”>_edit_last</option>
<option value=”_edit_lock”>_edit_lock</option>
<option value=”_manage_stock”>_manage_stock</option>
<option value=”_parent_product_id”>_parent_product_id</option>
<option value=”_price”>_price</option>
<option value=”_product_360_image_gallery”>_product_360_image_gallery</option>
<option value=”_product_attributes”>_product_attributes</option>
<option value=”_product_image_gallery”>_product_image_gallery</option>
<option value=”_product_version”>_product_version</option>
<option value=”_regular_price”>_regular_price</option>
<option value=”_sku”>_sku</option>
<option value=”_sold_individually”>_sold_individually</option>
<option value=”_stock”>_stock</option>
<option value=”_stock_status”>_stock_status</option>
<option value=”_tax_class”>_tax_class</option>
<option value=”_tax_status”>_tax_status</option>
<option value=”_thumbnail_id”>_thumbnail_id</option>
<option value=”_upsell_ids”>_upsell_ids</option>
<option value=”_virtual”>_virtual</option>
<option value=”_wc_average_rating”>_wc_average_rating</option>
<option value=”_wc_facebook_commerce_enabled”>_wc_facebook_commerce_enabled</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_additional_features”>_wc_facebook_enhanced_catalog_attributes_additional_features</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_age_group”>_wc_facebook_enhanced_catalog_attributes_age_group</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_brand”>_wc_facebook_enhanced_catalog_attributes_brand</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_bra_band_size”>_wc_facebook_enhanced_catalog_attributes_bra_band_size</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_bra_cup_size”>_wc_facebook_enhanced_catalog_attributes_bra_cup_size</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_character”>_wc_facebook_enhanced_catalog_attributes_character</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_chest_size”>_wc_facebook_enhanced_catalog_attributes_chest_size</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_closure”>_wc_facebook_enhanced_catalog_attributes_closure</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_clothing_size_type”>_wc_facebook_enhanced_catalog_attributes_clothing_size_type</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_collar_style”>_wc_facebook_enhanced_catalog_attributes_collar_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_color”>_wc_facebook_enhanced_catalog_attributes_color</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_denim_features”>_wc_facebook_enhanced_catalog_attributes_denim_features</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_fabric_care_instructions”>_wc_facebook_enhanced_catalog_attributes_fabric_care_instructions</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_gender”>_wc_facebook_enhanced_catalog_attributes_gender</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_inseam”>_wc_facebook_enhanced_catalog_attributes_inseam</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_is_adult_product”>_wc_facebook_enhanced_catalog_attributes_is_adult_product</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_is_costume”>_wc_facebook_enhanced_catalog_attributes_is_costume</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_is_outfit_set”>_wc_facebook_enhanced_catalog_attributes_is_outfit_set</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_jean_wash”>_wc_facebook_enhanced_catalog_attributes_jean_wash</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_material”>_wc_facebook_enhanced_catalog_attributes_material</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_neckline”>_wc_facebook_enhanced_catalog_attributes_neckline</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_occasion”>_wc_facebook_enhanced_catalog_attributes_occasion</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_pant_fit”>_wc_facebook_enhanced_catalog_attributes_pant_fit</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_pant_leg_style”>_wc_facebook_enhanced_catalog_attributes_pant_leg_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_pant_length_style”>_wc_facebook_enhanced_catalog_attributes_pant_length_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_pattern”>_wc_facebook_enhanced_catalog_attributes_pattern</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sheerness”>_wc_facebook_enhanced_catalog_attributes_sheerness</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_size”>_wc_facebook_enhanced_catalog_attributes_size</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_size_system”>_wc_facebook_enhanced_catalog_attributes_size_system</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_skirt_length”>_wc_facebook_enhanced_catalog_attributes_skirt_length</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sleeve_length”>_wc_facebook_enhanced_catalog_attributes_sleeve_length</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sleeve_length_style”>_wc_facebook_enhanced_catalog_attributes_sleeve_length_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sleeve_style”>_wc_facebook_enhanced_catalog_attributes_sleeve_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sock_rise”>_wc_facebook_enhanced_catalog_attributes_sock_rise</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sport”>_wc_facebook_enhanced_catalog_attributes_sport</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sports_league”>_wc_facebook_enhanced_catalog_attributes_sports_league</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_sports_team”>_wc_facebook_enhanced_catalog_attributes_sports_team</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_standard_features”>_wc_facebook_enhanced_catalog_attributes_standard_features</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_style”>_wc_facebook_enhanced_catalog_attributes_style</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_theme”>_wc_facebook_enhanced_catalog_attributes_theme</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_upper_body_strap_configuration”>_wc_facebook_enhanced_catalog_attributes_upper_body_strap_configuration</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_waist_rise”>_wc_facebook_enhanced_catalog_attributes_waist_rise</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_waist_size”>_wc_facebook_enhanced_catalog_attributes_waist_size</option>
<option value=”_wc_facebook_enhanced_catalog_attributes_waist_style”>_wc_facebook_enhanced_catalog_attributes_waist_style</option>
<option value=”_wc_review_count”>_wc_review_count</option>
<option value=”_woodmart_buy_now”>_woodmart_buy_now</option>
<option value=”_woodmart_buy_now_redirect”>_woodmart_buy_now_redirect</option>
<option value=”_woodmart_custom_sidebar”>_woodmart_custom_sidebar</option>
<option value=”_woodmart_exclude_show_single_variation”>_woodmart_exclude_show_single_variation</option>
<option value=”_woodmart_extra_content”>_woodmart_extra_content</option>
<option value=”_woodmart_extra_position”>_woodmart_extra_position</option>
<option value=”_woodmart_hide_tabs_titles”>_woodmart_hide_tabs_titles</option>
<option value=”_woodmart_main_layout”>_woodmart_main_layout</option>
<option value=”_woodmart_new_label”>_woodmart_new_label</option>
<option value=”_woodmart_new_label_date”>_woodmart_new_label_date</option>
<option value=”_woodmart_product-background”>_woodmart_product-background</option>
<option value=”_woodmart_product_custom_tab_content”>_woodmart_product_custom_tab_content</option>
<option value=”_woodmart_product_custom_tab_content_2″>_woodmart_product_custom_tab_content_2</option>
<option value=”_woodmart_product_custom_tab_content_type”>_woodmart_product_custom_tab_content_type</option>
<option value=”_woodmart_product_custom_tab_content_type_2″>_woodmart_product_custom_tab_content_type_2</option>
<option value=”_woodmart_product_custom_tab_html_block”>_woodmart_product_custom_tab_html_block</option>
<option value=”_woodmart_product_custom_tab_html_block_2″>_woodmart_product_custom_tab_html_block_2</option>
<option value=”_woodmart_product_custom_tab_title”>_woodmart_product_custom_tab_title</option>
<option value=”_woodmart_product_custom_tab_title_2″>_woodmart_product_custom_tab_title_2</option>
<option value=”_woodmart_product_design”>_woodmart_product_design</option>
<option value=”_woodmart_product_hashtag”>_woodmart_product_hashtag</option>
<option value=”_woodmart_product_video”>_woodmart_product_video</option>
<option value=”_woodmart_related_off”>_woodmart_related_off</option>
<option value=”_woodmart_sidebar_width”>_woodmart_sidebar_width</option>
<option value=”_woodmart_single_product_style”>_woodmart_single_product_style</option>
<option value=”_woodmart_swatches_attribute”>_woodmart_swatches_attribute</option>
<option value=”_woodmart_thums_position”>_woodmart_thums_position</option>
<option value=”_woodmart_whb_header”>_woodmart_whb_header</option>
<option value=”_wp_old_slug”>_wp_old_slug</option>
<option value=”_wp_page_template”>_wp_page_template</option>
<option value=”_yoast_wpseo_estimated-reading-time-minutes”>_yoast_wpseo_estimated-reading-time-minutes</option>
<option value=”_yoast_wpseo_primary_fb_product_set”>_yoast_wpseo_primary_fb_product_set</option>
<option value=”_yoast_wpseo_primary_product_cat”>_yoast_wpseo_primary_product_cat</option>
<option value=”_yoast_wpseo_wordproof_timestamp”>_yoast_wpseo_wordproof_timestamp</option> </select>September 8, 2023 at 11:39 am #20018Soft79KeymasterCan you please send a screenshot of:
1. the Product > Attributes >-page? E.g. wp-admin/edit-tags.php?taxonomy=pa_color&post_type=product
2. the Attributes-tab of the product pageYou can use a service like imgbb or email it to admin at soft79.nl
September 11, 2023 at 7:42 am #20021EMANUELE ROSSETTIParticipantThanks for your answer. Here are the screenshots
September 11, 2023 at 8:50 pm #20028Soft79KeymasterI see. Unfortunately attribute_pa fields are only used for variable products. Doesn’t the brands plugin that you use provide a coupon-option for the brand?
We use the “Perfect Brands for WooCommerce” plugin (free) which works good for our use case and it includes a ‘brand’-option for coupons.
-
AuthorPosts
- You must be logged in to reply to this topic.