X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   add social bookmarks to product.tpl (https://forum.x-cart.com/showthread.php?t=57172)

ibdmanhb 12-21-2010 10:26 AM

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

balinor 12-21-2010 10:27 AM

Re: add social bookmarks to product.tpl
 
Which version of X-Cart are you referring to? It makes a big difference.

ibdmanhb 12-21-2010 10:35 AM

Re: add social bookmarks to product.tpl
 
This is a 4.1.12 cart.

Thanks for the quick reply balinor.

balinor 12-21-2010 12:26 PM

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

ibdmanhb 12-21-2010 12:54 PM

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

balinor 12-21-2010 12:57 PM

Re: add social bookmarks to product.tpl
 
Change this:

customer/menu_dialog.tpl

to this

menu.tpl

or, to this

dialog.tpl

ibdmanhb 12-21-2010 02:57 PM

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

balinor 12-21-2010 03:01 PM

Re: add social bookmarks to product.tpl
 
It is <br/>

ibdmanhb 12-22-2010 08:12 AM

Re: add social bookmarks to product.tpl
 
1 Attachment(s)
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

balinor 12-22-2010 08:13 AM

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


All times are GMT -8. The time now is 11:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.