Theme compatibility
Which themes work out of the box, how to apply the Journal compatibility packages, and how the generic mode makes the extension work with any other theme.
Why the theme matters
The extension draws the chained options on the product page, swaps the price, the stock, the product data and the gallery, and adds bullets to the product cards. Every theme builds these parts in its own way, so the extension has to know where they are.
There are three levels of integration:
| Your theme | What to do | What you get |
|---|---|---|
| Default OpenCart theme | Nothing. The main installer already contains it. | Everything: chained options on the product page, gallery changes, bullets, combinations as products. |
| Journal 2 or Journal 3 | Install the compatibility package for your theme and OpenCart version. | Everything, adapted to Journal. |
| Any other theme | Enable the generic mode. | Chained options, prices and stock in a popup. No gallery changes on the product page and no bullets in product lists. |
Gallery changes and product-list bullets always need a full integration with the theme. For a theme without a package, a custom integration can be quoted separately: open a request from your account.
Journal compatibility packages
The download contains four packages:
| Folder | Package | For |
|---|---|---|
theme_compatibilities/opencart_2/ | journal_2_compatibility.ocmod.zip | Journal 2 on OpenCart 2.x |
theme_compatibilities/opencart_2/ | journal_3_compatibility.ocmod.zip | Journal 3 on OpenCart 2.3.x |
theme_compatibilities/opencart_3/ | journal_2_compatibility.ocmod.zip | Journal 2 on OpenCart 3.x |
theme_compatibilities/opencart_3/ | journal_3_compatibility.ocmod.zip | Journal 3 on OpenCart 3.x |
A package adapts the extension to the Journal product page, to the Journal product cards and product modules (starting price and bullets), to the quick view, to the Journal checkout and to the picture shown in the add to cart notification.
How to apply a package
- Install the main extension first. See Installation.
- Go to Extensions > Extension Installer (OpenCart 3.x: Extensions > Installer) and upload the package of your theme and OpenCart version.
- Go to Extensions > Modifications and press the blue refresh button.
- Clear the OpenCart caches. In OpenCart 3.x use the blue gear button of the dashboard.
- Clear the Journal cache from the Journal administration.
- Leave Enable generic functionality disabled in the settings of the extension.
- Open a product with combinations in your shop and check the options, the price, the gallery and the cart.
Install only one package: the one that matches your theme. After updating the Journal theme, refresh the modifications and clear both caches again.
Updating a package
Delete the installed compatibility in Extensions > Modifications before uploading the new one. The full steps are in Installation.
Generic mode
The generic mode is for themes that are neither the default one nor Journal. It does not try to draw the options inside the product page of your theme. Instead:
- The Add to cart button of the product page is replaced by a new button with the text of Cart button text.
- When the customer presses it, a popup opens with the pictures of the product, the chained options and the product data.
- The customer chooses the options. Price, stock and the other data of the combination are shown in the popup.
- The customer presses the add button of the popup and the combination goes to the cart.
Products without combinations keep their normal add to cart button.
Setting it up
- Open Extensions > Extensions > Modules > Options Combinations.
- In Template compatibility, enable Enable generic functionality.
- Adjust the texts Cart button text, Generic popup button "Add" text, Generic popup button "Close" text and Choose options text for each language.
- Press Apply changes, clear your caches and open a product with combinations in the shop.
If the button is not replaced
The extension finds the add to cart button with the selector in Add to cart button selector, which is #button-cart by default. That is the id used by the default theme and by most themes. If your theme uses another one:
- Open a product page in your browser, right-click the add to cart button and choose Inspect.
- Look at the
idorclassof the button in the highlighted line. - Type it in Add to cart button selector as a selector:
#the-idfor an id,.the-classfor a class. - Press Apply changes and reload the product page.
If the new button looks different
The new button is a copy of the original one with the id button-add-modal. If your theme styles its button through the id, the copy loses that style. Copy the rules to the new id in Custom JS/CSS Code, wrapped in style tags:
<style>
#button-add-modal {
background: #229ac8;
color: #ffffff;
}
</style>Replace the two example properties with the ones your theme uses for its button.
Option like images and Option like list also apply inside the popup, so you can show colours as pictures and sizes as buttons with any theme.
Changing theme later
If you change to Journal, install its package and disable the generic mode. If you leave Journal, delete its compatibility in Extensions > Modifications and enable the generic mode. In both cases refresh the modifications and clear all caches. Your combinations are not affected by the theme.
Still need help?
Open a support ticket from your account and our team will look at your store with you.