| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
add social bookmarks to product.tpl | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() Which version of X-Cart are you referring to? It makes a big difference.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
#6
|
|||||||
|
|||||||
![]() Change this:
customer/menu_dialog.tpl to this menu.tpl or, to this dialog.tpl
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
#8
|
|||||||
|
|||||||
![]() It is <br/>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() 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
__________________
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 |
|||||||
#10
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|