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

Product code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-03-2007, 12:53 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Product code

Wow, this is a GREAT idea. I see it useful for product videos, but also pop-up links, or other product specific details tha would be a royal PITA to insert on a per-product level in product details. By having a new field, you can do a numbering game by sku and SIMPLY have a product video (or not), using smarty to populate the video URL.

Very good idea. This post is now in my bookmarks for the future!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #12  
Old 03-03-2007, 01:00 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Product code

PS -- does this mean we still have the 255 character limit for the aditional field? -- or if the field is yes/no, I guess this wouldn't matter... the code would be in product.tpl, trapping for the yes/no and then calculating the correct link. Yes?

additional field: does product have a video? Y if yes. Leave blank if no.

in product.tpl:
Code:
{if $extra_fields[0].field_value ne ""} Code for pop-up - including productid from smarty to specify which link is called {/if}

Padraic, you rock! Thanks.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #13  
Old 03-05-2007, 09:47 AM
 
creative xpress creative xpress is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 71
 

Default Re: Product code

This worked out perfectly thank you for your help!!! I really appreciate it! One last question is the exra field available to the products_t.tpl so I can have a smaller icon appear on the thumbnail page?

Thanks!
Cameron
__________________
Xcart
Version: 4.1.6
Reply With Quote
  #14  
Old 03-05-2007, 10:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product code

Ahhh...that gets much more involved. Extra Fields won't work on the products templates by default. Look in the Wish List forum for a thread on getting Extra Fields to appear in other places than the product page....requires a bit of php and Smarty programming.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:41 PM.

   

 
X-Cart forums © 2001-2020