Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

add social bookmarks to product.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-21-2010, 10:26 AM
 
ibdmanhb ibdmanhb is offline
 

Senior Member
  
Join Date: Mar 2008
Posts: 190
 

Default add social bookmarks to product.tpl

I am having issues trying to add xcartmod's social bookmark mod to product.tpl. I unzipped the bookmark files to customer/main/social. I am in customer/main and added this code to product.tpl:
<tr>
<td>
{include file="social/social.tpl"}
</td>
</tr>

I am getting a smarty error when I reload the page:
Warning: Smarty error: unable to read resource: "customer/menu_dialog.tpl" in /home/ibdmanoc/public_html/Smarty-2.6.19/Smarty.class.php on line 1092

any help will be greatly appreciated......

Thank you
__________________
X-cart X5 business
VPS Liquidweb
Linux/Litespeed
php7.3


https://www.lourdeslove.com
https://calnetsecurity.com
https://www.ReligiousClub.com
https://www.caltecservices.com
Reply With Quote
  #2  
Old 12-21-2010, 10:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: add social bookmarks to product.tpl

Which version of X-Cart are you referring to? It makes a big difference.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-21-2010, 10:35 AM
 
ibdmanhb ibdmanhb is offline
 

Senior Member
  
Join Date: Mar 2008
Posts: 190
 

Default Re: add social bookmarks to product.tpl

This is a 4.1.12 cart.

Thanks for the quick reply balinor.
__________________
X-cart X5 business
VPS Liquidweb
Linux/Litespeed
php7.3


https://www.lourdeslove.com
https://calnetsecurity.com
https://www.ReligiousClub.com
https://www.caltecservices.com
Reply With Quote
  #4  
Old 12-21-2010, 12:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: add social bookmarks to product.tpl

If you uploaded it to customer/main, it should read this way:

{include file="customer/main/social/social.tpl"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-21-2010, 12:54 PM
 
ibdmanhb ibdmanhb is offline
 

Senior Member
  
Join Date: Mar 2008
Posts: 190
 

Default Re: add social bookmarks to product.tpl

Thank you for the reply but this seems to have another issue. The social.tpl from the mod has an include for a customer/menu_dialog.tpl which does not exist on my 4.1.12 install. I see it in a 4.3 and 4.4 setup. Phil said this mod works on all 4.X versions. It still throws smarty errors: Warning: Smarty error: unable to read resource: "customer/menu_dialog.tpl" in /home/ibdmanoc/public_html/Smarty-2.6.19/Smarty.class.php on line 1092

Am I missing something ???

Thank you in advance
__________________
X-cart X5 business
VPS Liquidweb
Linux/Litespeed
php7.3


https://www.lourdeslove.com
https://calnetsecurity.com
https://www.ReligiousClub.com
https://www.caltecservices.com
Reply With Quote
  #6  
Old 12-21-2010, 12:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: add social bookmarks to product.tpl

Change this:

customer/menu_dialog.tpl

to this

menu.tpl

or, to this

dialog.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-21-2010, 02:57 PM
 
ibdmanhb ibdmanhb is offline
 

Senior Member
  
Join Date: Mar 2008
Posts: 190
 

Default Re: add social bookmarks to product.tpl

dailog.tpl did the trick, works now with out any errors. 1 more tpl 101 question, how do I get space between the add to cart buttons and the social bookmarks. I tried adding a < /br> before the <tr> tag and the <td> tag but the browser does not interpret it, it just prints the < /br> on the screen instead.

Thanks again
__________________
X-cart X5 business
VPS Liquidweb
Linux/Litespeed
php7.3


https://www.lourdeslove.com
https://calnetsecurity.com
https://www.ReligiousClub.com
https://www.caltecservices.com
Reply With Quote
  #8  
Old 12-21-2010, 03:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: add social bookmarks to product.tpl

It is <br/>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 12-22-2010, 08:12 AM
 
ibdmanhb ibdmanhb is offline
 

Senior Member
  
Join Date: Mar 2008
Posts: 190
 

Default Re: add social bookmarks to product.tpl

My mistake, I was using that tag correctly but it is not giving me the wanted results. I want to put a space between the bookmark header and the add to cart button. I tried adding a <td></td> before the include but it just slides the bookmark to the right, not down. I tried a <br/> and it has no effect inside the <tr> tags. I attached a picture of what I am trying to do.

Thank you
Attached Thumbnails
Click image for larger version

Name:	add_space.jpg
Views:	215
Size:	452.1 KB
ID:	2250  
__________________
X-cart X5 business
VPS Liquidweb
Linux/Litespeed
php7.3


https://www.lourdeslove.com
https://calnetsecurity.com
https://www.ReligiousClub.com
https://www.caltecservices.com
Reply With Quote
  #10  
Old 12-22-2010, 08:13 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: add social bookmarks to product.tpl

You can't add a break inside of TR tags - if you want more space in a row, add another row:

<tr><td></td></tr>

Or add the break within the td tag
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:35 AM.

   

 
X-Cart forums © 2001-2020