Discount Price Strikethrough.
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Thu Jun 23, 2016 7:06 pm
- Reply with quote
- Report this post
Hello, it's possible to view discount price strikethrough with InStyle Template ?
How can I change CSS file ?
Thanks.
How can I change CSS file ?
Thanks.
-
- Junior Boarder
- GK User
- Thu Jun 23, 2016 10:40 pm
- Reply with quote
- Report this post
... only for category product of VirtueMart 3.
PHP or CSS files must be change ?
Thanks for help.
PHP or CSS files must be change ?
Thanks for help.
-
- Junior Boarder
- teitbite
- Mon Jun 27, 2016 10:22 am
- Reply with quote
- Report this post
Hi
Do You mean a category layout ? Can I please see a page You need this crossed price for along with an example of such price ?
Do You mean a category layout ? Can I please see a page You need this crossed price for along with an example of such price ?
-
- Moderator
- GK User
- Tue Jun 28, 2016 6:31 pm
- Reply with quote
- Report this post
Hello, it's a page where you find all products in category ... I think this is category layout.
-
- Junior Boarder
- teitbite
- Thu Jun 30, 2016 1:00 pm
- Reply with quote
- Report this post
Hi
In default template files price is disabled in category layout entirely so I suspect it was modified. Please send me an access to FTP and url to the page with example of category layout You need this change for.
In default template files price is disabled in category layout entirely so I suspect it was modified. Please send me an access to FTP and url to the page with example of category layout You need this change for.
-
- Moderator
- GK User
- Thu Jun 30, 2016 9:38 pm
- Reply with quote
- Report this post
I have only renamed folder category of InStyle VirtueMart template (/templates/gk_instyle/html/com_virtuemart/-category) to see button " Add to Cart " in category layout.
To fix problem need you a Joomla account or can I send you a specific PHP file of VirtueMart category layout ?
Thanks.
To fix problem need you a Joomla account or can I send you a specific PHP file of VirtueMart category layout ?
Thanks.
-
- Junior Boarder
- teitbite
- Sat Jul 02, 2016 3:52 pm
- Reply with quote
- Report this post
Hi
If You have renamed the file that means a default virtuemart files are used. In that case You need to ask VM support for help.
If You have renamed the file that means a default virtuemart files are used. In that case You need to ask VM support for help.
-
- Moderator
- GK User
- Sat Jul 02, 2016 4:09 pm
- Reply with quote
- Report this post
I have already asked to VM Forum but they say that is a Template problem because default VirtueMart category layout strikethrough prices.
Could you help me ?
Thanks.
Could you help me ?
Thanks.
-
- Junior Boarder
- teitbite
- Mon Jul 04, 2016 6:35 pm
- Reply with quote
- Report this post
Hi
Ok if they say so, but You have already disabled template override for it. I can try, please send me an access to ftp, joomla panel and url to the page with example.
Ok if they say so, but You have already disabled template override for it. I can try, please send me an access to ftp, joomla panel and url to the page with example.
-
- Moderator
- GK User
- Sat Jul 09, 2016 9:06 am
- Reply with quote
- Report this post
Hello, site is offline and I don't have a FTP access but I can post file default.php in folder /components/com_virtuemart/views/category/tmpl in my local PC.
<?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 9222 2016-05-23 11:41:31Z Milbo $
*/
defined ('_JEXEC') or die('Restricted access');
?> <div class="category-view"> <?php
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";
vmJsApi::addJScript('vm.hover',$js);
if (empty($this->keyword) and !empty($this->category)) {
?>
<div class="category_description">
<?php echo $this->category->category_description; ?>
</div>
<?php
}
// Show child categories
if (VmConfig::get ('showCategory', 1) and empty($this->keyword)) {
if (!empty($this->category->haschildren)) {
echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children));
}
}
if($this->showproducts){
?>
<div class="browse-view">
<?php
if (!empty($this->keyword)) {
//id taken in the view.html.php could be modified
$category_id = vRequest::getInt ('virtuemart_category_id', 0); ?>
<h3><?php echo $this->keyword; ?></h3>
<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get">
<!--BEGIN Search Box -->
<div class="virtuemart_search">
<?php echo $this->searchCustomList ?>
<br/>
<?php echo $this->searchCustomValues ?>
<input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>"/>
<input type="submit" value="<?php echo vmText::_ ('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; ?>"/>
</form>
<!-- End Search Box -->
<?php } ?>
<?php // Show child categories
if(!empty($this->orderByList)) { ?>
<div class="orderby-displaynumber">
<div class="floatleft vm-order-list">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</div>
<div class="vm-pagination vm-pagination-top">
<?php echo $this->vmPagination->getPagesLinks (); ?>
<span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
</div>
<div class="floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div>
<div class="clear"></div>
</div> <!-- end of orderby-displaynumber -->
<?php } ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php
if (!empty($this->products)) {
//revert of the fallback in the view.html.php, will be removed vm3.2
if($this->fallback){
$p = $this->products;
$this->products = array();
$this->products[0] = $p;
vmdebug('Refallback');
}
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
if(!empty($this->orderByList)) { ?>
<div class="vm-pagination vm-pagination-bottom"><?php echo $this->vmPagination->getPagesLinks (); ?><span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span></div>
<?php }
} elseif (!empty($this->keyword)) {
echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
</div>
<?php } ?>
</div>
<?php
$j = "Virtuemart.container = jQuery('.category-view');
Virtuemart.containerSelector = '.category-view';";
//vmJsApi::addJScript('ajaxContent',$j);
?>
<!-- end browse-view -->
What can I change ?
I can post others files.
Thanks.
<?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 9222 2016-05-23 11:41:31Z Milbo $
*/
defined ('_JEXEC') or die('Restricted access');
?> <div class="category-view"> <?php
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";
vmJsApi::addJScript('vm.hover',$js);
if (empty($this->keyword) and !empty($this->category)) {
?>
<div class="category_description">
<?php echo $this->category->category_description; ?>
</div>
<?php
}
// Show child categories
if (VmConfig::get ('showCategory', 1) and empty($this->keyword)) {
if (!empty($this->category->haschildren)) {
echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children));
}
}
if($this->showproducts){
?>
<div class="browse-view">
<?php
if (!empty($this->keyword)) {
//id taken in the view.html.php could be modified
$category_id = vRequest::getInt ('virtuemart_category_id', 0); ?>
<h3><?php echo $this->keyword; ?></h3>
<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get">
<!--BEGIN Search Box -->
<div class="virtuemart_search">
<?php echo $this->searchCustomList ?>
<br/>
<?php echo $this->searchCustomValues ?>
<input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>"/>
<input type="submit" value="<?php echo vmText::_ ('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; ?>"/>
</form>
<!-- End Search Box -->
<?php } ?>
<?php // Show child categories
if(!empty($this->orderByList)) { ?>
<div class="orderby-displaynumber">
<div class="floatleft vm-order-list">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</div>
<div class="vm-pagination vm-pagination-top">
<?php echo $this->vmPagination->getPagesLinks (); ?>
<span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
</div>
<div class="floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div>
<div class="clear"></div>
</div> <!-- end of orderby-displaynumber -->
<?php } ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php
if (!empty($this->products)) {
//revert of the fallback in the view.html.php, will be removed vm3.2
if($this->fallback){
$p = $this->products;
$this->products = array();
$this->products[0] = $p;
vmdebug('Refallback');
}
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
if(!empty($this->orderByList)) { ?>
<div class="vm-pagination vm-pagination-bottom"><?php echo $this->vmPagination->getPagesLinks (); ?><span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span></div>
<?php }
} elseif (!empty($this->keyword)) {
echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
</div>
<?php } ?>
</div>
<?php
$j = "Virtuemart.container = jQuery('.category-view');
Virtuemart.containerSelector = '.category-view';";
//vmJsApi::addJScript('ajaxContent',$j);
?>
<!-- end browse-view -->
What can I change ?
I can post others files.
Thanks.
-
- Junior Boarder
- teitbite
- Tue Jul 12, 2016 6:22 pm
- Reply with quote
- Report this post
Hi
I'm afraid it doesn't help. Product layout is not there. It's loaded by this line:
and this line is using a layout from Virtuemart directly. I do ont know if than an override or VM file is handling thi function and how it looks like. I need an access to FTP to figure it out.
I'm afraid it doesn't help. Product layout is not there. It's loaded by this line:
- Code: Select all
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
and this line is using a layout from Virtuemart directly. I do ont know if than an override or VM file is handling thi function and how it looks like. I need an access to FTP to figure it out.
-
- Moderator
11 posts
• Page 1 of 1