we have problems with prices

Commercial shopping Joomla template to easy create webshop with various extensions supported like ViruteMart, K2 and K2Store.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue May 03, 2016 8:10 pm
Reply with quote
Report this post
[email protected] our web motioned

we have problems with prices, outstanding product price is not listed in the categories and price before discount price or strikethrough not appear. appears quite correct in Articles, crossed out price and the price on sale

Joomla! 3.5.1
VirtueMart 3.0.16
StoreBox Gavern v.3.20.1

Can you help us ?
User avatar
Fresh Boarder

teitbite
Wed May 04, 2016 10:27 am
Reply with quote
Report this post
Hi

Please tell me the exact url to the page with an example of this issue with prices.
User avatar
Moderator

GK User
Wed May 04, 2016 1:12 pm
Reply with quote
Report this post
I indicated an example, all items have applied a 15% discount

http://www.monovarsalud.net/es/alimentacion-infantil

The page featured items

http://www.monovarsalud.net
User avatar
Fresh Boarder

teitbite
Thu May 05, 2016 11:17 am
Reply with quote
Report this post
Hi

While looking for solution to that I've noticed that this question was asked before here https://www.gavick.com/forums/quark/cro ... ce#p256819 please try and let me know if it helped.
User avatar
Moderator

GK User
Sun May 08, 2016 10:45 am
Reply with quote
Report this post
I've entered the text, but it has not worked

<?php
/**
*
* Show the products in a category
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 5120 2011-12-18 18:29:26Z electrocity $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::_( 'behavior.modal' );
/* javascript for list Slide
Only here for the order list
can be changed by the template maker */
$js = "jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});";

$document = JFactory::getDocument();
$document->addScriptDeclaration($js);

?>

<?php if (empty($this->keyword) and !empty($this->category)) { ?>
<div class="category_description">
<?php echo $this->category->category_description; ?>
</div>
<?php } ?>

<?php
/* Show child categories */
if ( VmConfig::get('showCategory',1) and empty($this->keyword)) {
if (!empty($this->category->haschildren)) {
// Category and Columns Counter
$iCol = 1;
$iCategory = 1;
// Calculating Categories Per Row
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );
// Separator
$verticalseparator = " vertical-separator";
?>
<div class="category-view">
<?php // Start the Output
if(!empty($this->category->children)) {
foreach ( $this->category->children as $category ) { ?>
<?php if ($iCol == 1 && $iCategory > $categories_per_row) : ?>
<div class="horizontal-separator"></div>
<?php endif; ?>

<?php if ($iCol == 1) : ?>
<div class="row">
<?php endif; ?>
<?php
// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );

// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<?php echo $category->images[0]->displayMediaThumb("",false); ?>

<h2 class="catSub"> <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>"> <?php echo $category->category_name ?> </a> </h2>

<a href="<?php echo $caturl; ?>" class="category-overlay"><span><span><?php echo JText::_('TPL_GK_LANG_VM_VIEW'); ?></span></span></a>
</div>
</div>
<?php
$iCategory ++;

// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php }
}

// Show child categories
if (!empty($this->products)) {
if (!empty($this->keyword)) {
?>
<h3><?php echo $this->keyword; ?></h3>
<?php
}
?>
<?php // Category and Columns Counter
$iBrowseCol = 1;
$iBrowseProduct = 1;

// Calculating Products Per Row
$BrowseProducts_per_row = $this->perRow;
$Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row );

// Separator
$verticalseparator = " vertical-separator";
?>
<div class="browse-view">
<h1><?php echo $this->category->category_name; ?></h1>
<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get">
<?php if (!empty($this->products)) : ?>
<div class="orderby-displaynumber"><?php echo $this->orderByList['orderby']; ?>
<div class="display-number"><?php echo $this->vmPagination->getResultsCounter();?> <?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div>

</div>
<?php endif ?>

<?php if (!empty($this->keyword)) : ?>
<!--BEGIN Search Box -->
<div class="virtuemart_search"> <?php echo $this->searchcustom ?> <br />
<?php echo $this->searchcustomvalues ?>
<input style="height:16px;vertical-align :middle;" name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>" />
<input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/>
</div>
<input type="hidden" name="search" value="true" />
<input type="hidden" name="view" value="category" />
<input type="hidden" name="option" value="com_virtuemart"/>
<input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id; ?>"/>
<!-- End Search Box -->
<?php endif; ?>
</form>
<?php // Start the Output
foreach ( $this->products as $product ) {

// Show the horizontal seperator
if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>
<div class="horizontal-separator"></div>
<?php }

// this is an indicator wether a row needs to be opened or not
if ($iBrowseCol == 1) { ?>
<div class="row">
<?php }

// Show the vertical seperator
if ($iBrowseProduct == $BrowseProducts_per_row or $iBrowseProduct % $BrowseProducts_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}
// Show Products ?>
<div class="product floatleft<?php echo $Browsecellwidth . $show_vertical_separator ?>">
<div class="spacer">
<div>
<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link; ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);
?>
</a>
</div>

<div>
<h3 class="catProductTitle"><?php echo JHTML::link($product->link, $product->product_name); ?></h3>

<div class="catProductPrice" id="productPrice<?php echo $product->virtuemart_product_id ?>">
<?php
if ($this->show_prices == '1') {
if ($product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and !$product->images[0]->file_is_downloadable) {
echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE');
}
echo $this->currency->createPriceDiv('basePriceWithTax', '', $product->prices);
echo $this->currency->createPriceDiv('taxAmount','TPL_GK_LANG_VM_INC_TAX', $product->prices);
} ?>
</div>

<?php if ( VmConfig::get ('display_stock', 1)) : ?>
<div class="stockLavel"> <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span> <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span> </div>
<?php endif; ?>
</div>

<a href="<?php echo $product->link; ?>" class="product-overlay"><span><span><?php echo JText::_('TPL_GK_LANG_VM_VIEW'); ?></span></span></a>
</div>
</div>
<?php
$iBrowseProduct ++;

// Do we need to close the current row now?
if ($iBrowseCol == $BrowseProducts_per_row || $iBrowseProduct == $BrowseTotalProducts) {?>
</div>
<?php
$iBrowseCol = 1;
} else {
$iBrowseCol ++;
}
}
// Do we need a final closing row tag?
if ($iBrowseCol != 1) { ?>
<div class="clear"></div>
</div>
<?php
}
?>

