Forum Replies Created

Viewing 15 replies - 16 through 30 (of 64 total)
  • Forum: Fixing WordPress
    In reply to: WordPress speed
    Thread Starter bmontgomery

    (@bmontgomery)

    I already did and here’s what it says :

    1. Minify JavaScript : I can’t do it because when I do it always causes bad behaviors in the scripts.

    2. Leverage browser caching : I’m not sure how to do that… Maybe in htaccess ?

    3. Defer parsing of JavaScript
    1.0MiB of JavaScript is parsed during initial page load. Is it a lot ?
    I’m not sure how to do because the biggest js are the one coming from plugins, like for example revolution slider. If it doesn’t load first, then the slideshow won’t appear…

    4. Optimize images : i will try to do it but I need a good tool and I must admit all the tools I tested were not good for image quality. And GTmetrix says i will gain 65kb which is not much.

    5. Combine images using CSS sprites
    I can do that too but I have D for this one so it’s not that bad.

    Then all the others are green.

    Do you think I can improve speed with another hosting, another server ? (for now I have D for page speed).

    Also, inside the site I developed a module and when I go from one page to another, it takes a lot of time too. But GTMetric can’t help with this.

    Thanks for your help.

    Thread Starter bmontgomery

    (@bmontgomery)

    It’s still in develoment and I’d rather not put the URL here.
    But I placed the code in the functions.php file so it should work.
    Any idea of what I should do ? Or maybe I could pm you the website URL ?

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello and thanks for your answers.

    @stef I’m not sure you understood my issue. It’s actually a bit complex and I was not able to explain it easily – and I’m not native english ??

    I was about to succeed, I had found some woocommerce filters that are triggered and that let me make some changes on the prices but now I have another issue.

    @dougaitken Yes the price is not the samùe for each customer.
    To be more specific, one of the criteria is the number of days that the client will be booking the product. I installed a plugin that deals with booking dates so it’s working great. I have the number of days and I made some back office tables to add the prices depending on the option (attribute) and number of days.

    As I said, it’s already working with no bug.
    The only thing is that I’d like to dynamically display the information.

    One thing I forgot to mention (and I realized while i was developping) is that I use only one variation in each product, with generic values. Let me explain :

    First I was using Woocommerce as I always did, and I click on the button to generate all the possible variations for each product. But it lead to a huge number of variations. That’s why I decided to follow the advice of another developer and I just added one variation chose no value at all.

    For example, for one product I have these attributes : More ram / More memory
    And that’s all. I just choose the default behavior which is for example : More Ram : no / More memory : no

    When the user gets on the product page, the default product is with no ram and no memory. Then he can choose to add more ram and/or more memory.

    This is a simple example, I had thousands of possibilities at first and it was not handled correctly.

    Anyway : My issue now is when I click to make a change on the options, nothing happens… the function that was supposed to be called when an option is chosen is not triggered anymore and it’s a big problem.

    To be more specific, in add-to-cart-variation.js, there’s a function VariationForm.prototype.onChange which is not triggered, even if I change the options on the product page.

    I’m going to visit the slack community and see if someone can help me…
    Very complex indeed.

    Thread Starter bmontgomery

    (@bmontgomery)

    Yes i was able to do it, thanks

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello,
    I added these shortcodes:
    [ultimatemember form_id=”535″]
    and
    [ultimatemember form_id=”536″]
    The 1st one being a registration form and the second one a login form.
    None of them display the form when I’m on the restricted page.

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello,

    Sorry to insist but isn’t there anyone willing to help me ?
    I’m really stuck and don’t know what to do.
    I’m sure there must be a way to achieve what I want…
    Thanks

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello… I’m still stuck with this thing… Anybody ?
    I’m not sure if I was very clear but basically, I want the value of a given field to change when I select an option.
    Is it doable with contact form 7 ?
    Or is there a plugin to install ? Conditional fields plugin was no help…

    Thanks

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello Greg,
    I already sent you the details through your form.
    I gave you all the details.
    I hope you’ll be able to help me.
    Thanks

    Thread Starter bmontgomery

    (@bmontgomery)

    Yes i can send you details but the site is still private.
    Is there any email address I could send you the details to ?
    Or maybe a skype contact ?

    Thread Starter bmontgomery

    (@bmontgomery)

    Finally I edited the function that adds my custom fields.
    I just added the “unset” part:

    
    function custom_adverts_form_load( $form ) {
    
        if( $form["name"] != "advert" ) {
            return $form;
        }
    
        // Here I add my custom fields
        // ...
    
        // removing category
        foreach( $form["field"] as $key => $field ) {
            if( $field["name"] == "advert_category" ) {
                unset( $form["field"][$key] );
            }
        }
    
        return $form;
    }
    add_filter( "adverts_form_load", "custom_adverts_form_load" );
    

    And it’s working fine.

    Another quick question:
    can I switch the order of the fields ?
    I’d like to have the image gallery after the ad description.
    Is it possible ?

    Thread Starter bmontgomery

    (@bmontgomery)

    Thanks.
    Are you sure there’s nothing missing ?
    You’re just declaring the function here.
    Where is it called ?
    I added this declaration in my functions.php file and nothing changed…

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello,

    Thanks for your answer.
    Do you have any idea of the date ?
    I mean, I already talked to plugin developers who told me they would add a feature they never added ??
    My client asked me this feature and I’d like to be sure that she will have it.

    Thank you.

    Thread Starter bmontgomery

    (@bmontgomery)

    I only have one translation file, located in wp-content/languages/pmpro

    Thread Starter bmontgomery

    (@bmontgomery)

    My po file is fine, and the strings are correctly translated.
    That’s why i don’t understand why some string appear correctly in french, while some strings appear in english.
    As I said, all the strings are ok in the po file, correctly translated in french.

    What do you mean about gettext ? What is it ? Can it help me solve this problem ?

    Thread Starter bmontgomery

    (@bmontgomery)

    Well, finally it seems my problem has nothing to see with overriding templates:
    – I use custom template for manage.php file and my page displays texte in english
    – I also use custom template for manage-edit.php, and this page correctly displays in french…
    So really, I don’t understand.

    Any idea of what could be wrong ?

Viewing 15 replies - 16 through 30 (of 64 total)