To show the base price instead of price range in flexivariable products
Last updated
Last updated
If you don’t like the price range of the variants getting displayed on the storefront, then you could replace it with the default base price.
Following are the steps to be followed:
Navigate to the Flexi variable product.
Set the default variant by clicking on the star next to the variant.
Navigate to the menu manager->choose the menu of the flexi variable product.
In the item view options in category listings and Item view options tab, set the option
Navigate to /templates/your template/html/com_j2store/templates/ sub-template
Create a file called “default_flexiprice.php” and paste the code in the following gist:
At the same path, create another file called view_flexiprice.php and paste the code in the following gist:
Now the base price would be displayed instead of the price range.