• Resolved rednib

    (@rednib)


    Hi,

    Great plugin ! thanks for your work.

    I try to add your addtowishlist shortcode in cart.php, but it won’t shos up.

    
    
    // cart.php
    
    <tr class="woocommerce-cart-form__cart-item <?php echo esc_attr(apply_filters('woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key)); ?>">
                
                <td class="product-remove">
                  <!-- test wishlist ici  -->
                  <div class="bg-warning">
                    WISH HERE WON'T SHOWS
                    <?php echo do_shortcode('[ti_wishlists_addtowishlist loop=yes]'); ?>
                  </div>
                  <!-- test wishlist ici  -->
    
                  <?php
                  echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
                    'woocommerce_cart_item_remove_link',
                    sprintf(
                      '<a href="%s"><i class="far fa-trash-alt"></i></a>',
    
    ...
    ...
    
    • This topic was modified 2 years, 11 months ago by rednib.
    • This topic was modified 2 years, 11 months ago by rednib.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @rednib

    The shortcode requires to access the WooCommerce product object that isn’t available directly on the cart page (It can be accessed as a property of a cart item). Such a feature exists in the premium version of our plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘addtowishlist shortcode won’t shows up in cart.php’ is closed to new replies.