<?php if($this->vmPagination->getPagesLinks() != '') : ?>
<div class="pagination">
<?php echo str_replace('</ul>', '<li class="counter">'.$this->vmPagination->getPagesCounter().'</li></ul>', $this->vmPagination->getPagesLinks()); ?>
</div>
<?php endif; ?>
</div>
<?php
} elseif (!empty($this->keyword)) {
echo JText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
if ( $product->prices['basePrice'] != $product->prices['salesPrice']) {
echo '<span class="price-crossed" style="text-decoration: line-through;">' . $this->currency->createPriceDiv ('basePrice', '', $product->prices) . "</span>";
User avatar
Fresh Boarder

teitbite
Mon May 09, 2016 11:26 am
Reply with quote
Report this post
Hi

In that case please send me an access to ftp, so I'll try to do this myself.
User avatar
Moderator

GK User
Tue May 10, 2016 6:52 pm
Reply with quote
Report this post
I have sent a private data with ftp
User avatar
Fresh Boarder

teitbite
Wed May 11, 2016 9:32 am
Reply with quote
Report this post
Hi

Are You sure this access is to a correct website and to: /templates/gk_storebox/html/com_virtuemart/ folder ?

I saw code was placed wrong, but even moved to right place it's not showing any difference, so I've added a code to turn this page blank and it did not worked as well. So I'm either working at wrong folder or You have some strong cache on server not refreshing files.
User avatar
Moderator

GK User
Thu May 12, 2016 7:16 pm
Reply with quote
Report this post
I regret the inconvenience and should work FTP, you forwarding the private message
Thank you
User avatar
Fresh Boarder

teitbite
Fri May 13, 2016 10:25 am
Reply with quote
Report this post
Hi

I've added the code. Now You need to enable showing "basePrice" since currency function is making this prices show as NULL, even if values are entered correctly.
User avatar
Moderator

GK User
Sat May 14, 2016 7:56 am
Reply with quote
Report this post
I tried to activate the base price, but it works the wrong way

I show in 2 photos what happens,

http://www.monovarsalud.net/es/cosmetica-natural
http://www.monovarsalud.net/es/cosmetic ... 2020-detai

I leave it disabled

Thank you
User avatar
Fresh Boarder

GK User
Sat May 14, 2016 7:59 am
Reply with quote
Report this post
prices are correct second photo
User avatar
Fresh Boarder

teitbite
Sun May 15, 2016 11:27 am
Reply with quote
Report this post
Hi

That's the exactly same code to show them. I have no idea why it's showing 2 different prices. Please enable them back so I'll make a dump of available prices and see that the 12,50 is called on category layout.
User avatar
Moderator

GK User
Tue May 17, 2016 6:03 pm
Reply with quote
Report this post
what happens is that in the category shown crossed out the cost, instead of the sale price without discount
User avatar
Fresh Boarder

GK User
Thu May 19, 2016 7:02 pm
Reply with quote
Report this post
I have already made it work, I took the code from a previous version and it worked
User avatar
Fresh Boarder

GK User
Thu May 19, 2016 7:06 pm
Reply with quote
Report this post
as I can do to display prices featured products?

http://www.monovarsalud.net/es/
User avatar
Fresh Boarder

teitbite
Sat May 21, 2016 6:14 pm
Reply with quote
Report this post
Hi

There is no override for featured products layout in our template, so this layout should strictly respond to VM configuration. Please check it with VM documentation.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.