• Resolved ahmedibrahimgaber

    (@ahmedibrahimgaber)


    Hi,

    I noticed some issues related to the woocommerce plugin happened when the twenty twenty three theme is active like the function “wc_get_products” when send to it tax_query.

    Also, can you please tell me the theme has been built based on which framework? because I see the theme files, not the default WordPress normal file structure? also, the views are built on which template engine?

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @ahmedibrahimgaber

    I noticed some issues related to the woocommerce plugin happened when the twenty twenty three theme is active like the function “wc_get_products” when send to it tax_query.

    Can you please provide more information about the issues you are experiencing, do you get an error? If so, what exactly will you be working on at the time?

    Additionally, please check if the issue persists when your site is using the Twenty Twenty-One theme.

    because I see the theme files, not the default WordPress normal file structure? also, the views are built on which template engine?

    The Twenty Twenty-Three theme is a block-based theme that allows Full Site Editing. This theme is a bit different in structure as you mentioned, you can read more about the theme in this article.

    Thread Starter ahmedibrahimgaber

    (@ahmedibrahimgaber)

    Hi @thelmachido,

    Thanks for your reply,

    For the woocommerce case the below query when run it on twenty twenty three return empty result but on twenty twenty one return right results

    $args = [ ‘tax_query’ => array( array( ‘taxonomy’ => ‘product_sim_network’, ‘field’ => ‘slug’, ‘terms’ => ‘voice’, ), ), ];

    $prods = wc_get_products($args);

    Hi @ahmedibrahimgaber may I ask how you are adding the query when your site is on the Twenty Twenty Three theme?

    Thread Starter ahmedibrahimgaber

    (@ahmedibrahimgaber)

    I tried this query inside “themes/twentytwentythree/patterns/footer-default.php”

    @ahmedibrahimgaber I gather you are adding this function to footer-default.php because you cannot find the function.php file on the Twenty Twenty-Three theme. If that is the case, I would suggest using plugins to add custom code to your site. There is code snippet, if the function continues not to work I would suggest reaching out to WooCommerce on this forum for a code that will return the results you want.

    Thread Starter ahmedibrahimgaber

    (@ahmedibrahimgaber)

    Ok, thanks @thelmachido

    Feel free to reach out for an update, I will mark this as resolve for now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Theme Structure’ is closed to new replies.