VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: maryswave on February 01, 2013, 19:21:23 PM

Title: Pricing Madness
Post by: maryswave on February 01, 2013, 19:21:23 PM
VM 2.0.18a
Joomla 2.5.8

Ok so I would really like to have a clean fly page that shows very simple pricing but then I have no pricing on the cart until the customer get's the email.  What is that all about.  I really don't understand.  The checkout should show all the pricing irregardless of what is showing on the fly page as I do not want to show every pricing option there.  How can that be FIXED???

Sincerely.... very confused and oh so tired of checking and un-checking boxes
Title: Re: Pricing Madness
Post by: PRO on February 01, 2013, 20:00:25 PM
Quote from: maryswave on February 01, 2013, 19:21:23 PM
VM 2.0.18a
Joomla 2.5.8

Ok so I would really like to have a clean fly page that shows very simple pricing but then I have no pricing on the cart until the customer get's the email.  What is that all about.  I really don't understand.  The checkout should show all the pricing irregardless of what is showing on the fly page as I do not want to show every pricing option there.  How can that be FIXED???

Sincerely.... very confused and oh so tired of checking and un-checking boxes

WHAT??

what displays? and what do you want to show?

for me. I only show 1 price on product page

this is my
productdetails/default_showprices.php

<?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>
<div class="product-price" id="productPrice<?php echo $this->product->virtuemart_product_id ?>" >
    <?php
    echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);
    ?>
</div>


Then i CHECK all in the config
Title: Re: Pricing Madness
Post by: maryswave on February 02, 2013, 01:36:10 AM
This is what mine looks like:

// Check to ensure this file is included in Joomla!
defined ('_JEXEC') or die('Restricted access');
?>
<div class="product-price" id="productPrice<?php echo $this->product->virtuemart_product_id ?>">
   <?php
   if (!empty($this->product->prices['salesPrice'])) {
      echo "<strong>" . JText::_ ('COM_VIRTUEMART_CART_PRICE') . "</strong>";
   }
   //vmdebug('view productdetails layout default show prices, prices',$this->product);
   if ($this->product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and isset($this->product->images[0]) and !$this->product->images[0]->file_is_downloadable) {
      ?>
      <a class="ask-a-question bold" href="<?php echo $this->askquestion_url ?>"><?php echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
      <?php
   } else {
   if ($this->showBasePrice) {
      echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices);
      if (round($this->product->prices['basePrice'],$this->currency->_priceConfig['basePriceVariant'][1]) != $this->product->prices['basePriceVariant']) {
         echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices);
      }

   }
   echo $this->currency->createPriceDiv ('variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices);
   if (round($this->product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) {
      echo '<span class="price-crossed" >' . $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices) . "</span>";
   }
   if (round($this->product->prices['salesPriceWithDiscount'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) {
      echo $this->currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices);
   }
   echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices);
   echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);
   echo $this->currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices);
   echo $this->currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices);
   $unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit));
   echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $this->product->prices);
   }
   ?>
</div>

what would I change or replace?? I am not a programmer :-(
Title: Re: Pricing Madness
Post by: maryswave on February 02, 2013, 01:53:41 AM
This is the madness I am talking about... so crazy and it won't even show the base price... I just don't get this

[attachment cleanup by admin]
Title: Re: Pricing Madness
Post by: PRO on February 02, 2013, 18:12:17 PM
what do you want displayed?

what is your price configuration?

do you have shoppergroup based pricing?

Have you looked for specific answers?
Sometimes google returns threads better than th vmart search.

Just type

Virtuemart "cant show base price"
http://forum.virtuemart.net/index.php?topic=100057.0

There are so many price configurations its very hard to just "guess" what it could be.

Its usually a configuration issue
Title: Re: Pricing Madness
Post by: lindapowers on February 03, 2013, 17:16:59 PM
Yeah I agree with you, The checkout should indeed show all the pricing.

In our case we just set the "final price" to be shown in the product pages.

That removes the base price etc from checkout but well... at least it appears in the e-mail. Hopefully they will fix it in the future.