Hi, Just want to check I’m editing the right page – I need to include an additional <div> element for a particular product, so I’m editing product.twig to check that it works before commiting to an ocmod. However, any changes I’m making are not showing on the front end. I just want to add a bit of code that adds a div element after the wishlist button on one particular product. I’m editing catalog/view/theme/journal3/template/product/product.twig. I’d assumed that this was the correct file. I’ve edited the category.twig file under the same directory with no problem. Any help would be appreciated. Is this the right file? Or is there a reason due to Journal 3 config that is stopping changes being saved? TIA
Share
Here’s a step-by-step guide to help you troubleshoot and resolve the issue of changes not reflecting on the product page in OpenCart with the Journal 3 theme:
Step 1: Confirm You Are Editing the Correct File
The first step is to ensure you’re editing the right file. In Journal 3, the product page template is typically located at:
catalog/view/theme/journal3/template/product/product.twig
.Since you’ve successfully edited
category.twig
in the same directory, it’s likely this is the correct file for the product page. However, double-check that:Step 2: Clear the Journal 3 Cache
Journal 3 has its own caching system, which often causes changes not to reflect immediately. To resolve this:
Additionally, clear your browser cache or test in an incognito window to rule out browser-level caching.
Step 3: Clear OpenCart Cache
OpenCart itself maintains a separate caching system. After editing the
.twig
file:Step 4: Check for Modifications (OCMOD or VQMOD)
If there are any modifications in place, they might be overriding your changes to the
product.twig
file.Step 5: Review Journal 3 Settings
Journal 3 theme includes extensive customization options that might interfere with
.twig
edits. To check:Step 6: Target a Specific Product
If your changes involve adding the
<div>
element for one particular product, you’ll need to use a conditional in the.twig
file. For example:Replace
'123'
with the ID of the product you’re targeting.Step 7: Enable Debug Mode to Verify the Loaded File
To ensure the correct
.twig
file is being used:index.php
file in your OpenCart root directory.Step 8: Test and Finalize with an OCMOD
After confirming your changes work as expected:
Step 9: Contact an Expert for Premium Support
If the issue persists, or you’d like professional assistance, reach out to specialists:
Feel free to reach out if you have more questions! we are here to help. 😊