Skip Navigation

[Geschlossen] wpv-woo-buy-or-select > link_to_product_text not working

This support ticket is created vor 8 Jahre, 6 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 7 Antworten, has 2 Stimmen.

Last updated by Adriano vor 8 Jahre, 6 Monate.

Assigned support staff: Adriano.

Author
Artikel
#230780

Hi,

When I use this:

[wpv-woo-buy-or-select add_to_cart_text="" link_to_product_text=""]

WooCommerce is using it's own buttons texts, and this is working.

However, if I want to overwrite the link_to_product_text, it is not doing anything.
When I overwrite add_to_cart_text, it also overwrites the link_to_product_text with the same, but that's not how it should act because it should be different texts.

Can you solve this?

Kind regards,

Willem

#230803

Dear Willem,

Can I see your site? I wanted to see this happening on your site. The private area is enabled.

#230891

Here you go. Staging site.

#230894

See content template 'Catalog product'.

#231137

Dear Willem,

Why can't I save a Content Template in your site? When I try then nothing happens.

#231139

Hi, that's because of this topic, https://toolset.com/forums/topic/content-template-not-saving/. You need to disable WooCommerce Multilingual, then open views content template in new tab of your browser. Than in your other tab you can activate WooCommerce Multilingual again. Leave the tab of the content template open and you can save it all the time again. Stupid workaround, but it works ;-).

#231565

Dear Willem,

I see the problem now. It looks like a bug. I will let our development team aware about this. So, you will be notified in case we build a patch before an official release. Thank you for reporting that, closing it now.

#233919
products.jpg
default_wc_button_text.jpg
customizedtext.jpg

Dear Willem,

I checked this using our latest stable versions(Types 1.5.7, Views 1.6.1 and WooCommerce Views 2.1) along with latest WC 2.1.12. And it seems to be working properly.

The shortcode allows customization of two parameters which is meant for two different WoCommerce products (simple and variation):

[wpv-woo-buy-or-select add_to_cart_text="" link_to_product_text=""]

The "add_to_cart_text" is meant to customizing the add to cart button that will work only for simple products. While "link_to_product_text" is meant for customizing variation products button in the loop. For example, say I have two simple products and one variation product( see screenshot products.jpg). And then I would like to display the product title and action button in the View loop with this:

[wpv-layout-start]
    [wpv-items-found]
    <!-- wpv-loop-start -->
        <wpv-loop>
          [wpv-post-title]: [wpv-woo-buy-or-select add_to_cart_text="" link_to_product_text=""]
          <br />
        </wpv-loop>
    <!-- wpv-loop-end -->
    [/wpv-items-found]
    [wpv-no-items-found]
        [wpml-string context="wpv-views"]<strong>No items found</strong>[/wpml-string]
    [/wpv-no-items-found]
[wpv-layout-end]

Take note that wpv-woo-buy-or-select is not having any parameter set. It will use the WC default text.See the output of this shortcode with the screenshot: default_wc_button_text.jpg

And then if I customize their button text as follows:

[wpv-woo-buy-or-select add_to_cart_text="Click me now" link_to_product_text="Click this select button"]

You can see that the variation button uses the link_to_product_text while the add to cart text uses its own respective button. I also tested by only assigning the add_to_cart_text parameter while using the default link_to_product_Text and vice versa. Its working well.

Das Thema „[Geschlossen] wpv-woo-buy-or-select > link_to_product_text not working“ ist für neue Antworten geschlossen.