Table of Contents
Unirgy uDropship #
Please install our compatibility module using these commands:
composer require salesigniter/releaseunirgyrental2 php bin/magento setup:upgrade
If you are running in production mode please also run:
php bin/magento setup:di:compile
MageWorx Advanced Product Options Suite #
The product page will not load without this change. in this file we are adding 2 if statements for the JSON productRegularPriceInclTax and productRegularPriceExclTax to prevent errors
in the file app/code/MageWorx/OptionBase/view/frontend/templates/catalog/product/options.phtml
replace the file contents with this:
<?php
/**
* Copyright © 2016 MageWorx. All rights reserved.
* See LICENSE.txt for license details.
*/
?>
<?php
/** @var \MageWorx\OptionBase\Block\Product\View\Options $block */
?>
<?php if (count($block->getOptions())) :?>
<script type="text/x-magento-init">
{
"#product_addtocart_form": {
"optionBase": {
"optionConfig": <?php echo $block->getJsonConfig()?>,
"productConfig": <?php echo $block->getProductJsonConfig()?>,
"localePriceFormat": <?php echo $block->getLocalePriceFormat()?>,
"productFinalPriceExclTax": <?php echo $block->getProductFinalPrice(false)?>,
<?php if($block->getProductRegularPrice(false) != '') { ?>
"productRegularPriceExclTax": <?php echo $block->getProductRegularPrice(false) . ','; }?>
"productFinalPriceInclTax": <?php echo $block->getProductFinalPrice(true)?>,
<?php if($block->getProductRegularPrice(true) != '') { ?>
"productRegularPriceInclTax": <?php echo $block->getProductRegularPrice(true) . ','; }?>
"priceDisplayMode": "<?php echo $block->getPriceDisplayMode()?>",
"catalogPriceContainsTax": "<?php echo $block->getCatalogPriceContainsTax()?>",
"extendedOptionsConfig": <?php echo $block->getExtendedOptionsConfig()?>
}
}
}
</script>
<?php endif; ?>
