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)
-   -   ProductID removal (https://forum.x-cart.com/showthread.php?t=7952)

Readerm 03-13-2006 02:20 AM

Quote:

Originally Posted by kpayne
Or, if you also need the SKU in there, you can change $product.producttitle to "$product.product - $product.productcode"



For some reason, I'm gettingthe following error:

Fatal error: Smarty error: [in customer/main/product.tpl line 150]: syntax error: invalid attribute name: '-' (Smarty_Compiler.class.php, line 1512) in /home/pravuzor/public_html/Smarty-2.6.3/Smarty.class.php on line 1082

davide 03-14-2006 09:14 AM

Did someone found a way to create and external link that go to the product page by using 'productcode' parameter instead of 'productid'?
something like:

http://www.yourxcartsite.com/product.php?productcode=1235654

It simply doesn't make sense that clients work with my SKU and my xart works with a different productid!! :evil:

I'm trying to modify "product.php" and "include/func.php" but it's not that easy!

Thanks,
David

parseError 03-17-2006 07:05 PM

Quote:

Originally Posted by Readerm
Quote:

Originally Posted by kpayne
Or, if you also need the SKU in there, you can change $product.producttitle to "$product.product - $product.productcode"


For some reason, I'm gettingthe following error:
Fatal error: Smarty error: [in customer/main/product.tpl line 150]: syntax error: invalid attribute name: '-' (Smarty_Compiler.class.php, line 1512) in /home/pravuzor/public_html/Smarty-2.6.3/Smarty.class.php on line 1082


Just a slight php syntax change...

try adding backtics around the variables: "`$product.product` - `$product.productcode`"

the variables were not be evaluated correctly.

I like the idea - I may use it, also.

good day!
-mike


All times are GMT -8. The time now is 12:28 AM.

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