WordPress.org

Ready to get started?Download WordPress

Forums

TheCartPress eCommerce Shopping Cart
Images for dynamic options NOT SHOWING (3 posts)

  1. candy2012
    Member
    Posted 8 months ago #

    Hi,
    Desperately trying to get a product with attributes (using dynamic options plugin) to properly display in the frontend.
    I have added the images for attributes in the backend (both under each attribute as well as under the dynamic options related to my product - even though it is very difficult to understand why do we need them both and can't simply use the attribute image). The images appear in the backend but there seems to be no way to get them to display in the frontend (on the single product page? !))!

    What am I missing here ?? Using your Boot Store theme, so there should be no theme incompatibility here.

    Choosing "list" in dynamic options does not change a thing by the way. No matter what I choose (list, multiple) the only layout I get in the frontend is the 2 drop-downs for my 2 options displaying on the right side of the product featured image.

    Help please!

    Thx

    http://wordpress.org/plugins/thecartpress/

  2. Ttemplate
    Member
    Posted 8 months ago #

    hi

    between the tags - </div><!-- .single-product-options -->
    and - <!-- .entry-post-thumbnail -->

    try to insert this code:

    <div class="tcp-single-imagen">
    <?php if ( has_post_thumbnail() ) : ?>
    <?php // $image_title = $attachment->post_title; ?>
    <?php $imageFull = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
    <?php if(function_exists( 'magictoolbox_WordPress_MagicZoomPlus_init' )) { ?>
    ">
    <?php //the_post_thumbnail( 'height270' ); ?>
    <?php $args = array( 'size' => 'height270' );
    $args = apply_filters( 'tcp_get_image_in_content_args', $args, get_the_ID() );
    $image = tcp_get_the_thumbnail_image( get_the_ID(), $args, false );
    echo apply_filters( 'tcp_get_image_in_content', $image, get_the_ID(), $args ); ?>

    <?php } else { ?>

    <?php //$post_thumbnail_id = get_post_thumbnail_id( $post_id ); ?>
    <?php //$attachment_page = get_attachment_link($post_thumbnail_id); ?>
    <!--<p href="<?php echo $attachment_page; ?>">-->
    <?php //the_post_thumbnail( 'height270' ); ?>
    <?php $args = array( 'size' => 'height270' );
    $args = apply_filters( 'tcp_get_image_in_content_args', $args, get_the_ID() );
    $image = tcp_get_the_thumbnail( get_the_ID(), $args, false );
    echo apply_filters( 'tcp_get_image_in_content', $image, get_the_ID(), $args ); ?>
    <!--</p>-->
    <?php } ?>
    <?php else : ?>
    <div class="slide-post-thumbnail tcp-no-image">
    " href="<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/tcp-no-image.jpg" alt="No image" title="" width="" height="" />
    </div><!-- .entry-post-thumbnail -->

    don't forget to backup before you do it :}

  3. wocmultimedia
    Member
    Posted 8 months ago #

    I have the same problem but it would be better if Inigo could give is solution and more better if can create an update to fix it.
    Besides this problem the cart is the best one I tested in last months and is really compatible with qTranslate.

    looking forward to hearing from you

    Best Regards,
    Angelo

Reply

You must log in to post.

About this Plugin

About this Topic