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)
-   -   Product code (https://forum.x-cart.com/showthread.php?t=29291)

carpeperdiem 03-03-2007 12:53 PM

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!

carpeperdiem 03-03-2007 01:00 PM

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.

creative xpress 03-05-2007 09:47 AM

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

balinor 03-05-2007 10:05 AM

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.


All times are GMT -8. The time now is 04:17 PM.

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