Support » Plugin: Customer Reviews for WooCommerce » Short Codes with Category Specification

  • Resolved Gretchen

    (@respblog)


    Hello –
    I’m using short codes to show specific reviews on category archive pages. If I specify the category and/or product to display, I only get 1 review no matter what I change the settings to. If I leave the category as not specified with the same settings, I get a whole list of reviews.

    I’d like to get more than 1 review per Motorcycle brand archive.
    Thanks for your help,
    Gretchen

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support ivole2

    (@ivole2)

    Hi Gretchen,

    Thank you for using our plugin.

    Can you please send or show me the shortcode you use on this page so that I can take a look?

    Gretchen

    (@respblog)

    Hello – sorry I forgot to include it. Here it is:

    [cusrev_all_reviews sort=”desc” per_page=”3″ number=”-1″ show_summary_bar=”false” show_pictures=”true” show_products=”true” categories=”245,246,250″ products=”68386,58858,58379,55324,68371″ shop_reviews=”true” number_shop_reviews=”-1″]

    I got it from Settings/Extension

    Thanks for your help.

    Plugin Support ivole2

    (@ivole2)

    @respblog can you try to put in just this shortcode.

    [cusrev_all_reviews categories=”245″ ]

    And please try to put the shortcode just on a regular page and see if it will have a different output.

    Gretchen

    (@respblog)

    I tried using the code above on the page, on a regular page and on a brand new page not using elementor. The result was all the same.

    Oddly enough, on this page-
    https://staging.clearviewshields.com/product-category/suzuki-motorcycle-windshields/

    I’m getting 2 reviews. The short code is:
    [cusrev_all_reviews sort=”DESC” per_page=”3″ number=”-1″ show_summary_bar=”false” show_pictures=”true” show_products=”true” categories=”218,219,220″ products=”” shop_reviews=”true” number_shop_reviews=”3″]

    On this product – https://staging.clearviewshields.com/product/r80rt-1981-1995/ – there are 22 reviews.

    When I look at the BMW archive page – https://staging.clearviewshields.com/product-category/bmw-motorcycle-windshields/ – there is only 1 review.

    I tried changing the short code to:
    [cusrev_all_reviews sort=”DESC” per_page=”10″ number=”-1″ show_summary_bar=”false” show_pictures=”false” show_products=”true” categories=”” products=”29018″ shop_reviews=”true” number_shop_reviews=”-1″]

    To identify the single product, I still get just one review.

    If I don’t specify products and categories, there are 9 pages of reviews.

    It’s really strange…

    Plugin Support ivole2

    (@ivole2)

    Hi Gretchen,

    I ask for you to try the shortcode on a regular page because there is a possibility that something in your category page is interfering with the shortcode.

    We don’t normally expect people to put [cusrev_all_reviews] shortcode on product categories pages since it cannot easily be done without editing HTML template of WooCommerce product category page.

    Can you please share the link on that page you created with the shortcode I provided on my previous reply.

    Gretchen

    (@respblog)

    Here is the page that I added it to:

    https://staging.clearviewshields.com/review/

    As you will see, it gives me all the reviews, not narrowed by category.

    Thanks

    Plugin Support ivole2

    (@ivole2)

    Then the result is not the same since you are not getting 1 review here.

    Can you tell what are the parameters you use with the shortcode on this page or just show me the exact set of shortcode you added on this page?

    Gretchen

    (@respblog)

    I used this code that you sent earlier. [cusrev_all_reviews categories=”245″ ]

    There is more than 1 review, but they are not all from the same category. They are all review categories.

    Interestingly enough, I added the same code that I used originally for another category and it worked fine:
    https://staging.clearviewshields.com/product-category/yamaha-motorcycle-windshields/

    I’m not sure why it works on this product archive page and not the others that I started with.

    Plugin Support ivole2

    (@ivole2)

    Can you send me the URL for the category page for the category ID 245.

    Also can you please send a system report for your site? You can generate a system report in WordPress admin area by going to WooCommerce -> Status -> Get system report.

    Gretchen

    (@respblog)

    I’m sorry, I forgot to include it – https://staging.clearviewshields.com/review/

    It’s just a regular page with nothing else on it, not archive.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://staging.clearviewshields.com
    Site address (URL): https://staging.clearviewshields.com
    WC Version: 3.6.2
    Log Directory Writable: ✔
    WP Version: 5.2
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.29 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.59.0
    OpenSSL/1.0.2r
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.40-84.0-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.6.2
    WC Database Prefix: wpou_
    MaxMind GeoIP Database: ✔
    Total Database Size: 155.38MB
    Database Data Size: 116.72MB
    Database Index Size: 38.66MB
    wpou_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wpou_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wpou_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wpou_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wpou_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wpou_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wpou_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wpou_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wpou_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wpou_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wpou_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wpou_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wpou_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wpou_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wpou_commentmeta: Data: 0.09MB + Index: 0.06MB
    wpou_comments: Data: 1.25MB + Index: 0.22MB
    wpou_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB
    wpou_gf_entry: Data: 0.02MB + Index: 0.03MB
    wpou_gf_entry_meta: Data: 0.02MB + Index: 0.05MB
    wpou_gf_entry_notes: Data: 0.02MB + Index: 0.03MB
    wpou_gf_form: Data: 0.02MB + Index: 0.00MB
    wpou_gf_form_meta: Data: 0.02MB + Index: 0.00MB
    wpou_gf_form_revisions: Data: 0.02MB + Index: 0.03MB
    wpou_gf_form_view: Data: 0.02MB + Index: 0.03MB
    wpou_links: Data: 0.02MB + Index: 0.02MB
    wpou_ms_snippets: Data: 0.02MB + Index: 0.00MB
    wpou_options: Data: 4.02MB + Index: 0.16MB
    wpou_pmxe_exports: Data: 0.02MB + Index: 0.00MB
    wpou_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB
    wpou_pmxe_posts: Data: 0.02MB + Index: 0.00MB
    wpou_pmxe_templates: Data: 0.02MB + Index: 0.00MB
    wpou_pmxi_files: Data: 0.02MB + Index: 0.00MB
    wpou_pmxi_history: Data: 0.02MB + Index: 0.00MB
    wpou_pmxi_images: Data: 0.02MB + Index: 0.00MB
    wpou_pmxi_imports: Data: 1.47MB + Index: 0.00MB
    wpou_pmxi_posts: Data: 0.02MB + Index: 0.00MB
    wpou_pmxi_templates: Data: 0.02MB + Index: 0.00MB
    wpou_postmeta: Data: 97.45MB + Index: 35.39MB
    wpou_posts: Data: 9.44MB + Index: 1.19MB
    wpou_qss: Data: 0.09MB + Index: 0.05MB
    wpou_snippets: Data: 0.02MB + Index: 0.00MB
    wpou_termmeta: Data: 0.08MB + Index: 0.09MB
    wpou_terms: Data: 0.02MB + Index: 0.03MB
    wpou_term_relationships: Data: 0.13MB + Index: 0.08MB
    wpou_term_taxonomy: Data: 0.05MB + Index: 0.03MB
    wpou_usermeta: Data: 0.02MB + Index: 0.03MB
    wpou_users: Data: 0.02MB + Index: 0.05MB
    wpou_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wpou_wc_product_meta_lookup: Data: 1.50MB + Index: 0.66MB
    wpou_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    
    ### Post Type Counts ###
    
    acf-field-group: 2
    attachment: 362
    custom_css: 2
    customize_changeset: 28
    elementor_library: 25
    foogallery: 1
    ml-slide: 5
    ml-slider: 1
    nav_menu_item: 21
    page: 19
    post: 59
    product: 194
    product_variation: 3615
    revision: 1980
    scheduled-action: 19
    shop_coupon: 43
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (20) ###
    
    Gravity Forms: by rocketgenius – 2.4.9
    AJAX Search for WooCommerce: by Damian Góra – 1.4.0
    Akismet Anti-Spam: by Automattic – 4.1.2
    Classic Editor: by WordPress Contributors – 1.5
    Customer Reviews for WooCommerce: by ivole – 3.72
    Duplicate Post: by Enrico Battocchi – 3.2.2
    Elementor Pro: by Elementor.com – 2.5.8
    Elementor: by Elementor.com – 2.5.15
    Health Check & Troubleshooting: by The WordPress.org community – 1.3.2
    MetaSlider: by Team Updraft – 3.13.1
    Prevent Browser Caching: by Kostya Tereshchuk – 2.3.1
    Redirection: by John Godley – 4.2.3
    Simple Social Icons: by StudioPress – 3.0.0
    Woocommerce Product Review Export/Import: by Webman Technologies – 1.0 – Not tested with the active version of WooCommerce
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.14
    
    Woo Attributes Coupon: by Gaurav Nagpal – 2.2.0
    WooCommerce Product CSV Import Suite: by WooCommerce – 1.10.22
    WooCommerce: by Automattic – 3.6.2
    WP All Import Pro: by Soflyy – 4.5.6
    WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.0.7
    
    ### Inactive Plugins (12) ###
    
    Enhanced Media Library: by wpUXsolutions – 2.7.2
    Jetpack by WordPress.com: by Automattic – 7.3.0
    Official Facebook Pixel: by Facebook – 1.7.25
    Regenerate Thumbnails Advanced: by ShortPixel – 2.0.1
    ShortPixel Image Optimizer: by ShortPixel – 4.13.1
    Squirrly SEO 2019 (Strategy): by Squirrly SEO – 9.1.12
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.9
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.14
    WooCommerce Print Invoice & Delivery Note: by Tyche Softwares – 4.4.8 – Not tested with the active version of WooCommerce
    WooCommerce Services: by Automattic – 1.20.0
    WooCommerce Stripe Gateway: by WooCommerce – 4.1.16
    WP All Export Pro: by Soflyy – 1.5.6
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.6.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude_from_catalog (exclude_from_catalog)
    exclude_from_search (exclude_from_search)
    exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ✔
    
    ### WC Pages ###
    
    Shop base: #66540 - /shop-windshields-brand/
    Cart: #66170 - /cart/
    Checkout: #66171 - /checkout/
    My account: ❌ Page not set
    Terms and conditions: #30 - /terms-and-policies/
    
    ### Theme ###
    
    Name: OceanWP
    Version: 1.6.7
    Author URL: https://oceanwp.org/about-me/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: oceanwp/woocommerce/cart/mini-cart.php
    oceanwp/woocommerce/content-single-product.php
    oceanwp/woocommerce/loop/loop-start.php
    oceanwp/woocommerce/single-product/title.php
    
    ### Action Scheduler ###
    
    Complete: 18
    Oldest: 2019-04-24 10:14:20 -0600
    Newest: 2019-05-15 13:37:16 -0600
    
    Pending: 1
    Oldest: 2019-05-22 13:37:16 -0600
    Newest: 2019-05-22 13:37:16 -0600
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    Plugin Support ivole2

    (@ivole2)

    Hi Gretchen,

    Can you send me the URL for the category page for the category ID 245.

    [cusrev_all_reviews categories=”245″ ]

    This shortcode I gave you supposed to display the reviews under the category ID 245. Can you please tell which specific product category page this ID (245) belong so that I can check the products and reviews under that category.

    Gretchen

    (@respblog)

    Category 245 should only be Indian brand motorcycles. https://staging.clearviewshields.com/product-category/indian-motorcycle-windshields/

    Plugin Support ivole2

    (@ivole2)

    Hi Gretchen,

    It seems that the category or page. does not exist.

    2019-05-22_1122

    Plugin Author ivole

    (@ivole)

    We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If this is not the case, please let us know and we’ll be happy to help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.