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

More Effective Manufacturer view on Product Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 03-19-2008, 08:17 AM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Question Re: More Effective Manufacturer view on Product Detail Page

Quote:
Originally Posted by YINIA
Is this able to be used with XCart Pro?

I'm wondering this as well. Please advise. Thanks!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #32  
Old 03-25-2008, 09:04 AM
 
POSDepot POSDepot is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 52
 

Default Re: More Effective Manufacturer view on Product Detail Page

I've noticed that the manufacturer description is not showing as it is in the image attached to the first post .. I assume because of a database change.

Anyone know the proper code change to get the manufacturer description to show?

Thanks
__________________
X-Cart Gold
4.1.9
Reply With Quote
  #33  
Old 11-24-2008, 03:42 AM
  MattAustin's Avatar 
MattAustin MattAustin is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 41
 

Default Use products_t.tpl in manufacturerinfo.tpl

Hello all,
Could anyone tell me how I could modify manufacturerinfo.tpl to use products_t.tpl to display the products within this section so that it has a consistent look and feel with the products list pages.
I have been trying to do something like the following:

Code:
{include file="customer/main/products_t.tpl" products=$manufacturerinfo.product}


But I am unsure how to pass the correct variables through to make it work

Any help is greatly appreciated
__________________
xcart version 4.1.6 Gold
Linux 2.6.9-67.0.20.ELsmp
www.qvsdirect.com
Reply With Quote
  #34  
Old 01-11-2009, 12:57 PM
 
pmalerba pmalerba is offline
 

Member
  
Join Date: Sep 2007
Posts: 17
 

Default Re: More Effective Manufacturer view on Product Detail Page

Hello!
This mod works fine for me (4.1.11)
Only one problem: I can't get the description on the product page.
The mod code is:

{$product.manudescr|truncate:250:"...":true}

but do not print nothing

I tried also something like: {$manufacturer.descr} or {$product.manudescr} or {$product.manufacturer.descr} without results

Someone could help me?

Tnx
__________________
X-Cart v 4.1.8
X-Cart v 4.1.11
Reply With Quote
  #35  
Old 01-13-2009, 06:01 AM
 
pmalerba pmalerba is offline
 

Member
  
Join Date: Sep 2007
Posts: 17
 

Default Re: More Effective Manufacturer view on Product Detail Page

Hello! I solved the description problems:

Add to manufacturerinfo.php

$thisManufactorer = $product_info["manufacturerid"];
$manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer");
$smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);
$smarty->assign("thedescr", $manufacturer[0]["descr"]);

Then on manufacturerinfo.tpl where do you want the description you can use:

{$manufacturerinfo.descr|truncate:50:"...":true}

And you will see the description.

The unique problem is that I'm unable to get the multilanguage feature.
In manufactorer page the translation works fine, instead on manufacturerinfo.tpl I can't get the multilanguage description.

Someone could help?
__________________
X-Cart v 4.1.8
X-Cart v 4.1.11
Reply With Quote
  #36  
Old 01-17-2009, 09:47 AM
 
pmalerba pmalerba is offline
 

Member
  
Join Date: Sep 2007
Posts: 17
 

Default Re: More Effective Manufacturer view on Product Detail Page

I can't understand how the multilanguage works

I tried this query :

Quote:
$manufacturer_data = func_query_first("SELECT $sql_tbl[manufacturers].*, IF($sql_tbl[images_M].id IS NULL, '', 'Y') as is_image, IFNULL($sql_tbl[manufacturers_lng].manufacturer, $sql_tbl[manufacturers].manufacturer) as manufacturer, IFNULL($sql_tbl[manufacturers_lng].descr, $sql_tbl[manufacturers].descr) as descr FROM $sql_tbl[manufacturers] LEFT JOIN $sql_tbl[manufacturers_lng] ON $sql_tbl[manufacturers_lng].manufacturerid = $sql_tbl[manufacturers].manufacturerid AND $sql_tbl[manufacturers_lng].code = '$shop_language' LEFT JOIN $sql_tbl[images_M] ON $sql_tbl[images_M].id = $sql_tbl[manufacturers].manufacturerid WHERE $sql_tbl[manufacturers].manufacturerid = '$manufacturerid'");

and

Quote:
$query_data = array(
"url" => $url,
"descr" => $descr
);
$query_data_lng = array(
"manufacturerid" => $manufacturerid,
"code" => $shop_language,
"descr" => $descr
);

But using {$query_data_lng|@debug_print_var} or {$manufacturer.descr|@debug_print_var}
I get NULL

I'm sorry but I'm newbe with php

Any help?

Thanks for support.
__________________
X-Cart v 4.1.8
X-Cart v 4.1.11
Reply With Quote
  #37  
Old 01-17-2009, 03:03 PM
 
pfarcus pfarcus is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 179
 

Default Re: More Effective Manufacturer view on Product Detail Page

Could this technique be used to have the providers name on all of his/her products? (ideally it would be clickable to show all his products, like a search result for him or something)

am I crazy?
__________________
CDSEO PRO
4.1.11 PRO
Dynamic images by xcartmod.com
X-Cart CSSTemplate/Skin for v4.1.11 PRO
Reply With Quote
  #38  
Old 01-18-2009, 01:26 AM
 
pmalerba pmalerba is offline
 

Member
  
Join Date: Sep 2007
Posts: 17
 

Default Re: More Effective Manufacturer view on Product Detail Page

Hi pfarcus,

I don't know if this is possible. You can try THIS
I hope will works
__________________
X-Cart v 4.1.8
X-Cart v 4.1.11
Reply With Quote
  #39  
Old 01-25-2009, 01:05 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: More Effective Manufacturer view on Product Detail Page

Still cannot get the mfg description to show up. Can anyone confirm the above is correct. There are some misspelled words in it.

-ds
__________________
4.4
Code:
Hello World
Reply With Quote
  #40  
Old 01-25-2009, 09:41 PM
 
pmalerba pmalerba is offline
 

Member
  
Join Date: Sep 2007
Posts: 17
 

Default Re: More Effective Manufacturer view on Product Detail Page

Quote:
Originally Posted by davidsaldana
Still cannot get the mfg description to show up. Can anyone confirm the above is correct. There are some misspelled words in it.

-ds

Have you read this?? http://forum.x-cart.com/showpost.php?p=242796&postcount=35
__________________
X-Cart v 4.1.8
X-Cart v 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 02:49 PM.

   

 
X-Cart forums © 2001-2020