Forum Replies Created

Viewing 15 posts - 46 through 60 (of 113 total)
  • Posted in:
  • in reply to: Measurement Price Calculator #184768
    saylife
    Member
    Post count: 161

    I solved the problem!
    Simply replace the “Select Options”
     on
     ‘<i class=”sf-icon-variable-options”></i>’

    if ( WC_Price_Calculator_Product::pricing_calculator_enabled( $product ) ) {
    
    			// otherwise, for simple type products, the page javascript would take over and
    			//  try to do an ajax add-to-cart, when really we need the customer to visit the
    			//  product page to supply whatever input fields they require
    			$tag = sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button add_to_cart_button product_type_%s">%s</a>',
    				get_permalink( $product->id ),
    				esc_attr( $product->id ),
    				esc_attr( $product->get_sku() ),
    				'variable',
    				__( '<i class="sf-icon-variable-options"></i>', WC_Measurement_Price_Calculator::TEXT_DOMAIN )
    			);
    		}
    
    		return $tag;
    	}
    
    }
    in reply to: Measurement Price Calculator #184755
    saylife
    Member
    Post count: 161

    File Name

    class-wc-price-calculator-product-loop.php

    in reply to: Measurement Price Calculator #184752
    saylife
    Member
    Post count: 161

    I found a plug-in in the code where the displayed “Select Options”
    Where should I insert the code icons?
    <I class = "sf-icon-variable-options"> </ i>

    That’s part of the code

    /** Frontend methods ******************************************************/
    
    	/**
    	 * Modify the 'add to cart' url for pricing calculator products to simply link to
    	 * the product page, just like a variable product.  This is because the
    	 * customer must supply whatever product measurements they require.
    	 *
    	 * @since 3.3
    	 * @param string $tag the 'add to cart' button tag html
    	 * @param WC_Product $product the product
    	 * @return string the Add to Cart tag
    	 */
    	public function loop_add_to_cart_link( $tag, $product ) {
    
    		if ( WC_Price_Calculator_Product::pricing_calculator_enabled( $product ) ) {
    
    			// otherwise, for simple type products, the page javascript would take over and
    			//  try to do an ajax add-to-cart, when really we need the customer to visit the
    			//  product page to supply whatever input fields they require
    			$tag = sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button add_to_cart_button product_type_%s">%s</a>',
    				get_permalink( $product->id ),
    				esc_attr( $product->id ),
    				esc_attr( $product->get_sku() ),
    				'variable',
    				__( 'Select Options', WC_Measurement_Price_Calculator::TEXT_DOMAIN )
    			);
    		}
    
    		return $tag;
    	}
    
    }
    
    in reply to: Measurement Price Calculator #184748
    saylife
    Member
    Post count: 161

    So I have it now “Variable”
    Or anywhere else I have to change the parameters?

    in reply to: Measurement Price Calculator #184669
    saylife
    Member
    Post count: 161

    What should I do with my hand, what would Ed helped to solve the problem?

    in reply to: Measurement Price Calculator #184668
    saylife
    Member
    Post count: 161

    in reply to: Measurement Price Calculator #184653
    saylife
    Member
    Post count: 161

    Sorry I do not understand what it means.

    forward to Ed

    in reply to: Measurement Price Calculator #184631
    saylife
    Member
    Post count: 161

    All the settings on the product page. And there is nothing with these parameters.

    in reply to: Measurement Price Calculator #184624
    saylife
    Member
    Post count: 161
    This reply has been marked as private.
    in reply to: Translating issues #182420
    saylife
    Member
    Post count: 161

    It was not difficult.
    file locate at Atelier/woocommerce/checkout/form-checkout.php

    <a class="sf-button standard sf-icon-reveal checkout-button accent" href="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>"">
    <i class="fa-long-arrow-left"></i>
    <span class="text">Return to cart</span></a>

    in reply to: Translating issues #182350
    saylife
    Member
    Post count: 161

    unlucky me today

    in reply to: Translating issues #182336
    saylife
    Member
    Post count: 161

    in reply to: Translating issues #182330
    saylife
    Member
    Post count: 161

    No problem. Always glad to help

    in reply to: Translating issues #182318
    saylife
    Member
    Post count: 161

    I so understand, all my efforts in search of truth, and the solution of mistakes in order that “Atelier” became a perfect template, from outside looks silly and distracts from important issues.
    It is necessary to point to your mistakes, and not to ask silly questions?
    No problem
    I’m sorry ,and I will ask questions on the merits

    “swift-framework” to “swiftframework”

    in reply to: Translating issues #182304
    saylife
    Member
    Post count: 161

    Thanks!
    You are very kind.

Viewing 15 posts - 46 through 60 (of 113 total)