VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: jlong on July 24, 2013, 22:05:22 PM

Title: Different pricing views for front end and cart?
Post by: jlong on July 24, 2013, 22:05:22 PM
I am having the worst time when it comes to setting up pricing on my website www.goavast.com. I want the front end of my shop (the actual prodyuct page) to show JUST the base price, nothing else.  But when I uncheck the other options on the pricing tab in the Configuration, everything goes away in the cart so I re-enabled Final Salesprice, tax amount, etc.  How can I set these two apart?  I do not want tax and other fields to show on the product page.
Title: Re: Different pricing views for front end and cart?
Post by: Maxim Pishnyak on July 24, 2013, 22:25:40 PM
VM version?

Could you post here screen shot of your web shop price setup?
Title: Re: Different pricing views for front end and cart?
Post by: jlong on July 24, 2013, 22:56:15 PM
Quote from: Maxim Pishnyak on July 24, 2013, 22:25:40 PM
VM version?

Could you post here screen shot of your web shop price setup?

We are using VM 2.0.22A.  The image is attached.

[attachment cleanup by admin]
Title: Re: Different pricing views for front end and cart?
Post by: jenkinhill on July 24, 2013, 23:02:43 PM
You cannot show the baseprice as that is the product cost price. From your description the price you want to show is the salesprice without tax. Make sure it is visible in your productdetails / default_showprices.php  (it is missing in some commercial template overrides). You can also change the words used to display that price. http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: Different pricing views for front end and cart?
Post by: jlong on July 25, 2013, 17:40:46 PM
In the public_html/components/com_virtuemart/views/productdetails directory, I do not see "default_showprices.php".  I see a tmpl directory, and the two files index.html and view.html.php
Title: Re: Different pricing views for front end and cart?
Post by: jlong on July 25, 2013, 18:04:57 PM
Found it in the tmpl directory but this file makes no sense...
Title: Re: Different pricing views for front end and cart?
Post by: jlong on July 25, 2013, 19:21:57 PM
Anyone have any clue how to do this?  I really need this site up and going soon.
Title: Re: Different pricing views for front end and cart?
Post by: Maxim Pishnyak on July 25, 2013, 20:14:50 PM
Quote from: jenkinhill on July 24, 2013, 23:02:43 PM
From your description the price you want to show is the salesprice without tax.
So did you chang price setup accordingly in VM configuration?
I could check your screen shot for example.
Title: Re: Different pricing views for front end and cart?
Post by: jlong on July 26, 2013, 16:36:07 PM
If still not understanding what to change so the configurations have not been changed so the screenshot posted earlier to do.  I'm just wondering in Virtuemart if there is a spot to edit pricing display for just the product display page and then one just for the cart page.
Title: Re: Different pricing views for front end and cart?
Post by: Maxim Pishnyak on July 26, 2013, 18:22:52 PM
Quote from: jenkinhill on July 24, 2013, 23:02:43 PM
From your description the price you want to show is the salesprice without tax.
Quote from: jlong on July 26, 2013, 16:36:07 PM
still not understanding what to change so the configurations have not been changed so the screenshot posted earlier to do.
You need to uncheck all price options in your VM configuration setup except "Salesprice without tax".

Is that clear now?
Title: Re: Different pricing views for front end and cart?
Post by: PRO on July 27, 2013, 03:00:36 AM
Quote from: Maxim Pishnyak on July 26, 2013, 18:22:52 PM
Quote from: jenkinhill on July 24, 2013, 23:02:43 PM
From your description the price you want to show is the salesprice without tax.
Quote from: jlong on July 26, 2013, 16:36:07 PM
still not understanding what to change so the configurations have not been changed so the screenshot posted earlier to do.
You need to uncheck all price options in your VM configuration setup except "Salesprice without tax".

Is that clear now?

no this will result in display problems in other areas of the shop

this is my ENTIRE

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>


this code here
echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);


can be changed to whatever you want to display (mine is the final price + any chosen attributes)

http://forum.virtuemart.net/index.php?topic=104194.0