skaejaz06
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada BuilderThanks, I’ll check for preloading. What if we need to preload multiple images ? It should be seperated by comma ?
what else I can do w.r.t layer slider ?
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada BuilderI dont think avada is blocking because I saw here in support thread it’s working for many guys. Is there any filter or anything we can use ?
what about layer slider. AO doesn’t work with it ? LCP time is decreasing if I deactivate layer slider plugin.
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada BuilderYes & its even eliminating lot of render blocking resources
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada BuilderHi,
Sent email
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada Buildercan you please share your email I’d I’ll share URL there.
Forum: Plugins
In reply to: [Autoptimize] Autooptimize Not working with Avada BuilderHi,
its for both.
Also, I’m using layer slider & i notice that whenever I deactivate plugin performance improves drastically on gtmetrix but when I activate again performance reduced. Is there any way to resolve the issue related to layer slider ? Any filter or something which loads layer slider scripts early? FCP & LCP both are impacting due to this.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Want to keep 200min amount in walletHey,
I’m looking for the similar functionalities.
Awaiting reply from developer
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Variation Validation Not workingHi,
This is the code in all 3 files. can you pls help me in modifying the same according to the latest version
variable.php
if ( ! defined( 'ABSPATH' ) ) { exit; } global $product; $attribute_keys = array_keys( $attributes ); do_action( 'woocommerce_before_add_to_cart_form' ); ?> <form class="variations_form cart" action="<?php echo esc_url( get_permalink() ); ?>" method="post" enctype='multipart/form-data' data-product_id="<?php echo absint( $product->get_id() ); ?>" data-product_variations="<?php echo htmlspecialchars( wp_json_encode( $available_variations ) ) ?>"> <?php do_action( 'woocommerce_before_variations_form' ); ?> <?php if ( empty( $available_variations ) && false !== $available_variations ) : ?> <p class="stock out-of-stock"><?php _e( 'This product is currently out of stock and unavailable.', 'woocommerce' ); ?></p> <?php else : ?> <h3>Purchase Options</h3> <table class="variations" cellspacing="0"> <tbody> <?php foreach ( $attributes as $attribute_name => $options ) : ?> <tr> <td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label></td> <td class="value"> <?php $selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( stripslashes( urldecode( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) ) : $product->get_variation_default_attribute( $attribute_name ); wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) ); ?> </td> </tr> <?php endforeach;?> </tbody> </table> <?php echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' ) : ''; ?> <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?> <div class="single_variation_wrap"> <?php /** * woocommerce_before_single_variation Hook. */ do_action( 'woocommerce_before_single_variation' ); /** * woocommerce_single_variation hook. Used to output the cart button and placeholder for variation data. * @since 2.4.0 * @hooked woocommerce_single_variation - 10 Empty div for variation data. * @hooked woocommerce_single_variation_add_to_cart_button - 20 Qty and cart button. */ do_action( 'woocommerce_single_variation' ); /** * woocommerce_after_single_variation Hook. */ do_action( 'woocommerce_after_single_variation' ); ?> </div> <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?> <?php endif; ?> <?php do_action( 'woocommerce_after_variations_form' ); ?> </form> <?php do_action( 'woocommerce_after_add_to_cart_form' );variation-add-to-cart-button.php
if ( ! defined( 'ABSPATH' ) ) { exit; } global $product; ?> <div class="woocommerce-variation-add-to-cart variations_button"> <?php /** * @since 3.0.0. */ do_action( 'woocommerce_before_add_to_cart_quantity' ); woocommerce_quantity_input( array( 'min_value' => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ), 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ), 'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( $_POST['quantity'] ) : $product->get_min_purchase_quantity(), ) ); /** * @since 3.0.0. */ do_action( 'woocommerce_after_add_to_cart_quantity' ); ?> <button type="submit" class="single_add_to_cart_button button alt"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button> <input type="hidden" name="add-to-cart" value="<?php echo absint( $product->get_id() ); ?>" /> <input type="hidden" name="product_id" value="<?php echo absint( $product->get_id() ); ?>" /> <input type="hidden" name="variation_id" class="variation_id" value="0" /> </div>variation.php
if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <script type="text/template" id="tmpl-variation-template"> <div class="woocommerce-variation-description"><code>data.variation.variation_description</code></div> <div class="woocommerce-variation-price"><code>data.variation.price_html</code></div> <div class="woocommerce-variation-availability"><code>data.variation.availability_html</code></div> </script> <script type="text/template" id="tmpl-unavailable-variation-template"> <p><?php _e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p> </script>Thank You
- This reply was modified 5 years, 6 months ago by skaejaz06.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Variation Validation Not workingI even tried by deactivating all the plugins but still, the issues remain. is it because of the custom template which I’ve created in the theme? if yes can you pls let me know which file is responsible for that?
Forum: Plugins
In reply to: [WooCommerce] Shipping Charges Based on Variation SelectedHi,
Ok, I’ll try to explain by screenshots.
I’m using Table Rate shipping & I have added multiple shipping zones with different shipping Cost – https://ibb.co/Wv5yq91
Shipping settings which I did ( Here if the product has no delivery class then the shipping charge is $0 & for all other classes shipping charge is $25 ). Pls see screenshot – https://ibb.co/SJtVcxg
In the products, I’ve created 2 variations/terms of Attribute delivery method ( Garden Bag & Dump Truck Load ) – https://ibb.co/rxsrmsh
Now I have added a product in cart with variation as Dump Truck Load & if you notice the shipping charge is $25 – https://ibb.co/W5B246j
Now I have added another product in cart with variation as Garden Bag. So now I’ve 2 products in the cart but if you notice the shipping charge is still $25 which is fine according to Woocommerce default behaviour – https://ibb.co/Fg2W92c
What I want is if the products of both variations are in the cart ( Garden Bag & dump truckload ) the shipping charge should be double. In my example, it should be $50.
if there are only products of 1 variation in the cart ( either Graden Bag or Dump truckload ) then default shipping charge of $25 must be applied. But if the cart has products of both variations/terms then shipping charge should be double.
Also, I wanted to display clearly in order total section why I’m doubling the shipping charge.
I hope it’s clear now
Thanks