Home>Support>It is about price table. I need the function when I click the button and it will open a new windows.

It is about price table. I need the function when I click the button and it will open a new windows.

As the thread title, I need a function like in Price Box.
It allows me to choose opening a new window or not by click a checkbox.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Max Lee

    I am a no-knowleadge of software coding person. This is important to you to teach me.

    For achieving my goal, I studied the files. I found a file “so-price-table-widget.php” from the folder of “…wp-content\plugins\so-widgets-bundle\widgets\so-price-table-widget”
    I add codes as below.

    'btn_new_window' => array(
                             'type' => 'checkbox',
            		  'label' => __('Open In New Window', 'siteorigin-widgets'),
    

    It makes we can see a checkbox in the price table editer, but it doesn’t work.
    No matter I check it or not. I click the button in front end. It always open the link on the same windows.
    I tried to change the variables”URL” to “UR” in the same file. I found it became no work after changed.
    So, I guess somewhere has the definition for all variables.
    It needs let ‘btn_new_window’ variable been known.
    Unfortunately, I have no capability to go further.
    Please advise me how to make it open the link to a new windows in price table.

  2. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hi Max

    Thanks for reaching out.

    Implementing this addition in an upgrade friendly manner is unfortunately a custom development task and outside of the scope we can offer here at SiteOrigin Support. If you have a moment please send a request to our dev team here: https://siteorigin.com/suggest-feature/

    Other alternatives might be to hire a company like https://codeable.io/ to assist or to consider alternative price table plugins that might already have this option ready to go.

    Sorry we don’t have more right away. We’re doing loads of work on our Widgets Bundle plugin so there is a good chance we’ll see this get rolled out in the future.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More