Adsense on product area

26.10.2016 18:09
#1
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Adsense on product area

Hello Expert,
Can anyone guide me to insert one of my adsense code into joomshopping product area. Basically i want to insert in middle of the product. Please see the site http://www.mobilepricebd.net


Joomla: Joomla! 3.3.1 Stable
JoomShopping: Version 4.9.2
PHP: 5.3.29
 
26.10.2016 20:04
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

Change template

https://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/7/3567.html

 
27.10.2016 07:20
#3
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

I do not understand your replay. Could you please tell me in step by step so that i can complete the job.

Thanks in advance

 
27.10.2016 08:15
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

Edit file
components\com_jshopping\templates\default\list_products\list_products.php

add your "code Adsense"

 
27.10.2016 09:05
#5
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Hello Admin,
thanks for your quick replay. I have found the php file please see below.

<?php defined('_JEXEC') or die(); ?>
<table class="jshop list_product">
<?php foreach ($this->rows as $k=>$product){?>
<?php if ($k%$this->count_product_to_row==0) print "<tr>";?>
<td width="<?php print 100/$this->count_product_to_row?>%" class="block_product">
<?php include(dirname(__FILE__)."/".$product->template_block_product);?>
</td>
<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<tr>
<td colspan="<?php print $this->count_product_to_row?>"><div class="product_list_hr"></div></td>
</tr>
<?php }?>
<?php }?>
<?php if ($k%$this->count_product_to_row!=$this->count_product_to_row-1) print "</tr>";?>
</table>



Now please tell me where to place the adsense code if i want to show it as per my attach picture.

Thanks in advance.
Rashed jaman
Aw: Adsense on product area

 
27.10.2016 10:45
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<tr>
<td colspan="<?php print $this->count_product_to_row?>"><div class="product_list_hr"></div></td>
</tr>
<?php }?>

chage to

<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<?php if (!$adsload){?>
.........YOUR CODE....
<?php $adsload=1;}?>
<tr>
<td colspan="<?php print $this->count_product_to_row?>"><div class="product_list_hr"></div></td>
</tr>
<?php }?>


Letzte Änderung: 27.10.2016 10:46
 
27.10.2016 12:09
#7
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Not working ..no ads showing in product area.

 
27.10.2016 14:04
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

Sorry.
For order development use Kontakt.

 
28.10.2016 12:06
#9
FrankG.
User FrankG.
Name: Frank
30.11.2011
Posts: 1600
Quote
Aw: Adsense on product area

do you think so?

Aw: Adsense on product area


Letzte Änderung: 28.10.2016 12:07
 
05.11.2016 16:04
#10
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Yes absolutely right. i want to same ad position, could you please tell me how can i do this please.

 
05.11.2016 20:39
#11
FrankG.
User FrankG.
Name: Frank
30.11.2011
Posts: 1600
Quote
Aw: Adsense on product area

Hello Rashed,

/components/com_jshopping/templates/default/list_products/list_products.php


<?php
/**
* @version 4.9.1 13.08.2013
* @author MAXXmarketing GmbH
* @package Jshopping
* @copyright Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="jshop list_product" id="comjshop_list_product">
<?php print $this->_tmp_list_products_html_start?>
<?php foreach ($this->rows as $k=>$product) : ?>
<?php if ($k % $this->count_product_to_row == 0) : ?>
<div class = "row-fluid">
<?php endif; ?>

<div class = "sblock<?php echo $this->count_product_to_row;?>">
<div class = "block_product">
<?php include(dirname(__FILE__)."/".$product->template_block_product);?>
</div>
</div>

<?php if ($k % $this->count_product_to_row == $this->count_product_to_row - 1) : ?>
<div class = "clearfix"></div>

<div style="margin: 10px; padding: 5px; border: 1px solid #0000ff;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxx"
data-ad-slot="xxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

</div>
<?php endif; ?>
<?php endforeach; ?>

<?php if ($k % $this->count_product_to_row != $this->count_product_to_row - 1) : ?>
<div class = "clearfix"></div>
</div>
<?php endif; ?>
<?php print $this->_tmp_list_products_html_end;?>
</div>


 
06.11.2016 05:05
#12
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Hi FrankG,

I am using defaultg template. Could you please tell me where i have to insert the ad code. please see my defaultg code.Please help.

<?php defined('_JEXEC') or die(); ?>
<table class="jshop list_product">
<?php foreach ($this->rows as $k=>$product){?>
<?php if ($k%$this->count_product_to_row==0) print "<tr>";?>
<td width="<?php print 100/$this->count_product_to_row?>%" class="block_product">
<?php include(dirname(__FILE__)."/".$product->template_block_product);?>
</td>
<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<tr>
<td colspan="<?php print $this->count_product_to_row?>"><div class="product_list_hr"></div></td>
</tr>
<?php }?>
<?php }?>
<?php if ($k%$this->count_product_to_row!=$this->count_product_to_row-1) print "</tr>";?>
</table>


 
06.11.2016 16:58
#13
FrankG.
User FrankG.
Name: Frank
30.11.2011
Posts: 1600
Quote
Aw: Adsense on product area

/components/com_jshopping/templates/defaultg/list_products/list_products.php

<?php defined('_JEXEC') or die(); ?>
<table class="jshop list_product" id="comjshop_list_product">
<?php foreach ($this->rows as $k=>$product){?>
<?php if ($k%$this->count_product_to_row==0) print "<tr>";?>
<td width="<?php print 100/$this->count_product_to_row?>%" class="block_product">
<?php include(dirname(__FILE__)."/".$product->template_block_product);?>
</td>
<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<tr>
<td colspan="<?php print $this->count_product_to_row?>"><div class="product_list_hr"></div>

<div style="margin: 10px; padding: 5px; border: 1px solid #0000ff;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxx"
data-ad-slot="xxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

<div class="product_list_hr"></div>

</td>
</tr>
<?php }?>
<?php }?>
<?php if ($k%$this->count_product_to_row!=$this->count_product_to_row-1) print "</tr>";?>
</table>



Letzte Änderung: 06.11.2016 16:58
 
07.11.2016 14:41
#14
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Its very painful feeling that after implements the above code its not showing the ad code. I do not understand what the cause of this failure. Maybe my luck is not with me. :(

 
07.11.2016 14:46
#15
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

Joomshopping template default?
or need change code for your template

templates\...\html....

 
07.11.2016 15:08
#16
jaman_vvip
User jaman_vvip
Name: rashed
29.08.2014
Posts: 35
Quote
Aw: Adsense on product area

Need to show ads as like the attached picture. Just after two row :(
Aw: Adsense on product area

 
07.11.2016 17:01
#17
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25932
Quote
Aw: Adsense on product area

https://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/32/11448.html?lang=en#6

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.