-
AuthorPosts
-
October 30, 2018 at 8:51 pm #1028216
Hi,
I’ve recently started playing around with “Composite Products” for my WordPress installation. Unfortunately, when selecting different options ( = loading new content / reloading content), many of the dynamic elements from Enfold won’t load.
For example:
On the default option (Processor), the bars initially work when the page is loaded. When another option is selected, the bars don’t load. They also don’t load if re-selecting the default (8700K) option.
The same goes for the styling of the + & – buttons.I’ve contacted the developer of Composite products about this and he responded with the following:
Looking at this, I can only assume that the code that “initializes” those bars only triggers the animation on page load.
As Composite Products loads new markup when a new selection is made, the bars will need to re-initialized every time new selection details are loaded.
As an example, here’s how the official Product Add-Ons extension re-initializes its own content when loading a new Component Option in the front-end:
$( 'body .component' ).on( 'wc-composite-component-loaded', function() { $( this ).find( '.cart' ).each( function() { wcPaoInitAddonTotals.init( $( this ) ); } ); } );
In your case, you’ll need to replace wcPaoInitAddonTotals.init( $( this ) ); with something else, but it’s impossible for our team to know what that “something else” is. That’s a question that only your developer can answer. Composite Products can’t possibly “know” that.
Is there an (somewhat) easy fix for this?
See private content for link.
November 4, 2018 at 10:59 pm #1029688Hey Xioros,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisNovember 5, 2018 at 2:05 pm #1029897I’m not asking to customize the theme for me. I’m merely inquiring about the about where to find the proper documentation or at least a direction to start looking.
In your case, you’ll need to replace wcPaoInitAddonTotals.init( $( this ) ); with something else, but it’s impossible for our team to know what that “something else” is. That’s a question that only your developer can answer.
These aspects are undocumented. I already have a dev working on it and we’re in the process of solving this issue.
November 6, 2018 at 6:01 pm #1030482Hi Xioros,
Best regards,
VictoriaNovember 17, 2018 at 4:46 pm #1034755November 21, 2018 at 10:28 am #1035948 -
AuthorPosts
- You must be logged in to reply to this topic.