Digital experiences for all disciplines
Forum Replies Created
-
-
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; } }
File Name
class-wc-price-calculator-product-loop.php
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; } }
So I have it now “Variable”
Or anywhere else I have to change the parameters?What should I do with my hand, what would Ed helped to solve the problem?
Sorry I do not understand what it means.
forward to Ed
All the settings on the product page. And there is nothing with these parameters.
This reply has been marked as private.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>
No problem. Always glad to help
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”
Thanks!
You are very kind. -
Posted in: Reply To: Translating issues