X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   More Effective Manufacturer view on Product Detail Page (https://forum.x-cart.com/showthread.php?t=29776)

ScrapProfessor 03-19-2008 08:17 AM

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!

POSDepot 03-25-2008 09:04 AM

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

MattAustin 11-24-2008 03:42 AM

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

pmalerba 01-11-2009 12:57 PM

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

pmalerba 01-13-2009 06:01 AM

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?

pmalerba 01-17-2009 09:47 AM

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.

pfarcus 01-17-2009 03:03 PM

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?

pmalerba 01-18-2009 01:26 AM

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 ;)

davidsaldana 01-25-2009 01:05 PM

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

pmalerba 01-25-2009 09:41 PM

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


All times are GMT -8. The time now is 09:00 AM.

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