Post by Lumirion » Tue Aug 20, 2024 2:03 am

I’m using:
OC Version: 3.0.3.3
extension: Option Combinations
PHP Version: 7.5

Option Combinations uses OCMOD to make changes to product.twig. But, when my event triggers I wind up fetching a clean copy of product.twig from the drive. Is there a way to check for a version that has been modified by OCMOD and use that?

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by JNeuhoff » Tue Aug 20, 2024 3:57 am

Are you using an view/*/after or view/*/before event? The after event should use the latest modified template, though I have never tried both an OCmod and after-event for the same template, so best to try it out.

BTW.: I don't think there ever was a PHP 7.5 version, see https://www.php.net/supported-versions.php

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Lumirion » Tue Aug 20, 2024 6:04 am

I'm using a before event so I can access twig variables. hmm, I'm probably using PHP 7.4 then.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by Lumirion » Tue Aug 20, 2024 11:15 pm

Interesting. Do you know if the function "getTemplateBuffer" was pulled into Opencart by version 3.0.3.3? Otherwise I can copy it.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 18 guests