News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Fields In modules

Started by niosme, November 30, 2023, 09:55:38 AM

Previous topic - Next topic

niosme

Instead of this

                  echo '<div class="product-price">';
                  //       echo $currency->priceDisplay($product->prices['salesPrice']);
                  if (!empty($product->prices['salesPrice'])) {
                     echo $currency->createPriceDiv ('salesPrice', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
                  }
                  //       if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']);
                  if (!empty($product->prices['salesPriceWithDiscount'])) {
                     echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
                  }
                  echo '</div>';

i was using this with ovewrite in the modules to show the custom fields also

echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product));

For a reason it stopped showing the custom fields.

How to show custom fields in modules?The custom fields i use is with the stockable custom fields.
But also module is an age before left. Not showing custom fields from maybe plugins in frontend but shows them in category page.Inside product if we are in the same product with the product we showing in the module it shows twice the fields.
Fullstack Developer and Joomla Expert