• Hi howdy I am using WooCommerce plugin Yith Subscription PRO and Membership PRO. I am creating the plans page and the add to product button is not working as it should run.

    For example:

    The urls we see below, it adds the product, but in the tests we have done the subscription does not work:
    Using paypal with sandbox for testing of subscription product in Simple Product and subscription product in Variable Product.

    https://wwww.domain.com/?add-to-cart=2401
    https://wwww.domain.com/name-product/?add-to-cart=2401
    https://wwww.domain.com/cart/?add-to-cart=2401
    https://wwww.domain.com/checkout/?add-to-cart=2401

    Try to look at the url of the membership product button but as you are using AJAX it does not allow to see your original url. Maybe you are wrong or it is not intepreting the information shown in Inspect.

    I found in a forum only talk about this example but nothing concrete, that the URL of the custom button should be:

    https://domain.com/product_name?add-to-cart=256&convert_to_sub_256=1_month

    Nobody explains how the url is formed, from where the names, or the IDs or the Variables that call or inform the cart or the checkout of the values to enter apart from the ID mentioned above.

    But if you go directly to the product for example the original url:

    https://wwww.domain.com/name-product/

    And click the add to cart button, the system does load all the subscription and membership information. In all the tests I did the payment process and it only works in this last one.

    I want to create a URL to use it in the buttons, I used Elementor PRO, I have also used the add to cart customizer and it doesn’t work either, because it adds a simple product without subscription and without membership.

    If we look at the URL it has the information to use, but I don’t know if a script or plugin is needed to make it work.

    It seems that the url that is not AJAX but a custom button must have something more than this simple url https://wwww.domain.com/?add-to-cart=2401.

    I found a shortcode, and it is the only thing that is in all plugins, incredible that they have little information, I know that this shortcode is useless but at least gives an idea that the url that I am customizing since it only works in the simple product and I want a button on the membership page, has the correct attributes. The simple example I saw is [yith_wocc_button]. There should be one for subscriptions.

Viewing 1 replies (of 1 total)
  • Plugin Support Alberto Martin

    (@albertomrtn)

    Hello @andersonviviel ,

    If you have installed the premium version of the plugin, you can write to our support service at yithemes.com/my-account, otherwise it could be misleading to other users here on www.remarpro.com. Don’t worry, our support developers will certainly help you solve the problem you are experiencing.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a custom URL to add to cart for Yith Subscriptions’ is closed to new replies.