Zen Cart Logo
Forums / Addon Templates / Andover Modern Template Support Thread

Andover Modern Template Support Thread

Views: 145,468

Results 621 to 640 of 790
11 Aug 2012, 2:56 PM
#621
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Andover Modern Template Support Thread

I updated the code from the addthis.com website and it made no change. It must be something I am doing wrong because it works perfectly on your website.

11 Aug 2012, 3:05 PM
#622
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

I think I fixed it, I had to add ```

<html xmlns:fb="http://ogp.me/ns/fb#"></html> ``` to the top of the page
11 Aug 2012, 3:08 PM
#623
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

I spoke too soon, i get the pop up window to add a comment to the link now but it is still just saying phil likes a link with no picture. Any ideas?

11 Aug 2012, 7:59 PM
#624
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

I've made a discovery, I installed the same code on an old site (version 1.3.8a) and it works perfectly. However on the new site (version 1.5.0) it doesn't include the title, description or image. Does anybody else have this working on zen cart version 1.5.0?

11 Aug 2012, 11:19 PM
#625
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Phil020782:

I've made a discovery, I installed the same code on an old site (version 1.3.8a) and it works perfectly. However on the new site (version 1.5.0) it doesn't include the title, description or image. Does anybody else have this working on zen cart version 1.5.0?

I think that it is working fine. If you just click on the facebook button it will say that you liked the product and 1 will be added to the like number. If you want to post it to your wall you click on the share button and select facebook. Then you can write a comment and it shows the product image, description, etc.

I have the template installed on 1.5 here:

http://weblyweb.com/and-test/

Thanks,

Anne

12 Aug 2012, 8:44 AM
#626
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

Ok so it does work with 1.5 but mine is not working the same way as the one on your site is. It does like it and the like status is added to facebook but the title, description and image are not applied to it. The best way for you to see it is to try it on my site and see for yourself what I mean. My site is down for maintenance though so I'll need to add your ip address to my exclude list so you can access it

12 Aug 2012, 6:45 PM
#627
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Phil020782:

Ok so it does work with 1.5 but mine is not working the same way as the one on your site is. It does like it and the like status is added to facebook but the title, description and image are not applied to it. The best way for you to see it is to try it on my site and see for yourself what I mean. My site is down for maintenance though so I'll need to add your ip address to my exclude list so you can access it

Since the unaltered version works on 1.5 I would recommend looking to any changes/modifications you have made to track down the problem.

Thanks,

Anne

12 Aug 2012, 7:16 PM
#628
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

Thanks for your help I got it sorted. Turns out the problem was simply that the site was down for maintenance so facebook couldn't scrape the page for the information. Once I figured out how the facebook like button worked it was pretty obvious.

I made a few code changes to html_header.php if anyone is interested.

To get the preview pop up window to show when the like button is pressed open the includes/templates/andover_modern/common/html_header.php

Find this near the top

<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>

and replace with this

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" <?php echo HTML_PARAMS; ?>>

I then had an issue with facebook using the wrong image, this is because it uses the first image it finds on the page, in my case it was the first image in the whats new sidebox. so to make sure it uses the correct image and to comply with facebooks recommended tags in the same file as above find this:

<title><?php echo META_TAG_TITLE; ?></title>

and under this add:

<meta property="og:title" content="<?php echo META_TAG_TITLE; ?>" />
 <meta property="og:type" content="product" />
 <meta property="og:site_name" content="<?php echo STORE_NAME; ?>" />
 <meta property="og:description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
 
<?php
 if (isset($_GET['products_id'])) { // use products_image if products_id exists
 $facebook_image = $db->Execute("select p.products_image from " . TABLE_PRODUCTS . " p where products_id='" . (int)$_GET['products_id'] . "'");
 $fb_image = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $facebook_image->fields['products_image'];
 }
 if ($fb_image == 'stickadefaultimagehere') { // if no products image, use the default image if enabled
 $fb_image = '';
 }
 if ($fb_image != '') {
 ?>
 <meta property="og:image" content="<?php echo $fb_image; ?>" />
 <?php
 }
 ?>

Hope this helps anyone whos looking for it

18 Aug 2012, 3:36 PM
#629
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

Hi,
Could anyone tell me which file(s) I need to edit so that the back button which appears on the Shipping & Returns, Privacy Notice, Conditions of Use etc. pages also appears on EZ pages that I add?

Thanks

18 Aug 2012, 7:12 PM
#630
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Phil020782:

Hi,
Could anyone tell me which file(s) I need to edit so that the back button which appears on the Shipping & Returns, Privacy Notice, Conditions of Use etc. pages also appears on EZ pages that I add?

Thanks

I would recommend taking a look at the template file for one of those files and finding the code for the back button and try to integrate it into your ez page.

Thanks,

Anne

20 Aug 2012, 9:16 AM
#631
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

I did that and found this code:

<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

I pasted this to the buttom of my EZ page and nothing happens, I assume I have to tell it to require a certain page which has the infomation about the back button on it but I don't know which page does that.

