Digital experiences for all disciplines
Forum Replies Created
-
-
May 25, 2016 at 11:51 am in reply to: WooCommerce native text hook for "add to cart" or "configure" text #270014
Hi Ed,
that sounds great. I am really happy that you will solve this with an update.
Also a big thanks to Rui, which was very patient regarding my bad English and explanation.
I am looking forward to the update.
Best regards
MartinThis reply has been marked as private.Thanks for your fast response, Rui. You mean I shall deactivate it for all the time? – I need this plugin, it is essential for my shop, also your theme. The strange thing is, that only the sale category of the swift page builder is affected. As you know all other sale products working fine. Did you have similar cases in the past? Is there anything I could check in the theme? Thanks in advance. I really appreciate your help.
Best regards
MartinHi Rui,
thanks for the hint. I´ve figured out that the problem is due a Upload plugin. If I deactivate this plugin, everything is fine. Could you please give me an advise what I could do in that case? Unfortunately I do not know what I have to change. In the options of the backend are no settings what could be the reason for that error. Thanks in advance.
Best regards
MartinHi Mohammad,
Thank you for your response. First of all – could you please remove the link of Rui’s last message or make it private?! Thanks in advance.
The problem does exist further. Where do you exactly check the sale products? Did you scroll down the homepage until you see the “Sale” category? This category is created with swift page builder. On every other place of the website, the sale products looks fine. I guess this is a settings issue or an issue with the swift page builder. Thanks in advance for your help.
Warm regards
MartinP.s. I checked the website on 3 different PC’s, 2 different OS and 2 different browser – on every system the text doesn’t appear.
Hey Rui,
thanks for your answer. I have cleared the cache but unfortunately nothing changed. The curious thing is, that the actual sale products work fine, but on the “startseite” under the “sale product” category of swift page builder, it doesn’t work – you have to scroll down a bit. Could you please make your last message privat due the link with the screenshot? I want to keep the page content secret as long as possible 🙂 Thank you.
May 23, 2016 at 7:04 pm in reply to: WooCommerce native text hook for "add to cart" or "configure" text #269559Ok…Thank you Rui…
Looking forward to hear from you…May 22, 2016 at 9:39 am in reply to: WooCommerce native text hook for "add to cart" or "configure" text #269202Hi Rui,
thanks for your response. I have deinstalled the Twentysixteen theme, so I can´t show you some examples via screenshot. What I am trying to explain is, that the theme does use other strings than the current version of WooCommerce.
Here is the answer of the developer.
——————————————–
The screenshot is correct. This is what the theme is using. The problem is that those filters you see are not being used by WooCommerce.
WooCommerce on its last version 2.5x uses the following (which you can see by looking at its files):
\woocommerce\includes\abstracts\abstract-wc-product.php:
` /**
* Get the add to cart button text.
*
* @return string
*/
public function add_to_cart_text() {
return apply_filters( ‘woocommerce_product_add_to_cart_text’, __( ‘Read more’, ‘woocommerce’ ), $this );
}`\woocommerce\includes\class-wc-product-grouped.php:
/**
* Get the add to cart button text.
*
* @access public
* @return string
*/
public function add_to_cart_text() {
return apply_filters( ‘woocommerce_product_add_to_cart_text’, __( ‘View products’, ‘woocommerce’ ), $this );
}\woocommerce\includes\class-wc-product-simple.php:
/**
* Get the add to cart button text.
*
* @return string
*/
public function add_to_cart_text() {
$text = $this->is_purchasable() && $this->is_in_stock() ? __( ‘Add to cart’, ‘woocommerce’ ) : __( ‘Read More’, ‘woocommerce’ );return apply_filters( ‘woocommerce_product_add_to_cart_text’, $text, $this );
}\woocommerce\includes\class-wc-product-variable.php:
/**
* Get the add to cart button text.
*
* @access public
* @return string
*/
public function add_to_cart_text() {
return apply_filters( ‘woocommerce_product_add_to_cart_text’, __( ‘Select options’, ‘woocommerce’ ), $this );
}\woocommerce\includes\class-wc-product-variation.php:
` /**
* Get the add to cart button text.
*
* @return string
*/
public function add_to_cart_text() {
$text = $this->is_purchasable() && $this->is_in_stock() ? __( ‘Add to cart’, ‘woocommerce’ ) : __( ‘Read More’, ‘woocommerce’ );return apply_filters( ‘woocommerce_product_add_to_cart_text’, $text, $this );
}`
You can also see the WooCommerce documentation at https://docs.woothemes.com/document/change-add-to-cart-button-text/#section-2 (Change the add to cart text on product archives)
Note that the filter I’m talking about woocommerce_product_add_to_cart_text is what it should be use on WooCommere 2.1+ as indicated at the official WooCommerce documentation.
——————————————–
Thanks in advance for your help.
Best regards
MartinThis reply has been marked as private.May 18, 2016 at 6:47 pm in reply to: WooCommerce native text hook for "add to cart" or "configure" text #268495This reply has been marked as private.This reply has been marked as private.May 16, 2016 at 8:19 pm in reply to: WooCommerce native text hook for "add to cart" or "configure" text #267891Hi Rui,
Thanks for your response. It’s not a translation issue. For that cases I use WPML, which guides me through the different strings.
I have the problem that the “add to cart” text won’t change, if I have variable instead of regular products. Actually it shall change to anything like “configure” or so. In that case, the client knows that he has to choose different options before he can add the product to the cart.
At the moment the “add to cart” text will stay the same, even if I have a variable product.
This is a problem which I can solve via an extra options plugin, but in that case, I need the native woo commerce rules. I figured out, that the theme uses other hooks. I hope I could explain the problem a bit better. It is hard for me to describe such a complex issue in English. Thanks for your help.
Warm regards
MartinMay 16, 2016 at 12:21 pm in reply to: WooCommerce native text hook for "add to cart" or "configure" text #267718Hi Mohammad,
thanks for trying to help. Actually I am looking for the thing I have to change in the theme, to get my desired result. The plugin you have posted is surely the right one to find the different segments, but I don´t have the coding knowledge, to find the thing which I have to change in the theme. That´s why I asked what do I have to change to get that result? Thanks in advance.
warm regards
MartinSame issues here after updating to 3.4.0. Thanks in advance for some help.
Hi Kyle,
thank you for the suggestion. I thought it is possible to work with product ID´s. Anyway – it is working. Thank you.
-