Forum Replies Created

Viewing 15 replies - 196 through 210 (of 221 total)
  • Thread Starter kuckovic

    (@kuckovic)

    Hi Riad,

    Okay – it would be awesome if this gets implemented in the future.
    Meanwhile, I have already done, what you’ve suggested πŸ™‚

    I’ll look forward to future updates πŸ™‚

    Best regards
    AK

    • This reply was modified 8 years, 8 months ago by kuckovic.
    Thread Starter kuckovic

    (@kuckovic)

    It’s working perfectly now πŸ™‚
    I’ve put my solution above, so if anyone else experiences the same problems, they might get an epiphany, as I just did after my nap and reading your reply twice! πŸ™‚

    Thanks again!

    Thread Starter kuckovic

    (@kuckovic)

    Hi Andrew,

    That makes perfect sense.
    Here’s my save implementation:

    var attributes = props.attributes;
    
                return (
                    el( 'a', { href: attributes.primaryCaseUrl},
                        el( 'div', { className: 'case1' },
                            attributes.primaryLargeMediaURL &&
                            el( 'div', { className: 'large-img' },
                                el( 'img', { src: attributes.primaryLargeMediaURL } )
                            ),
                            el( 'div', { className: 'arrow' },
                                el( 'span', {},
                                    el( 'img', { src: '/wpdeveloper/wp-content/uploads/2017/09/arrow-outline-right.svg' })
                                )
                            ),
                            el( 'div', { className: 'description' },
                                el( 'div', { className: 'title' }, attributes.primaryTitle ),
                                el( 'div', { className: 'content' }, attributes.primaryTeaser )
                            ),
                            attributes.primarySmallMediaURL &&
                            el( 'div', { className: 'desc-image' },
                                el( 'img', { src: attributes.primarySmallMediaURL } )
                            )
                        )
                    )
                );

    Please let me know what you find out.
    I guess I’m blind on the problem right now – so I continued with some other development meanwhile πŸ™‚

    UPDATE

    I made it work now!
    Of course, it all made sense, what you said about the querySelector.
    I changed:

     primarySmallMediaURL: {
                    type: 'string',
                    source: attr( 'img', 'src' )
                },

    To:

     primarySmallMediaURL: {
                    type: 'string',
                    source: attr( 'img.smallimg', 'src' )
                },

    And added a className in my save:

    attributes.primarySmallMediaURL &&
                            el( 'div', { className: 'desc-image' },
                                el( 'img', { className: 'smallimg', src: attributes.primarySmallMediaURL } )
                            )

    Thanks a lot for opening my eyes!
    Keep up the good work.

    Best regards
    Aris Kuckovic

    • This reply was modified 8 years, 9 months ago by kuckovic.
    Thread Starter kuckovic

    (@kuckovic)

    UPDATE:

    Otto from the review team wrote this:

    It’s not disallowed, as such. Never seen one do it, but we have some plugins that make WP core shift into beta test mode, so there’s plugins that do that kind of thing already.

    So it is allowed to be done.
    Furthermore, the users have the option to not update core, if they want that.
    Thanks for all the help πŸ™‚

    – Aris Kuckovic

    Thread Starter kuckovic

    (@kuckovic)

    Hi Tor-BjΓΆrn,

    You’re right πŸ™‚
    I will post their reply in here, for future issues on this matter.

    Thanks, guys!

    Best regards
    Aris Kuckovic

    Thread Starter kuckovic

    (@kuckovic)

    Hi Jacob,

    Yes, my plugin is already in the plugin repo – I was just thinking about adding this feature aswell, but if it’s not allowed, then I won’t add it. I was just wondering, and didn’t want to add something that’s not allowed.

    I’m adding a settings-page to the plugin, where the user can check which tasks he/she wants to run when the plugin is activated. And here I wanted to add the “Update WP to x.xx” if there was an update available.

    But I don’t know – it was just a thought πŸ™‚

    Best regards
    Aris Kuckovic

    Thread Starter kuckovic

    (@kuckovic)

    And yes, I have set up the configuration to search by SKU …
    I have 45K+ products – is it a problem to handle this amount of products?

    Thread Starter kuckovic

    (@kuckovic)

    Hi Amras,

    Sure I can, but that won’t reload my page :/
    And I can’t use “header(“location:”)” either.

    Som Im’m kindda stuck here…

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    Still nothing πŸ™
    I don’t know what could be wrong in the code.. :/

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    HI bcworkz

    Well, now I get a “Can’t find a matching criteria” page when I search, so we are getting closer πŸ™‚

    Still, if I search for a pricerange between 8200 and 8400 – I should get at least one result, but nothing comes up.

    You know what it can be?

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    Hi bcworkz,

    Okay, here’s how I’ve done it so far.
    I don’t know if it’s the right approach – but you tell me πŸ™‚

    The form:

    <label>Min. husleje</label>
              <input name="minimumhusl" id="minimumhusl" onchange="" class="textfield" type="text" />
              <label>Maks. husleje</label>
              <input name="maksimumhusl" id="maksimumhusl" onchange="" class="textfield" type="text" />

    As you see, I’ve made 2 fields.
    “Minimumhusl” is equal to “low” and “Maksimumhusl” is equal to “high”.
    And here is how I’ve done the “acceptpage”

    http://pastebin.com/mib7LUPG

    I’m not sure if I’ve done it the right way.
    It wont work when I upload it πŸ™

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    And I uploaded it on pastebin:

    http://pastebin.com/V0ECBPbR

    If it’s easier for you

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    Hi bcworkz!

    Thanks for your amazing help – REALLY appreciated!
    Okay, I have some codes for you here:

    The code from search.php (acceptpage I think):

    if($_REQUEST['srch_price'])
                    {
                        $is_search = 1;
                        $srch_price = $_REQUEST['srch_price'];
                        if(strstr($srch_price,'-'))
                        {
                            $srch_price_str = str_replace('-',' and ',$srch_price);
                            $srch_price_arr = $wpdb->get_col("select post_id from $wpdb->postmeta where meta_key like 'price' and meta_value between $srch_price_str");
                        }
                        elseif(strstr($srch_price,'+'))
                        {
                            $srch_price_str = str_replace('+','',$srch_price);
                            $srch_price_arr = $wpdb->get_col("select post_id from $wpdb->postmeta where meta_key like 'price' and meta_value >= $srch_price_str");
                        }
                           $all_pids_arr = array_intersect($all_pids_arr,$srch_price_arr);
                    }

    And the form:

    <label><?php echo SEARCH_PRICE_RANGE_TEXT; ?> : </label>
              <select name="srch_price" id="srch_price" onchange="" class="fl select">
                <option value=""><?php echo SELECT_ALL_PRICE_TEXT; ?> <?php _e("in","templatic");?> <?php echo get_currency_sym();?> </option>
                <?php echo get_price_range_dl($_REQUEST['srch_price']);?>
              </select>

    I really appreciate your help!

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    Hi Bcworkz,

    Can you please tell me how to change those fields?
    And whats the “accepting page”?

    Sorry for the inconvenience

    Aris

    Forum: Hacks
    In reply to: Search price range
    Thread Starter kuckovic

    (@kuckovic)

    And here’s a link to my website, of course:
    http://t2.designa-homepages.dk/

Viewing 15 replies - 196 through 210 (of 221 total)