Deals 1.1 Template
- Posted by Alfred (50) Offline
1) Is it possible to assign a custom width to template?. I will like that open at 1280px or more.
2) In the k2 item is it possible to display also number of deals available? It may be great after the area "Time left to buy".
3) I see that is possible to assign a bg image on home (index). Now is it possible to maintain bg image for all pages?. Thanks
Please Log in or Create an account to join the conversation.
- Posted by andy (759) Offline
Thank you for your recent purchase
Please find the answers of your questions below
It is possible, but we highly do not recommend it, because it will break the responsive function of the template (the function that will make your website looks good on all browser resolution and also mobile devices). Also it will need a lot of css bugfixes because it's not natively designed as that way.1) Is it possible to assign a custom width to template?. I will like that open at 1280px or more.
But if you're still want to try and you know the risk, you can do that by modifying these files :
Open file <root>/templates/deals_plazza/css/1200.min.css
remove the :
@media only screen and (min-width: 1281px) and (max-width: 1600px) {
}
Then open file
Open file <root>/templates/deals_plazza/css/template.css.php
change the codes :
require('reset.css');
require('2520.min.css');
require('1920.min.css');
require('1560.min.css');
require('1200.min.css');
require('960.min.css');
require('720.min.css');
require('joomla.css');
require('system.css');
require('formalize.css');
require('base.css');
require('icons.css');
require('menu.css');
require('modules.css');
require('com_k2.css');
require('com_virtuemart.css');
require('mobile.min.css');
require('template.css');
require('bright.css');
require('../../system/css/general.css');
with this
require('reset.css');
require('1200.min.css');
require('joomla.css');
require('system.css');
require('formalize.css');
require('base.css');
require('icons.css');
require('menu.css');
require('modules.css');
require('com_k2.css');
require('com_virtuemart.css');
require('template.css');
require('bright.css');
require('../../system/css/general.css');
Yes it is possible. Please have a look at this post :2) In the k2 item is it possible to display also number of deals available? It may be great after the area "Time left to buy".
www.templateplazza.com/support/forum/dea...rfect,-but-near-best . (if you can click this link please find the link in the references link below)
3) I see that is possible to assign a bg image on home (index). Now is it possible to maintain bg image for all pages?. Thanks
Of course You can change that from the backend of template. See the attached image
Hope this helps
Please Log in or Create an account to join the conversation.
- Posted by Alfred (50) Offline
I tried to add the number of deals available and it works only for category_item.php. I tried to add same code also for item.php but it deos not work. Basically item.php is the one that work for single deal article.
I used this code
<?php
$custom = json_decode($this->item->extra_fields);
$db = & JFactory::getDBO();
$id = $custom[3]->value;
$sql = 'SELECT product_ordered FROM #__virtuemart_products WHERE virtuemart_product_id='.$id;
$db->setQuery($sql) ;
$item_sold = $db->loadResult();
echo $item_sold;
?>
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes.' <br> <span style="color:red; font-size:1.Sen">'.$item_sold.'</span> was bought';
?></div>
</div>
For the image bg it works but the bg image will be only for home. I will like to have bg image for any further pages. Thanks.
Please Log in or Create an account to join the conversation.
- Posted by andy (759) Offline
On the code you used above, please change the part
$custom = json_decode($this->item->extra_fields);
$custom = $this->item->extra_fields;
For the image bg it works but the bg image will be only for home. I will like to have bg image for any further pages. Thanks.
Checking this now, will back to you soon
Please Log in or Create an account to join the conversation.
- Posted by andy (759) Offline
To fix this please open file <root>/templates/deals_plazza/css/css.helper.php
find this line (arround 52)
.tpbodies {
background: url("'.$image_background.'") repeat-x scroll 0 0 '.$color_background.';
}
change with this one :
.tpbodies {
background: url("'.JURI::base(true).'/'.$image_background.'") repeat-x scroll 0 0 '.$color_background.';
}
We will update the Deal Plazza package with this fix. Thanks for heading this up
Please Log in or Create an account to join the conversation.
- Posted by Alfred (50) Offline
Where can i find the graphic element for the Buy Button?. I will like to modify carter graphic and colors. Many thanks my friend.
Please Log in or Create an account to join the conversation.