- Posts: 5
- Thank you received: 0
Show call for price, when the price is empty
-
francyily
Inactive member - Topic Author
- New Member
Less
More
11 years 7 months ago #28882
by francyily
Show call for price, when the price is empty was created by francyily
Hello everyone,
I have this problem with the template "drug store"
"Show call for price, When the price is empty"
does not work!
When the article is priceless, however you view your cart
I would like to know how I can solve this problem
thanks
I have this problem with the template "drug store"
"Show call for price, When the price is empty"
does not work!
When the article is priceless, however you view your cart
I would like to know how I can solve this problem
thanks
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #28891
by ivan.milic
Replied by ivan.milic on topic Show call for price, when the price is empty
Open:
templates\hot_drug_store\html\com_virtuemart\productdetails\default.php
line ~167:
if ($this->showBasePrice) {
above it insert this:
templates\hot_drug_store\html\com_virtuemart\productdetails\default.php
line ~167:
if ($this->showBasePrice) {
above it insert this:
Code:
if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) {
echo $this->loadTemplate('showprices');
}
The following user(s) said Thank You: francyily
Please Log in to join the conversation.
-
francyily
Inactive member - Topic Author
- New Member
Less
More
- Posts: 5
- Thank you received: 0
11 years 7 months ago #28892
by francyily
Replied by francyily on topic Show call for price, when the price is empty
thanks for the quick solution,
but now I see a double row of price
and I would not see the cart button for this product
sorry for the new question
but now I see a double row of price
and I would not see the cart button for this product
sorry for the new question
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #28897
by ivan.milic
Replied by ivan.milic on topic Show call for price, when the price is empty
I gave you wrong code this is right:
Code:
if (empty($this->product->prices) and VmConfig::get('askprice', 1)) {
?>
<a class="ask-a-question bold" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
<?php
}
The following user(s) said Thank You: francyily
Please Log in to join the conversation.
-
francyily
Inactive member - Topic Author
- New Member
Less
More
- Posts: 5
- Thank you received: 0
11 years 7 months ago #28899
by francyily
Replied by francyily on topic Show call for price, when the price is empty
I tried with this code but the problem returns
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #28913
by ivan.milic
Replied by ivan.milic on topic Show call for price, when the price is empty
Can you send us link to product details page with no price so we could see
The following user(s) said Thank You: francyily
Please Log in to join the conversation.
Time to create page: 0.161 seconds