Price on Category view

  • angelos33
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 2 months ago - 12 years 2 months ago #22797 by angelos33
Can i show only Final salesprice on Category view, even that i want to show Tax on product details and cart?
Last edit: 12 years 2 months ago by angelos33.

Please Log in to join the conversation.

More
12 years 2 months ago #22809 by ivan.milic
Replied by ivan.milic on topic Price on Category view
That you can change in:

templates\hot_drug_store\html\com_virtuemart\productdetails\default.php

this code:
.......
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices );
}
....

basePrice and basePriceVariant are prices indexes, to see all of available indexes add temporally this code line:

var_dump(this->product->prices);

that will output some bunch of code where you can find right index for price you want to show.

Please Log in to join the conversation.

  • angelos33
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 2 months ago #22828 by angelos33
Replied by angelos33 on topic Price on Category view
Thanks, but i am talking about the category view , if i chose to show tax in details page .. then it shows even on the category overview ( would like to hide all other prices except the slaeprise..

Please Log in to join the conversation.

More
12 years 2 months ago #22850 by ivan.milic
Replied by ivan.milic on topic Price on Category view
That is in:

templates\hot_drug_store\html\com_virtuemart\category\default.php

this code part:
Code:
if( $this->showBasePrice){ echo $this->currency->createPriceDiv('basePrice','COM_VIRTUEMART_PRODUCT_BASEPRICE',$product->prices); echo $this->currency->createPriceDiv('basePriceVariant','COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT',$product->prices); } echo $this->currency->createPriceDiv('variantModification','COM_VIRTUEMART_PRODUCT_VARIANT_MOD',$product->prices); echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices); echo $this->currency->createPriceDiv('discountedPriceWithoutTax','COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE',$product->prices); echo $this->currency->createPriceDiv('salesPriceWithDiscount','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT',$product->prices); echo $this->currency->createPriceDiv('salesPrice','',$product->prices); echo $this->currency->createPriceDiv('priceWithoutTax','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX',$product->prices); echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices); echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$product->prices);

you can remove lines for unwanted prices
The following user(s) said Thank You: angelos33

Please Log in to join the conversation.

  • angelos33
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 2 months ago #22877 by angelos33
Replied by angelos33 on topic Price on Category view
Thanks Ivan!

Please Log in to join the conversation.

Time to create page: 0.163 seconds
Powered by Kunena Forum