Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter malteserone

    (@malteserone)

    Hi Alex, thanks for your reply.

    I just activate Adaptive Images and it seems to do a pretty good job.

    Few questions:

    1. Before I autoresize large images with Image Optimizer. I guess I don´t need this function anymore as Adaptive Images automatically serves the right image size doesn´t matter how large the original image is? I would prefer to deactivate that function as I had problems using it on multilingual site cause when cropping an image in default language I also had to crop the images in other languages manually…

    2. On multilingual site with 5 languages would I need to use 5 times as many credits?

    3. How do I use my credits in Adaptive Images? Can I still use my one time credits? When finished I would need to recharge? Or does it only work with monthly subscription?

    4. How can I see my credits level in Adaptive Images? There is no Statistics tab like in Image Optimizer…

    5. Can I empty my backup folder und delete Image Optimizer? Whats happening to the old images that got autoresized and edited with GLOSSY?

    Thanks, Johann.

    Thread Starter malteserone

    (@malteserone)

    As code for the description I m using the following:

    <div class=”atlist__item__description”><?php echo adventure_tours_get_short_description( $item_post, $description_words_limit ); ?></div>

    On my website I am using 5 languages with English as default language.
    Somehow the product description is only shown in Spanish. Why is that?

    You can add the following product to the wishlist:
    https://destination-peru.com/explore/cusco-historico-tour-de-la-ciudad/?lang=es

    languages can be changed in the footer.

    Any idea what needs to be changed to show description in all languages?

    Thread Starter malteserone

    (@malteserone)

    <?php
    /**
    * The Template for displaying wishlist if a current user is owner.
    *
    * @version 1.12.0
    * @package TInvWishlist\Template
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly.
    }
    wp_enqueue_script( ‘tinvwl’ );
    ?>
    <div class=”tinv-wishlist woocommerce tinv-wishlist-clear”>
    <?php do_action( ‘tinvwl_before_wishlist’, $wishlist ); ?>
    <?php if ( function_exists( ‘wc_print_notices’ ) ) {
    wc_print_notices();
    } ?>
    <?php
    $wl_paged = get_query_var( ‘wl_paged’ );
    $form_url = tinv_url_wishlist( $wishlist[‘share_key’], $wl_paged, true );
    ?>
    <form action=”<?php echo esc_url( $form_url ); ?>” method=”post” autocomplete=”off”>
    <?php do_action( ‘tinvwl_before_wishlist_table’, $wishlist ); ?>
    <table class=”tinvwl-table-manage-list”>
    <tbody>
    <?php do_action( ‘tinvwl_wishlist_contents_before’ ); ?>

    <?php

    global $product, $post;
    // store global product data.
    $_product_tmp = $product;
    // store global post data.
    $_post_tmp = $post;

    foreach ( $products as $wl_product ) {

    // override global product data.
    $product = apply_filters( ‘tinvwl_wishlist_item’, $wl_product[‘data’] );
    // override global post data.
    $post = get_post( $product->get_id() );

    unset( $wl_product[‘data’] );
    if ( $wl_product[‘quantity’] > 0 && apply_filters( ‘tinvwl_wishlist_item_visible’, true, $wl_product, $product ) ) {
    $product_url = apply_filters( ‘tinvwl_wishlist_item_url’, $product->get_permalink(), $wl_product, $product );
    do_action( ‘tinvwl_wishlist_row_before’, $wl_product, $product );
    ?>
    <tr class=”<?php echo esc_attr( apply_filters( ‘tinvwl_wishlist_item_class’, ‘wishlist_item’, $wl_product, $product ) ); ?>”>
    <?php if ( isset( $wishlist_table[‘colm_checkbox’] ) && $wishlist_table[‘colm_checkbox’] ) { ?>
    <td class=”product-cb”>
    <?php
    echo apply_filters( ‘tinvwl_wishlist_item_cb’, sprintf( // WPCS: xss ok.
    ‘<input type=”checkbox” name=”wishlist_pr[]” value=”%d” title=”%s”>’, esc_attr( $wl_product[‘ID’] ), __( ‘Select for bulk action’, ‘ti-woocommerce-wishlist’ )
    ), $wl_product, $product );
    ?>
    </td>
    <?php } ?>
    <div class=”atlist__item margin-bottom”>
    <div class=”atlist__item__image”>
    <?php
    $thumbnail = apply_filters( ‘tinvwl_wishlist_item_thumbnail’, $product->get_image(), $wl_product, $product );

    if ( ! $product->is_visible() ) {
    echo $thumbnail; // WPCS: xss ok.
    } else {
    printf( ‘%s‘, esc_url( $product_url ), $thumbnail ); // WPCS: xss ok.
    }
    ?>
    <?php adventure_tours_render_tour_icons(array(
    ‘before’ => ‘<div class=”atlist__item__icons”>’,
    ‘after’ => ‘</div>’,
    ), $item_id);
    ?>
    <?php adventure_tours_renders_tour_badge( array(
    ‘tour_id’ => $item_id,
    ‘wrap_css_class’ => ‘atlist__item__angle-wrap’,
    ‘css_class’ => ‘atlist__item__angle’,
    ) );?>
    </div>
    <div class=”atlist__item__content<?php if ( ! $attributes ) { echo ‘ atlist__item__content–full-height’; }; ?>”>
    <div class=”atlist__item__content__items”>
    <div class=”atlist__item__content__item”>
    <h2 class=”atlist__item__title”>
    <?php
    if ( ! $product->is_visible() ) {
    echo apply_filters( ‘tinvwl_wishlist_item_name’, $product->get_title(), $wl_product, $product ) . ‘ ‘; // WPCS: xss ok.
    } else {
    echo apply_filters( ‘tinvwl_wishlist_item_name’, sprintf( ‘%s‘, esc_url( $product_url ), $product->get_title() ), $wl_product, $product ); // WPCS: xss ok.
    }

    echo apply_filters( ‘tinvwl_wishlist_item_meta_data’, tinv_wishlist_get_item_data( $product, $wl_product ), $wl_product, $product ); // WPCS: xss ok.
    ?>
    <?php echo esc_html( $item_title ); ?></h2>
    <div class=”atlist__item__description”><?php echo adventure_tours_get_short_description( $item_post, $description_words_limit ); ?></div>
    </div>
    <div class=”atlist__item__content__item atlist__item__content__item–alternative”>
    <?php
    echo apply_filters( ‘tinvwl_wishlist_item_price’, $product->get_price_html(), $wl_product, $product ); // WPCS: xss ok.
    ?>
    <?php
    $label_text = apply_filters( ‘adventure_tours_list_price_decoration_label’, esc_html__( ‘per person’, ‘adventure-tours’ ), $item );
    if ( $label_text ) {
    printf(‘<div class=”atlist__item__price-label”>%s</div>’, esc_html( $label_text ) );
    }
    ?>
    <div class=”atlist__item__read-more”>” class=”atbtn atbtn–small atbtn–rounded atbtn–light”><?php esc_html_e( ‘view tour’, ‘adventure-tours’ ); ?></div>
    <div class=”product-remove”>
    <button type=”submit” name=”tinvwl-remove”
    value=”<?php echo esc_attr( $wl_product[‘ID’] ); ?>”
    title=”<?php _e( ‘Remove’, ‘ti-woocommerce-wishlist’ ) ?>”><i
    class=”ftinvwl ftinvwl-times”></i>
    </button>
    </div>
    </div>
    </div>
    <?php if ( $attributes ) {
    printf( ‘<div class=”atlist__item__attributes”>%s</div>’, $attributes );
    } ?>
    </div>
    </div>
    </tr>
    <?php
    do_action( ‘tinvwl_wishlist_row_after’, $wl_product, $product );
    } // End if().
    } // End foreach().
    // restore global product data.
    $product = $_product_tmp;
    // restore global post data.
    $post = $_post_tmp;
    ?>
    <?php do_action( ‘tinvwl_wishlist_contents_after’ ); ?>
    </tbody>
    <tfoot>
    <tr>
    <?php do_action( ‘tinvwl_after_wishlist_table’, $wishlist ); ?>
    <?php wp_nonce_field( ‘tinvwl_wishlist_owner’, ‘wishlist_nonce’ ); ?>
    </tr>
    </tfoot>
    </table>
    </form>
    <?php do_action( ‘tinvwl_after_wishlist’, $wishlist ); ?>
    <div class=”tinv-lists-nav tinv-wishlist-clear”>
    <?php do_action( ‘tinvwl_pagenation_wishlist’, $wishlist ); ?>
    </div>
    </div>

    Thread Starter malteserone

    (@malteserone)

    Thanks for the reply Stan,

    I modified the ti-wislist.php to the following code:

    Thread Starter malteserone

    (@malteserone)

    Hi Andrew,

    How can I send you a picture? Might make it easier to understand what I m looking for. I would like to hide the section “(0 reviews)” next to star rating from all my product page headers. Could you provide me with some code that would do the trick?
    Example: https://destination-peru.com/explore/authentic-peruvian-cooking-class-and-meal-with-chef/

    Thanks, Johann.

    Thread Starter malteserone

    (@malteserone)

    Now its working. Please try again.

    Thread Starter malteserone

    (@malteserone)

    Hi Clarion,

    thanks for your reply.
    For example here: http://misterbackpack.de/die-10-leckersten-gerichte-asiens/
    I’m showing the related posts between the post content and the comment section.

    Thread Starter malteserone

    (@malteserone)

    ok thanks

    Thread Starter malteserone

    (@malteserone)

    You could tell me the name of the file for the card page and which code I have to use for the button in there?

    Thread Starter malteserone

    (@malteserone)

    Yes, thats what I would like to do. I m just not sure about which lines of code to use and where to place them.

    Thread Starter malteserone

    (@malteserone)

    Thread Starter malteserone

    (@malteserone)

    hm, for example: I m viewing a product, click on add to cart and a message appears saying “go to shopping cart”. I click on that and I guess it s the actual shopping cart page where I m landing. So the product is shown in my products list, i delete it by clicking on the red cross, page is loading new and there is nothing in my list anymore, but a button saying “retrurn to shop”. I want this button to be shown on this page, even when i have some product in my cart. I m using it in German, so could be possible that it arent the exact same words.

    Thread Starter malteserone

    (@malteserone)

    There is no sidebar showing up, but white space for the sidebar and the words “your sidebar code here”. But I realised that the sidebar will squeeze the rest of my category page content. That doesnt look good, so I will leave it without sidebar. But thanks a lot for your effort, it helped me to figure this out 🙂

    Thread Starter malteserone

    (@malteserone)

    problem solved, had to change the <?php get_sidebar(); ?>

    Thread Starter malteserone

    (@malteserone)

    This is my woocommerce.php:

    <?php
    /**
    * Template Name: Sidebar – Right
    *
    * The template for displaying pages with the sidebar right.
    *
    */

    get_header(); ?>

    <div class=”row”>
    <div class=”col-sm-8″>

    <?php woocommerce_content(); ?>

    </div>

    <div class=”col-md-3 col-md-offset-1 col-sm-4″>

    <?php get_sidebar(); ?>

    </div><!– /sidebar –>
    </div><!– /.row –>

    <?php get_footer(); ?>

    I have 8 different pages as templates. Tryed all of them formed to a woocommerce.php, but non of them called the sidebar :/

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