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

ProductID removal

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-13-2006, 02:20 AM
 
Readerm Readerm is offline
 

eXpert
  
Join Date: Jan 2005
Location: Calgary, Canada
Posts: 261
 

Default

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
__________________
Rdr. Michael
Manager
Istok Church Supplies
www.istok.net
X-cart version 4.5.4 Platinum
Reply With Quote
  #12  
Old 03-14-2006, 09:14 AM
 
davide davide is offline
 

Member
  
Join Date: Jan 2006
Posts: 15
 

Default

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!!

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

Thanks,
David
__________________
David Estapц╘

X-cart version \"x-cart-4[1].0.17gold\"
Reply With Quote
  #13  
Old 03-17-2006, 07:05 PM
 
parseError parseError is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 1
 

Default

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
__________________
-m
x-cart-4.0.18pro [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:59 AM.

   

 
X-Cart forums © 2001-2020