Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Joyn › How to decrease checkout page 'you might also like'
New Landing › How can we help? › Themeforest Theme Support › Joyn › How to decrease checkout page 'you might also like'
- This topic has 25 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Joyn
-
December 23, 2014 at 12:34 am #137385
Hi – to test this, please add a blue product to cart ie.
http://hoteliyo.com/estore/hotel-brand-membership-template/
then on this page: http://hoteliyo.com/estore/cart/
You’ll see the ‘you may also like’ are in 2 columns and have huge tiles
How can we get this section to only display like normal ie
How it looks on: http://hoteliyo.com/estore/hotel-brand-membership-template/
Thanks!
December 23, 2014 at 6:19 am #137407Hi,
Your URLs are giving 404 error.
Thanks
MohammadDecember 23, 2014 at 6:21 am #137408This reply has been marked as private.December 23, 2014 at 6:33 am #137411Hi,
Your URL still gives 404 error. I see that you have bulk of issues. Have you setup your theme correctly?
Thanks
MohammadDecember 23, 2014 at 6:36 am #137413This reply has been marked as private.December 23, 2014 at 9:37 am #137467Hi,
Please open to edit cart.php at /joyn/woocommerce/cart/.Find this code:- <div class="cart-collaterals"> <?php do_action('woocommerce_cart_collaterals'); ?> </div> Change to :- <div class="cart-collaterals"> global $product, $woocommerce, $woocommerce_loop; $upsells = $product->get_upsells(); if ( sizeof( $upsells ) == 0 ) return; $meta_query = $woocommerce->query->get_meta_query(); $args = array( 'post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array( $product->id ), 'meta_query' => $meta_query ); $products = new WP_Query( $args ); //$woocommerce_loop['columns'] = $columns; $woocommerce_loop['columns'] = 4; if ( $products->have_posts() ) : ?> <div class="upsells products"> <h4 class="lined-heading"><span><?php _e( 'You may also like…', 'swiftframework' ) ?></span></h4> <?php woocommerce_product_loop_start(); ?> <?php while ( $products->have_posts() ) : $products->the_post(); ?> <?php woocommerce_get_template_part( 'content', 'product' ); ?> <?php endwhile; // end of the loop. ?> <?php woocommerce_product_loop_end(); ?> </div> <?php endif; wp_reset_postdata(); </div>
Thanks
MohammadDecember 23, 2014 at 10:20 am #137481This reply has been marked as private.December 23, 2014 at 10:54 am #137498Hi,
I see that you have removed all theme js files to load so this error coming.
Thanks
MohammadDecember 23, 2014 at 10:56 am #137501Hi Mohammad – I’m not sure what you mean… can you explain? Thank you
December 23, 2014 at 11:03 am #137503Hi,
I checked the cart page and found that you have removed all theme js files.
Thanks
MohammadDecember 23, 2014 at 11:08 am #137505This reply has been marked as private.December 23, 2014 at 11:30 am #137510Hi,
Please roll back all changes as i suggested you in cart.php.
Thanks
MohammadDecember 23, 2014 at 9:25 pm #137627This reply has been marked as private.December 24, 2014 at 4:26 am #137649Hi,
There were some code errors so i corrected.Please open to edit cart.php at /joyn/woocommerce/cart/.Find this code:- <div class="cart-collaterals"> <?php do_action('woocommerce_cart_collaterals'); ?> </div> Change to :- <div class="cart-collaterals"> <?php global $product, $woocommerce, $woocommerce_loop; $upsells = $product->get_upsells(); if ( sizeof( $upsells ) == 0 ) return; $meta_query = $woocommerce->query->get_meta_query(); $args = array( 'post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array( $product->id ), 'meta_query' => $meta_query ); $products = new WP_Query( $args ); //$woocommerce_loop['columns'] = $columns; $woocommerce_loop['columns'] = 4; if ( $products->have_posts() ) : ?> <div class="upsells products"> <h4 class="lined-heading"><span><?php _e( 'You may also like…', 'swiftframework' ) ?></span></h4> <?php woocommerce_product_loop_start(); ?> <?php while ( $products->have_posts() ) : $products->the_post(); ?> <?php woocommerce_get_template_part( 'content', 'product' ); ?> <?php endwhile; // end of the loop. ?> <?php woocommerce_product_loop_end(); ?> </div> <?php endif; wp_reset_postdata(); ?> </div>
Thanks
MohammadDecember 24, 2014 at 4:37 am #137656This reply has been marked as private. -
Posted in: Joyn
You must be logged in and have valid license to reply to this topic.