Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Ciao,

    Grazie per il plugin.
    Mi rifaccio a questo thread per chiedere se e nel caso dove è possibile personalizzare questo messaggio di errore
    "Partita IVA di fatturazione è un campo obbligatorio."

    Il cliente mi chiede di rimuovere di fatturazione

    è possibile?
    Grazie

    Thread Starter saxisme

    (@saxisme)

    Welcome!

    Hello,

    You can customize the link this way:

    <a href="https://www.youtube.com/watch?v=G7z74BvLWUg" rel="wp-videolightbox"
    title="">Click Me</a>

    And add all the code you need in the <a > tag as normally.

    Didn’t test with the GA code but it should work.

    • This reply was modified 7 years, 11 months ago by saxisme.
    saxisme

    (@saxisme)

    Hello,

    Having a look at Bill Erickson’s post:

    You could try something like this:

    <?php
    add_action( 'pre_get_posts', 'be_set_number_of_posts' );
    /**
     * Exclude Category from Blog
     * 
     * @author Bill Erickson
     * @link https://www.billerickson.net/customize-the-wordpress-query/
     * @param object $query data
     *
     */
    function be_set_number_of_posts( $query ) {
    	
    	if( $query->is_main_query() ) {
    		$query->set( 'numberposts', '-1' );
    	}
    }

    You should place it in the archive portfolio template page.
    It’s not tested, but may be a starting point.

    Hello @wfbrian,

    I cannot see the option, are there any changes on the new version?
    Experiencing the same problems.

    Thanks in advance,

    Thanks to @mrosata that pointed to the right direction.
    In the same Stack Overflow question, there is an update.
    @savan Dholu suggests to replace

    $selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( urldecode( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) : $product->get_variation_default_attribute( $attribute_name );
    wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) );
    echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . __( 'Clear', 'woocommerce' ) . '</a>' ) : '';

    With

    
    wc_dropdown_variation_attribute_options(
    array( 'options' => $options,
    'attribute' => $attribute_name,
    'product' => $product,
    'selected' => $selected,
    'show_option_none'=> wc_attribute_label( $attribute_name )
    ) );

    It works like a charm!
    Thanks guys

    • This reply was modified 8 years, 5 months ago by saxisme.
    • This reply was modified 8 years, 5 months ago by saxisme.

    Hi,

    Same for me.
    Custom coming soon code and homepage still shows.
    All other pages are hidden

    Thread Starter saxisme

    (@saxisme)

    Hi Joshua,
    Thanks for the reply.

    Hello everyone,

    Yes, would be nice to have a full with gallery for small screens.
    For now I have edited the css.

    Thanks for the cool plugin.

    Hi everyone.

    I had the same need so I solved it – I don’t know how to do it differently – editing the plugin files.

    Search in agentpress-listings/includes/class-featured-listings-widget.php

    The following (around line 35):

    $query_args = array(
      'post_type'      => 'listing',
      'posts_per_page' => $instance['posts_per_page'],
      'paged'          => get_query_var('paged') ? get_query_var('paged') : 1
    			);

    And change it to:

    $query_args = array(
      'post_type'      => 'listing',
      'posts_per_page' => $instance['posts_per_page'],
      'paged'          => get_query_var('paged') ? get_query_var('paged') : 1,
      'post__in'       => get_option( 'sticky_posts' )
    			);

    The last line filters the query to just the sticky post.
    You can set the sticky post in the listing page (backend).

    If anyone can tell how to change the query without editing the plugin files would be great.
    Thanks,

    Thread Starter saxisme

    (@saxisme)

    Hello,

    For future reference, this is how I implemented it:

    function sax_custom_member_fields( $member_fields ){
    	global $post;
    
    	$team_member_email 	= esc_attr( get_post_meta( $post->ID, '_gravatar_email', true ) );
    	$user 				= esc_attr( get_post_meta( $post->ID, '_user_id', true ) );
    	//$user_search 		= esc_attr( get_post_meta( $post->ID, '_user_search', true ) );
    	//$twitter 			= esc_attr( get_post_meta( $post->ID, '_twitter', true ) );
    	//$role 				= esc_attr( get_post_meta( $post->ID, '_byline', true ) );
    	//$url 				= esc_attr( get_post_meta( $post->ID, '_url', true ) );
    	$tel 				= esc_attr( get_post_meta( $post->ID, '_tel', true ) );
    	$contact_email 		= esc_attr( get_post_meta( $post->ID, '_contact_email', true ) );
    
    	$member_fields = '';
    
    		$member_fields .= '<li class="our-team-contact-email" itemprop="email"><a href="mailto:' . antispambot( esc_html( $post->contact_email ) ) . '"><i class="fa fa-envelope-o fa-fw"></i> ' . antispambot( esc_html( $post->contact_email ) ) . '</a></li>';
    
    		$call_protocol = apply_filters( 'woothemes_our_team_call_protocol', $protocol = 'tel' );
    		$member_fields .= '<li class="our-team-tel" itemprop="telephone"><span>' . __( 'Tel: ', 'our-team-by-woothemes' ) . '</span><a href="' . $call_protocol . ':' . esc_html( $post->tel ) . '"><i class="fa fa-phone fa-fw"></i> ' . esc_html( $post->tel ) . '</a></li>';
    
        return $member_fields;
    }
    
    add_filter( 'woothemes_our_member_fields_display', 'sax_custom_member_fields' );

    For my case, I need to use it on a custom template I used for a page, so i added the code in the page-slug.php file (where slug is my page’s slug name).

    Thread Starter saxisme

    (@saxisme)

    Hi Amber,
    No, edited the plugin core…

    Thread Starter saxisme

    (@saxisme)

    Hi Ron,

    Ok, I’m marking it as solved but had to modify the plugin.
    Is there another way?

    Thanks,

    Thread Starter saxisme

    (@saxisme)

    Hello Ron,

    I checked the translation file which was fine but this led me to find through the files of a case sensitive “Features”, which led me to the

    function property_features_taxonomy() {
    
    		$name = 'Features';
    		$singular_name = 'Feature';

    Which cannot be translated, correct?
    So I modified the function to:

    function property_features_taxonomy() {
    
    		$name = __('Features','agentpress-listings');
    		$singular_name = __('Feature','agentpress-listings');

    Is this the right way to modify the function?
    What do you think? Thanks,

    Thread Starter saxisme

    (@saxisme)

    Hi Ron,

    I have followed the instructions on the post but still can’t make it work.
    This is the only word that is not translated.
    Do you have any ideas where should I start looking?

    Here a link to a screenshot: https://dl.dropboxusercontent.com/u/5435519/screenshot.png
    Thanks,

Viewing 15 replies - 1 through 15 (of 25 total)