News:

Looking for documentation? Take a look on our wiki

Main Menu

HELP!!! Add final price in Module Products

Started by x3mo4d, November 12, 2013, 19:51:46 PM

Previous topic - Next topic

x3mo4d

Hi, Greetings to all, I am trying to modify the mod_virtuemart_products and there are two things that I can not get, because apparently these properties is not configured or programmed for this module.

He explained:
I want on the product module, aparescan the rating and the final price, but I could not get it.

In another tute I read long ago on the shoping cart, which was not to present then everyone stood image code and then declaring variables and if you could put the image variable.

I think it could be like in this case, but I do not know programming and wanted to see if somebody around here to help me. I hope not to be too annoying with my order

ahh, sorry I use a google traslater.

Thank you.

x3mo4d

Well not yet received an answer, but I found the solution and share it with those who need it, I found a template that has these qualities that they had spoken.

but like I said, I'm not a programmer, so here I leave the code to use it.

Greetings:



<?php $discont $product->prices[discountAmount]; $discont abs($discont); ?>
                         <?php if ($product->override == && ($product->product_price_publish_down 0)){?>
                        <?php if ($show_price) { ?>
              <?php if ((!VmConfig::get('use_as_catalog'0) and !empty($product->prices['salesPrice'])) && !$product->images[0]->file_is_downloadable) { ?>
        <?php if ($product->prices['basePriceWithTax']>&& $discont >0
                    
echo '<span class="WithoutTax">' $currency->createPriceDiv('basePriceWithTax','',$product->prices,true) . '</span>';?>


    <?php ?> 
      <?php ?>

<?php
                
if ($product->prices['salesPrice']>0)
                    
echo '<span class="sales">' $currency->createPriceDiv('salesPrice','',$product->prices,true) . '</span>';
?>