Post by gsmorbit » Mon Oct 25, 2010 9:46 pm

Hello plz any body tell me how put google ads on the add to cart area and remove add to cart button thanks

Attachments

open cart.jpg

open cart.jpg (135.46 KiB) Viewed 871 times

Last edited by i2Paq on Tue Oct 26, 2010 3:41 am, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Sun Oct 24, 2010 12:12 pm

Post by amdev » Tue Oct 26, 2010 9:49 am

Image

I'm tested with my site ,work fine.
http://www.opencart2u.com/opc149/index. ... ommon/home

Open and edit catalog/view/theme/YOUR_THEME/product/product.TPL find

Code: Select all

              <div class="content">
                <?php echo $text_qty; ?>
                <input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
                <a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
                <?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
              </div>
and put this code affter.

Code: Select all

 <div class="content">
	      YOUR GOOGLE ADS.	      
</div>
Good luck....

ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by gsmorbit » Tue Oct 26, 2010 12:24 pm

sir thank you so much for help and i also want to remove add to cart button thanks

Newbie

Posts

Joined
Sun Oct 24, 2010 12:12 pm

Post by amdev » Tue Oct 26, 2010 12:34 pm

delete or leave comment this.

Code: Select all

                  <!--<div class="content">
                    <?php echo $text_qty; ?>
                    <input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
                    <a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
                    <?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
                  </div>-->


ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand
Who is online

Users browsing this forum: No registered users and 10 guests