Home › Forums › WoodMart support forum › Compare page modification
Compare page modification
- This topic has 7 replies, 2 voices, and was last updated 3 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
October 11, 2022 at 8:05 am #412671
suyogParticipantHi,
My code got stuck after your 7.0.0 update. I wrote some code to change the compare page table using pluggable function in child theme. But right now it is no where to be found in updated theme.
I found out that the compare template has been changed, now it is working with Ui class. I need to override that class function ‘compare_table’. Can you point me to the direction where I can make changes using child theme.
Also, if possible can you let me steps to roll back theme version temporarily.
Thank You
October 11, 2022 at 12:16 pm #412739
Artem TemosKeymasterHello,
In our latest update, we extended our compare functionality and changed the code structure. Unfortunately, PHP classes are not overridable in the child theme.
Kind Regards
October 11, 2022 at 12:58 pm #412753
suyogParticipantHi,
I know, I can’t override class and I don’t want to override the class. I just want to override class function, to be precised
Uiclass function name comparecompare_tablein child theme. This functionality is possible when we extend that particular class. I tried that like` add_action( ‘after_setup_theme’, function() {
class a extends Ui{}});`
but it always gives
Fatal error: Uncaught Error: Class 'Ui' not found error occursOctober 11, 2022 at 2:35 pm #412793
Artem TemosKeymasterHello,
There is no way to override a PHP class with your custom code, unfortunately.
Kind Regards
October 11, 2022 at 2:50 pm #412809
suyogParticipantOkay if that the case can you let me know how to roll back to 6.5.5 version of your theme
October 12, 2022 at 9:03 am #413058
Artem TemosKeymasterSend us your email and we will send you our previous version of the theme.
Kind Regards
October 12, 2022 at 12:04 pm #413137
suyogParticipantYou can send that on [email protected]
And one more request. If Possible, in your upcoming update make compare table editable to show meta fields. Using action hook or pluggable function. (Just a suggestion)
Thanks
October 12, 2022 at 12:42 pm #413147
Artem TemosKeymasterHello,
We have sent you our WoodMart 6.5.4 version via email.
Kind Regards
-
AuthorPosts
Tagged: child-theme, compare page
- You must be logged in to create new topics. Login / Register
