Deals 1.1 Template

Hi. I purchased today deals template. I will like to ask you please the following:
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
11 years 4 months ago #1 by Alfred

Please Log in or Create an account to join the conversation.

Hi Esposito,
Thank you for your recent purchase :)
Please find the answers of your questions below

1) Is it possible to assign a custom width to template?. I will like that open at 1280px or more.

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.

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) {
in the beginning of the file and also the closing tag for that code in the end of file
}

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');

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".

Yes it is possible. Please have a look at this post :
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
11 years 4 months ago #2 by andy

Please Log in or Create an account to join the conversation.

Hi Sikumbank. Thanks a lot for your reply.

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.
11 years 4 months ago #3 by Alfred

Please Log in or Create an account to join the conversation.

Hi Esposito,
On the code you used above, please change the part
$custom = json_decode($this->item->extra_fields);
with this one :
$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
11 years 4 months ago #4 by andy

Please Log in or Create an account to join the conversation.

Regarding the background this is a bug with the css.helper.php file.
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 :)
11 years 4 months ago #5 by andy

Please Log in or Create an account to join the conversation.

Hi sikumbang, Thanks for your reply. Everything works properly :)

Where can i find the graphic element for the Buy Button?. I will like to modify carter graphic and colors. Many thanks my friend.
11 years 4 months ago #6 by Alfred

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum