![]() |
ProductID removal
I'm looking to remove the productid to the right of the productcode when displaying the details of a product.
Does anyone know which file this is built from? |
In skin1/customer/product.tpl look for $product.producttitle and change it to $product.product
|
Thanks! Time to buy from firetank software!
|
Or, if you also need the SKU in there, you can change $product.producttitle to "$product.product - $product.productcode"
I've got a client who has clients regularly call up and ask for things by their SKU numbers and enter SKUs into the search engines too. |
kpayne - I tried what you said but it started spitting out "array.product array.productcode" instead of the correct values.
I'm using Version 3.5.14 - any ideas? (I can get just product.product and just product.productcode to work fine - not both of them together though.) I think it's with the way the line "$product.product - $product.productcode" is being interpreted - the variables aren't getting parsed. I tried a few ways without the quotes to get it to work, but all of a sudden my product descriptions disappeared. |
Quote:
|
Thank you, this has been driving me crazy
|
Why does my x-cart directory look different?
I really want to sub the ID for the SKU but I cannot find the example in the file. $product.producttitle I was looking in customer/main/product.tpl I have no customer/product.tpl Thanks |
customer/main/product.tpl is the correct place.
|
Quote:
Balinor thanks for clarification - I got the basic to work. I'm interested in kpayne's version where the Product code would show but I get the array error as well. |
Quote:
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 |
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 |
Quote:
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:33 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.