• Resolved pastidea

    (@pastidea)


    Hello and thank you for the great plugin.
    I have been looking for something like this for a while and couldn’t find anything similar.

    I was wondering if there is a way to integrate it with the Divi Builder?
    As Divi doesn’t show up as an editing option in the “Edit non-cachable content” post type.

    I have tried a workaround using another plugin that generates a shortcode for Divi Sections and Modules, but those seem not to be loaded correctly using Ajax that way.
    I get something like this: [et_pb_section global_module=”476005″][/et_pb_section] displayed, even using the “remote” option that you have suggested in the other support threads.
    Do you know of any possible solution I could try?
    It would be of great help.

    If not, do you know how I could recall the stock status and the add to cart button using this plugin keeping the CSS formatting or defining custom CSS for it?

    Thanks a lot!

    • This topic was modified 2 years, 4 months ago by pastidea.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter pastidea

    (@pastidea)

    I did a research online and found the following:

    Hi, you can ensure the builder modules are loaded for your ajax callback by using the et_builder_load_actions filter to add your ajax action to the array of allowed actions:

    function ddtest_et_builder_load_actions( $actions ) {
    $actions[] = ‘ddtest_handle_divi_section_shortcode’;

    return $actions;
    }

    add_filter( ‘et_builder_load_actions’, ‘ddtest_et_builder_load_actions’ );

    The discussion I found was here:
    https://github.com/elegantthemes/create-divi-extension/issues/128

    Is there a way to implement the Divi content to load also in Content no Cache?

    Thank you!

    Plugin Author Jose

    (@giuse)

    Hi Phillippp,

    Thank you, I’m happy you like Content No Cache.
    Until a couple of days ago I had covid and was sick. I was not able to do all my work, and now I have difficulties going back to normality.
    The activities for free plugins like Content No Cache are at the bottom of my to-do list. I’m giving the priority to paid projects, and plugins that have a premium version.
    I may be able to answer and help you not before 1 week. And I can’t ensure it.
    It looks for you it’s urgent, in another case you didn’t write me an email two days after opening your thread. If it’s too urgent, I suggest other plugins or solutions.
    At the moment I’m not in the condition to help.
    Thank you for your understanding.

    Best regards

    Jose

    @pastidea

    Plugin Author Jose

    (@giuse)

    Hi @pastidea

    as written in the email, please, test v. 0.0.7 that you can download here: https://downloads.wordpress.org/plugin/content-no-cache.0.0.7.zip

    Best regards

    Jose

    Thread Starter pastidea

    (@pastidea)

    Thank you very much Jose for the effort and availability.
    Unfortunately for some reason I did not receive your latest email that you mentioned above.

    I have tried the updated version of the plugin now and have two considerations:

    1) The “Add to cart section” is being displayed now using the Divi Builder shortcodes, but when using the Content no Cache plugin, the product id seems to be wrong. It reads out the stock status of a different product on a product page and if I try to add the product to the cart, in fact it adds a different product. Is it possible to get the correct product id within the “Content no cache” section?

    2) The Divi Builder as an editor is not working properly in combination with Content no Cache. It keeps loading forever and afterwards I can’t return to the standard editor, I have to delete the post and create a new one.
    But this is not really a problem, as I can work with shortcodes instead.

    Thank you!
    Best regards

    • This reply was modified 2 years, 4 months ago by pastidea.
    Plugin Author Jose

    (@giuse)

    Hi @pastidea

    you are welcome! Have you checked in your spam folder?

    Anyway,

    1)

    the product id seems to be wrong. It reads out the stock status of a different product on a product page and if I try to add the product to the cart, in fact it adds a different product.

    => This is very strange. Theoretically, Content No Cache should have nothing to do with this issue. Are you sure the product you selected in the Content No Cache editor is really the right product?
    Maybe create a new page without Content No Cache, with the right product. I should add only the “Add to cart” button and nothing else.
    Check that page without cache. Be sure it has the right product. Then create exactly the same content with Content No Cache, which means only the “Add to cart” button. Be sure you select the same product for both the simple page and the Content No Cache post type.
    Add the new Content No Cache shortcode to a new page, and compare the simple page without cache with the page including the Content No Cache.
    Do you still have the same issue?

    2) You may have a conflict with another plugin. On my installation, it works.
    Do you see any red errors in the Console?
    To get access to the Console: right-click => click on Inspect => click on Console
    If you want you can install Freesoul Deactivate Plugins and Editor Cleanup For Divi Builder to disable all other plugins when the Divi editor loads. If the problem is caused by a conflict with a third plugin, this will solve it.

    As mentioned in the email, my tests weren’t with the last version of Divi and Divi Builder.
    If for you it’s possible, can you send me the version of Divi and Divi Builder that you are using? I don’t think it changes, especially for point 1), but better if I have the same version as yours.

    Thread Starter pastidea

    (@pastidea)

    Hello @giuse,
    Thank you for your reply and for your help, really appreaciate it.
    I have sent you a separate email with the login data for our staging site and more so that you may have a look whenever you have time. I totally understand that Content no Cache has a lower priority overall, just hope that the email has arrived as there have been problems with the delivery previously.

    Regarding point n. 2) mentioned above: I confirm that it can be solved by using Freesould Deactivate Plugins and Editor Cleanup for Divi! The problem was caused by TranslatePress Multilingual. Thank you for the insight and for the solution!

    Regarding point n. 1) instead: I have placed the “Add to cart” button generically using the Divi Theme Builder. This means that it is not placed on each product page with the exact product being defined. It should get the product ID from that page. When using Content no Cache it gets the wrong product ID apparently and adds the wrong product to the cart.
    Further, Content no Cache is not displaying anything created by Divi BodyCommerce. But this problem could be solved by using the default “Add to cart” section provided by Divi instead (which has fewer options and doesn’t work with the “Ajax add to cart” function).

    Thanks a lot!
    Kind regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Integrate it with the Divi Builder’ is closed to new replies.