Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter iamjohnwhite

    (@iamjohnwhite)

    Booyah, update worked like a charm. Thank you!

    Thread Starter iamjohnwhite

    (@iamjohnwhite)

    I actually just realized it is a conflict with Woocommerce. It was a core plugin we never disabled. Just disabled it and it brought everything back. When re-enabled it removed it.

    Thread Starter iamjohnwhite

    (@iamjohnwhite)

    Awesome, Thanks Mike. I’ll update this thread if I am able to come up with a solution for anyone else looking to do the same. Appreciate the help!

    Thread Starter iamjohnwhite

    (@iamjohnwhite)

    We want to accomplish the same concept of a variable product where it would add the users selection under the product name, yes. But, we are stuck to only creating Simple Products due to our Modern Retail POS Software integration.

    Product to test:
    product
    Under additional info, we have Sq/ft Per Box as an attribute line filled in with 19.69. That 19.69 would ideally populate into the cart

    This is the code I currently have inputed

    <td class="product-name">
    						<?php
    							if ( ! $_product->is_visible() )
    								echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key );
    							else
    								echo apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key );
    
    							// Meta data
    							echo WC()->cart->get_item_data( $cart_item );
    
                   				// Backorder notification
                   				if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) )
                   					echo '<p class="backorder_notification">' . __( 'Available on backorder', 'woocommerce' ) . '</p>';
    
    						?><br>
                            <span class="pa_sqft-per-box"><span class="attribute-label">Sq/ft Per Box :  </span> <span class="attribute-value"></span></span>
    
    					</td>

    This is how it appears in cart
    cart image

Viewing 4 replies - 1 through 4 (of 4 total)