ninsu
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Add to Cart Button Not Working for a Single ProductI 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.
Forum: Plugins
In reply to: [WooCommerce] Add to Cart Button Not Working for a Single ProductThank 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.Forum: Fixing WordPress
In reply to: Change button text after product selectionYeah. I did the same. I tried two different browsers – nothing happend. That’s weird. Gotta figure it out somehow.
Forum: Fixing WordPress
In reply to: Change button text after product selectionForum: Fixing WordPress
In reply to: Change button text after product selectionThank 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.
Forum: Fixing WordPress
In reply to: Change button text after product selectionExactly like that
Forum: Fixing WordPress
In reply to: Change button text after product selectionfunction 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="{"attribute_skarpety-rozmiar":"43-46"}">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'; }