Any advice?

Thanks

20 Aug 2012, 2:47 PM
#632
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Phil020782:

I did that and found this code:

<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> ``` > > I pasted this to the buttom of my EZ page and nothing happens, I assume I have to tell it to require a certain page which has the infomation about the back button on it but I don't know which page does that. > > Any advice? > > Thanks

You really should not be double posting. I would recommend being patient and waiting to see if any one answer you on your other thread.

Also, this question has been asked and answered before on the forum so a seach on the forum will give you some answers.

Thanks,

Anne

24 Aug 2012, 10:41 AM
#633
lynchd avatar

lynchd

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

Hello,

This is my first post, so please be gentle with me !! :blush:

I am currently developing my website and I am using the Andover Modern template, which I have to say is fantastic- Thank you.

I have changed some of the colours etc etc and so far all is good no problems... What I would like to do however is to change the icon for the shopping trolley and move it to the right hand side..

Is this possible and how would you go about doing this ?

Many Thanks

24 Aug 2012, 1:40 PM
#634
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Lynchd:

Hello,

This is my first post, so please be gentle with me !! :blush:

I am currently developing my website and I am using the Andover Modern template, which I have to say is fantastic- Thank you.

I have changed some of the colours etc etc and so far all is good no problems... What I would like to do however is to change the icon for the shopping trolley and move it to the right hand side..

Is this possible and how would you go about doing this ?

Many Thanks

To change the shopping cart icon you need to change this image:

includes/templates/andover_modern/images/cart.jpg

You can move it either using positioning and the stylesheet.css file or you can go into the includes/templates/andover_modern/common/tpl_header.php file and move the code and then use css to perfect positioning.

Thanks,

Anne

25 Aug 2012, 2:29 PM
#635
lynchd avatar

lynchd

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

picaflor-azul:

To change the shopping cart icon you need to change this image:

includes/templates/andover_modern/images/cart.jpg

You can move it either using positioning and the stylesheet.css file or you can go into the includes/templates/andover_modern/common/tpl_header.php file and move the code and then use css to perfect positioning.

Thanks,

Anne

Thank you!!, I have now managed to change the icon and have moved the icon slightly, albeit not quite where I wanted it. What would I need to change on the sytlesheet.css to make it show on the right hand side above the search box ??

I still have a few things to modify but you can see what I mean here http//:https://www.dmldiscounts.com

Thank you.

4 Sep 2012, 12:59 AM
#636
hearseman avatar

hearseman

New Zenner

Join Date:
Jul 2012
Posts:
9
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

Love the Template. This is the second site I've been working on. I have spent hours reading thru these forums , trying not to screw up too bad. Your advice about backup has saved me a lot of times. I have 2 questions. 1. I managed to remove the menu from the footer, so how do I make the footer smaller? 2. I can not seem to remove the social media from the products pages! How do ya do that?
cruisingwear.com

Other site I'm working on. floristgulfport.com

4 Sep 2012, 3:55 PM
#637
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

Lynchd:

Thank you!!, I have now managed to change the icon and have moved the icon slightly, albeit not quite where I wanted it. What would I need to change on the sytlesheet.css to make it show on the right hand side above the search box ??

I still have a few things to modify but you can see what I mean here http//:https://www.dmldiscounts.com

Thank you.

If you want only the shopping cart totals to move you will have to edit the code in the includes/templates/andover_modern/common/tpl_header.php file and then possibley also use css for positioning.

Thanks,

Anne

4 Sep 2012, 4:01 PM
#638
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

hearseman:

Love the Template. This is the second site I've been working on. I have spent hours reading thru these forums , trying not to screw up too bad. Your advice about backup has saved me a lot of times. I have 2 questions. 1. I managed to remove the menu from the footer, so how do I make the footer smaller? 2. I can not seem to remove the social media from the products pages! How do ya do that?
cruisingwear.com

Other site I'm working on. floristgulfport.com

To remove the social media from the product info page you need to edit the includes/templates/andover_modern/templates/tpl_product_info_display.php file. Just remove the code for the add this code.

The height of the footer menu is in the stylesheet_footer_menu.css file line 5 dl{height:160px;}

Thanks,

Anne

8 Sep 2012, 9:22 PM
#639
paperthreads avatar

paperthreads

Zen Follower

Join Date:
Sep 2006
Posts:
142
Plugin Contributions:
0

Re: Andover Modern Template Support Thread

I installed the template, we don't want to show "NEW" "FEATURED" or "SPECIALS" on the front page of the store. When I remove those from showing, I still see a small empty box across the bottom before the header. How do I remove that?

9 Sep 2012, 9:43 AM
#640
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Andover Modern Template Support Thread

paperthreads:

I installed the template, we don't want to show "NEW" "FEATURED" or "SPECIALS" on the front page of the store. When I remove those from showing, I still see a small empty box across the bottom before the header. How do I remove that?

You can add this to the bottom of your stylesheet.css file:

#moduleMenu-wrapper{display:none;}

Thanks,

Anne