Advanced custom fields on WooCommerce
-
Hi
I want to use plugin Advanced custom fields on WooCommerce. I want to add Relationship to Cart/Basket. After entering the code in basket i get white page.Help me!!! 🙂
My code
<?php $counter = 0; $posts = get_field('pasujace_butelki'); $lenght = count($posts) -1; if( $posts ): ?> <div id="Carousel" class="carousel slide" data-interval="false"> <div class="carousel-inner"> <?php foreach( $posts as $p ): ?> <?php if( $counter % 6 == 0): ?> <div class="item <?php if ($counter == 0): ?>active<?php endif; ?>"> <div class="row"> <?php endif; ?> <div class="col-xs-2 col-sm-2 col-lg-2 col-md-2" style="padding:0px;padding-right:10px;"> <a href="<?php echo get_permalink( $p->ID ); ?>"><?php echo get_the_post_thumbnail( $p->ID, array()); ?></span></a> </div> <?php if($counter == $lenght || $counter % 6 == 5): ?> </div> </div> <?php endif; ?> <?php $counter++; ?> <?php endforeach; ?> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel" class="left carousel-control"><div class="left_arrow_small"></div></a> <a data-slide="next" href="#Carousel" class="right carousel-control"><div class="right_arrow_small"></div></a> </div><!--.Carousel--> <?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Advanced custom fields on WooCommerce’ is closed to new replies.