Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Avatar: Mehmet
    Mehmet
    Participant
    July 19, 2023 at 09:57

    Hello Rose,

    I waited more than 24 hours as I have no caching plugin active, but there is no change in the administrative notice on top.

    Please advice.

    Regards,
    Mehmet

    Avatar: Mehmet
    Mehmet
    Participant
    July 14, 2023 at 10:10

    Sure here they are

    Please contact administrator
    for this information.
    Avatar: Mehmet
    Mehmet
    Participant
    July 14, 2023 at 09:19

    No luck for the roll-back. What else options do I have when both of the theme and plugin are all up to date and the latest plugin requires older version of the theme?

    Avatar: Mehmet
    Mehmet
    Participant
    May 12, 2023 at 20:31

    Thank you Rose, you have been great. In fact, the whole support system has been excellent, right from the start.

    I will definitely be extending my support when my time is up.

    Avatar: Mehmet
    Mehmet
    Participant
    May 12, 2023 at 15:43

    It seems to be working as of now. Don’t know what happened for it to start working. Did you change anything from my last post?

    Avatar: Mehmet
    Mehmet
    Participant
    May 12, 2023 at 15:20

    Hello Rose,

    I do not have FTP server set up on our Google Cloud Instance. The plugin file editor works on WordPress. I can get you or check out the content you wish to take a look at.

    Please let me know how we can proceed…

    Please contact administrator
    for this information.
    Avatar: Mehmet
    Mehmet
    Participant
    May 12, 2023 at 04:13

    Hello Rose,

    Holly molly! Thank you for the instructions. You guys really know how to keep your customers happy.

    I have applied your instructions, cleared the caches and everything a few times, but all I get {{et_block_by_brand}} instead of the static block content.

    I have even added control echos to the code to see if everything is working as they should but the
    if ($content=='{{et_block_by_brand}}’) ” control does seem to work.

    
    function etheme_block_by_brand($content){
    	echo "Check 1"; //Works
    	
    	if ($content=='{{et_block_by_brand}}'){
    		echo "Check 2"; //Does not work
    		
    		$terms = wp_get_post_terms( get_the_ID(), 'brand' );
    
    		if ( ! is_wp_error( $terms ) && count( $terms ) > 0 ) {
    			echo "Check 3"; //Does not work
    			
    			if (isset($terms[0]->term_id)){
    				echo "Check 3"; //Does not work
    				$args = array(
    					'post_type' => 'staticblocks',
    					'meta_query' => array(
    						array(
    							'key' => 'et_brand_id',
    							'value' => $terms[0]->term_id,
    							'compare' => '=',
    						)
    					)
    				);
    				$posts = get_posts( $args );
    				if (isset($posts[0]->ID)){
    					echo "Check 5"; //Does not work
    					return etheme_static_block( $posts[0]->ID, false );
    				}
    			}
    		}
    	}
    	return $content; //returns the argument
    }
    

    The function just returns the argument variable content which is {{et_block_by_brand}}

    I checked the instructions a few times. Am I missing something?

    Avatar: Mehmet
    Mehmet
    Participant
    May 11, 2023 at 13:07

    Hello again,

    Yes I am using Single Product Builder. No I am using single brands for now. In the future there may be bundle-kit products that may require multiple brand relation.
    I am attaching the requested info in the private content area.

    Please contact administrator
    for this information.
    Avatar: Mehmet
    Mehmet
    Participant
    May 10, 2023 at 16:50

    I am thinking may be a function on functions.php to automatically display the content or a more hardcore sql but I am lost at both approaches.

  • Viewing 9 results - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.