Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ninsu

    (@ninsu)

    I contacted the plugin developer and we resolved the issue. The problem was with the JavaScript in my theme – TheGem, which was not compatible with the WooCommerce Attribute Stock plugin. The code in the ‘thegem-custom-product’ file had to be changed. Now everything works fine. This might help someone if they encounter a similar problem in the future – it already has a solution.

    edit: after every theme update you have to change ‘thegem-custom-product’ file

    • This reply was modified 2 months, 1 week ago by ninsu.
    Thread Starter ninsu

    (@ninsu)

    Thank you for a quick response @carolm29
    I’m using WPML for multilingual support, and the Stripe plugin is WooCommerce Stripe Gateway – added from WooCommerce.
    The product is no different from the others.
    I’m also using the WooCommerce Attribute Stock plugin (pro version), and when I disable it, everything returns to normal and works, but I can’t stop using this plugin.

    Thread Starter ninsu

    (@ninsu)

    Yeah. I did the same. I tried two different browsers – nothing happend. That’s weird. Gotta figure it out somehow.

    Thread Starter ninsu

    (@ninsu)

    I put it through some code plugin as a JS.

    • This reply was modified 1 year, 4 months ago by ninsu.
    • This reply was modified 1 year, 4 months ago by ninsu.
    Thread Starter ninsu

    (@ninsu)

    Thank you. I really appreciate that. Unfortunately, didn’t work for me. I tried to be more specific and did some changes to the code but with no result.

    Thread Starter ninsu

    (@ninsu)

    Exactly like that

    Thread Starter ninsu

    (@ninsu)

    function wpb_woo_change_order_button_text() {
    return 'Dodaj do koszyka';
    }
    add_filter( 'woocommerce_order_button_text', 'wpb_woo_change_order_button_text' );

    Code above worked for single product page.

    In the inspector of browser this element looks like:

    <a  data-quantity="1" class="button product_type_variable add_to_cart_button cfvsw_ajax_add_to_cart cfvsw_variation_found" data-product_id="972" data-product_sku="1-5-1-1" aria-label="Wybierz opcje dla ?Skarpety Buddies!”" aria-describedby="This product has multiple variants. The options may be chosen on the product page" rel="nofollow" data-product_name="Skarpety Buddies!" data-price="39" data-add_to_cart_text="Add to Cart" data-select_options_text="Wybierz opcje" data-variation_id="980" data-selected_variant="{&quot;attribute_skarpety-rozmiar&quot;:&quot;43-46&quot;}">Add to Cart</a>

    If I change text of <a> attribute it changes text on button, but don’t know how to implement it permanently.
    Also I tried edit some CSS, but without success.

    button product_type_variable.add_to_cart_button.data-add_to_cart_text {
    	content: 'TEST';
    }
    

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